cache_snmp.h File Reference
#include "snmp.h"
#include "snmp_api.h"
#include "snmp_impl.h"
Include dependency graph for cache_snmp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MIN(a, b)   (a<b?a:b)
 
#define SQUIDMIB   1, 3, 6, 1, 4, 1, 3495, 1
 
#define LEN_SQUIDMIB   8
 
#define INSTANCE   0
 
#define TIME_INDEX   1, 5, 60
 
#define TIME_INDEX_LEN   3
 
#define SQ_SYS   SQUIDMIB, 1 /* cacheSystem group { squid 1 } */
 
#define LEN_SQ_SYS   LEN_SQUIDMIB+1
 
#define SQ_CONF   SQUIDMIB, 2 /* cacheConfig group { squid 2 } */
 
#define LEN_SQ_CONF   LEN_SQUIDMIB+1
 
#define SQ_PRF   SQUIDMIB, 3 /* cachePerformance group { squid 3 } */
 
#define LEN_SQ_PRF   LEN_SQUIDMIB+1
 
#define SQ_NET   SQUIDMIB, 4 /* cacheNetwork group { squid 4 } */
 
#define LEN_SQ_NET   LEN_SQUIDMIB+1
 
#define SQ_MESH   SQUIDMIB, 5 /* cacheMesh group { squid 5 } */
 
#define LEN_SQ_MESH   LEN_SQUIDMIB+1
 
#define LEN_SYS   LEN_SQ_SYS + 1
 
#define LEN_SYS_INST   LEN_SQ_SYS + 2
 
#define LEN_CONF   LEN_SQ_CONF + 1
 
#define LEN_CONF_INST   LEN_SQ_CONF + 2
 
#define LEN_CONF_ST   LEN_CONF + 1
 
#define LEN_CONF_ST_INST   LEN_CONF + 2
 

Typedefs

typedef int64_t snint
 

Enumerations

enum  {
  SYS_START = 0,
  SYSVMSIZ = 1,
  SYSSTOR = 2,
  SYS_UPTIME = 3,
  SYS_END
}
 
enum  {
  CONF_START = 0,
  CONF_ADMIN = 1,
  CONF_VERSION = 2,
  CONF_VERSION_ID = 3,
  CONF_LOG_FAC = 4,
  CONF_STORAGE = 5,
  CONF_UNIQNAME = 6,
  CONF_END
}
 
enum  {
  CONF_ST_START = 0,
  CONF_ST_MMAXSZ = 1,
  CONF_ST_SWMAXSZ = 2,
  CONF_ST_SWHIWM = 3,
  CONF_ST_SWLOWM = 4,
  CONF_ST_END
}
 
enum  {
  PERF_START = 0,
  PERF_SYS = 1,
  PERF_PROTO = 2,
  PERF_END
}
 
enum  {
  PERF_SYS_START = 0,
  PERF_SYS_PF = 1,
  PERF_SYS_NUMR = 2,
  PERF_SYS_MEMUSAGE = 3,
  PERF_SYS_CPUTIME = 4,
  PERF_SYS_CPUUSAGE = 5,
  PERF_SYS_MAXRESSZ = 6,
  PERF_SYS_NUMOBJCNT = 7,
  PERF_SYS_CURLRUEXP = 8,
  PERF_SYS_CURUNLREQ = 9,
  PERF_SYS_CURUNUSED_FD = 10,
  PERF_SYS_CURRESERVED_FD = 11,
  PERF_SYS_CURUSED_FD = 12,
  PERF_SYS_CURMAX_FD = 13,
  PERF_SYS_END
}
 
enum  {
  PERF_PROTOSTAT_START,
  PERF_PROTOSTAT_AGGR = 1,
  PERF_PROTOSTAT_MEDIAN = 2,
  PERF_PROTOSTAT_END
}
 
enum  {
  PERF_PROTOSTAT_AGGR_START = 0,
  PERF_PROTOSTAT_AGGR_HTTP_REQ = 1,
  PERF_PROTOSTAT_AGGR_HTTP_HITS = 2,
  PERF_PROTOSTAT_AGGR_HTTP_ERRORS = 3,
  PERF_PROTOSTAT_AGGR_HTTP_KBYTES_IN = 4,
  PERF_PROTOSTAT_AGGR_HTTP_KBYTES_OUT = 5,
  PERF_PROTOSTAT_AGGR_ICP_S = 6,
  PERF_PROTOSTAT_AGGR_ICP_R = 7,
  PERF_PROTOSTAT_AGGR_ICP_SKB = 8,
  PERF_PROTOSTAT_AGGR_ICP_RKB = 9,
  PERF_PROTOSTAT_AGGR_REQ = 10,
  PERF_PROTOSTAT_AGGR_ERRORS = 11,
  PERF_PROTOSTAT_AGGR_KBYTES_IN = 12,
  PERF_PROTOSTAT_AGGR_KBYTES_OUT = 13,
  PERF_PROTOSTAT_AGGR_CURSWAP = 14,
  PERF_PROTOSTAT_AGGR_CLIENTS = 15,
  PERF_PROTOSTAT_AGGR_END
}
 
enum  {
  PERF_MEDIAN_START = 0,
  PERF_MEDIAN_TIME = 1,
  PERF_MEDIAN_HTTP_ALL = 2,
  PERF_MEDIAN_HTTP_MISS = 3,
  PERF_MEDIAN_HTTP_NM = 4,
  PERF_MEDIAN_HTTP_HIT = 5,
  PERF_MEDIAN_ICP_QUERY = 6,
  PERF_MEDIAN_ICP_REPLY = 7,
  PERF_MEDIAN_DNS = 8,
  PERF_MEDIAN_RHR = 9,
  PERF_MEDIAN_BHR = 10,
  PERF_MEDIAN_HTTP_NH = 11,
  PERF_MEDIAN_END
}
 
enum  {
  NET_START = 0,
  NET_IP_CACHE = 1,
  NET_FQDN_CACHE = 2,
  NET_DNS_CACHE = 3,
  NET_END
}
 
enum  {
  IP_START = 0,
  IP_ENT = 1,
  IP_REQ = 2,
  IP_HITS = 3,
  IP_PENDHIT = 4,
  IP_NEGHIT = 5,
  IP_MISS = 6,
  IP_GHBN = 7,
  IP_LOC = 8,
  IP_END
}
 
enum  {
  FQDN_START = 0,
  FQDN_ENT = 1,
  FQDN_REQ = 2,
  FQDN_HITS = 3,
  FQDN_PENDHIT = 4,
  FQDN_NEGHIT = 5,
  FQDN_MISS = 6,
  FQDN_GHBN = 7,
  FQDN_END
}
 
enum  {
  DNS_START = 0,
  DNS_REQ = 1,
  DNS_REP = 2,
  DNS_SERVERS = 3,
  DNS_END
}
 
enum  {
  MESH_START = 0,
  MESH_PTBL = 1,
  MESH_CTBL = 2,
  MESH_END
}
 
enum  {
  MESH_PTBL_START = 0,
  MESH_PTBL_INDEX = 1,
  MESH_PTBL_NAME = 2,
  MESH_PTBL_ADDR_TYPE = 3,
  MESH_PTBL_ADDR = 4,
  MESH_PTBL_HTTP = 5,
  MESH_PTBL_ICP = 6,
  MESH_PTBL_TYPE = 7,
  MESH_PTBL_STATE = 8,
  MESH_PTBL_SENT = 9,
  MESH_PTBL_PACKED = 10,
  MESH_PTBL_FETCHES = 11,
  MESH_PTBL_RTT = 12,
  MESH_PTBL_IGN = 13,
  MESH_PTBL_KEEPAL_S = 14,
  MESH_PTBL_KEEPAL_R = 15,
  MESH_PTBL_END
}
 
enum  {
  MESH_CTBL_START = 0,
  MESH_CTBL_ADDR_TYPE = 1,
  MESH_CTBL_ADDR = 2,
  MESH_CTBL_HTREQ = 3,
  MESH_CTBL_HTBYTES = 4,
  MESH_CTBL_HTHITS = 5,
  MESH_CTBL_HTHITBYTES = 6,
  MESH_CTBL_ICPREQ = 7,
  MESH_CTBL_ICPBYTES = 8,
  MESH_CTBL_ICPHITS = 9,
  MESH_CTBL_ICPHITBYTES = 10,
  MESH_CTBL_END
}
 

Macro Definition Documentation

#define INSTANCE   0

Definition at line 36 of file cache_snmp.h.

#define LEN_CONF   LEN_SQ_CONF + 1

Definition at line 81 of file cache_snmp.h.

#define LEN_CONF_INST   LEN_SQ_CONF + 2

Definition at line 82 of file cache_snmp.h.

#define LEN_CONF_ST   LEN_CONF + 1

Definition at line 96 of file cache_snmp.h.

#define LEN_CONF_ST_INST   LEN_CONF + 2

Definition at line 97 of file cache_snmp.h.

#define LEN_SQ_CONF   LEN_SQUIDMIB+1

Definition at line 45 of file cache_snmp.h.

Referenced by snmp_confFn().

#define LEN_SQ_MESH   LEN_SQUIDMIB+1

Definition at line 51 of file cache_snmp.h.

Referenced by snmp_meshPtblFn().

#define LEN_SQ_NET   LEN_SQUIDMIB+1

Definition at line 49 of file cache_snmp.h.

Referenced by snmp_meshCtblFn(), snmp_netDnsFn(), snmp_netFqdnFn(), and snmp_netIpFn().

#define LEN_SQ_PRF   LEN_SQUIDMIB+1

Definition at line 47 of file cache_snmp.h.

Referenced by snmp_prfProtoFn(), and snmp_prfSysFn().

#define LEN_SQ_SYS   LEN_SQUIDMIB+1

Definition at line 43 of file cache_snmp.h.

Referenced by snmp_sysFn().

#define LEN_SQUIDMIB   8

Definition at line 35 of file cache_snmp.h.

#define LEN_SYS   LEN_SQ_SYS + 1

Definition at line 64 of file cache_snmp.h.

#define LEN_SYS_INST   LEN_SQ_SYS + 2

Definition at line 65 of file cache_snmp.h.

#define MIN (   a,
 
)    (a<b?a:b)

Definition at line 17 of file cache_snmp.h.

#define SQ_CONF   SQUIDMIB, 2 /* cacheConfig group { squid 2 } */

Definition at line 44 of file cache_snmp.h.

#define SQ_MESH   SQUIDMIB, 5 /* cacheMesh group { squid 5 } */

Definition at line 50 of file cache_snmp.h.

#define SQ_NET   SQUIDMIB, 4 /* cacheNetwork group { squid 4 } */

Definition at line 48 of file cache_snmp.h.

#define SQ_PRF   SQUIDMIB, 3 /* cachePerformance group { squid 3 } */

Definition at line 46 of file cache_snmp.h.

#define SQ_SYS   SQUIDMIB, 1 /* cacheSystem group { squid 1 } */

Definition at line 42 of file cache_snmp.h.

#define SQUIDMIB   1, 3, 6, 1, 4, 1, 3495, 1

Definition at line 34 of file cache_snmp.h.

#define TIME_INDEX   1, 5, 60

Definition at line 37 of file cache_snmp.h.

Referenced by time_Inst().

#define TIME_INDEX_LEN   3

Definition at line 38 of file cache_snmp.h.

Referenced by time_Inst().

Typedef Documentation

typedef int64_t snint

Definition at line 14 of file cache_snmp.h.

Enumeration Type Documentation

anonymous enum

cacheSystem group { squid 1 }

Enumerator
SYS_START 
SYSVMSIZ 

cacheSysVMsize

SYSSTOR 

cacheSysStorage

SYS_UPTIME 

cacheUptime

SYS_END 

Definition at line 56 of file cache_snmp.h.

anonymous enum
Enumerator
IP_START 
IP_ENT 
IP_REQ 
IP_HITS 
IP_PENDHIT 
IP_NEGHIT 
IP_MISS 
IP_GHBN 
IP_LOC 
IP_END 

Definition at line 187 of file cache_snmp.h.

anonymous enum
Enumerator
FQDN_START 
FQDN_ENT 
FQDN_REQ 
FQDN_HITS 
FQDN_PENDHIT 
FQDN_NEGHIT 
FQDN_MISS 
FQDN_GHBN 
FQDN_END 

Definition at line 201 of file cache_snmp.h.

anonymous enum
Enumerator
DNS_START 
DNS_REQ 
DNS_REP 
DNS_SERVERS 
DNS_END 

Definition at line 214 of file cache_snmp.h.

anonymous enum
Enumerator
MESH_START 
MESH_PTBL 
MESH_CTBL 
MESH_END 

Definition at line 226 of file cache_snmp.h.

anonymous enum
Enumerator
MESH_PTBL_START 
MESH_PTBL_INDEX 
MESH_PTBL_NAME 
MESH_PTBL_ADDR_TYPE 
MESH_PTBL_ADDR 
MESH_PTBL_HTTP 
MESH_PTBL_ICP 
MESH_PTBL_TYPE 
MESH_PTBL_STATE 
MESH_PTBL_SENT 
MESH_PTBL_PACKED 
MESH_PTBL_FETCHES 
MESH_PTBL_RTT 
MESH_PTBL_IGN 
MESH_PTBL_KEEPAL_S 
MESH_PTBL_KEEPAL_R 
MESH_PTBL_END 

Definition at line 234 of file cache_snmp.h.

anonymous enum
Enumerator
MESH_CTBL_START 
MESH_CTBL_ADDR_TYPE 
MESH_CTBL_ADDR 
MESH_CTBL_HTREQ 
MESH_CTBL_HTBYTES 
MESH_CTBL_HTHITS 
MESH_CTBL_HTHITBYTES 
MESH_CTBL_ICPREQ 
MESH_CTBL_ICPBYTES 
MESH_CTBL_ICPHITS 
MESH_CTBL_ICPHITBYTES 
MESH_CTBL_END 

Definition at line 255 of file cache_snmp.h.

anonymous enum

cacheConfig group { squid 2 }

Enumerator
CONF_START 
CONF_ADMIN 

cacheAdmin

CONF_VERSION 

cacheSoftware

CONF_VERSION_ID 

cacheVersionId

CONF_LOG_FAC 

cacheLoggingFacility

CONF_STORAGE 

cacheStorageConfig group

CONF_UNIQNAME 

cacheUniqName

CONF_END 

Definition at line 70 of file cache_snmp.h.

anonymous enum

cacheStorageConfig group { cacheConfig 5 }

Enumerator
CONF_ST_START 
CONF_ST_MMAXSZ 
CONF_ST_SWMAXSZ 
CONF_ST_SWHIWM 
CONF_ST_SWLOWM 
CONF_ST_END 

Definition at line 87 of file cache_snmp.h.

anonymous enum
Enumerator
PERF_START 
PERF_SYS 
PERF_PROTO 
PERF_END 

Definition at line 103 of file cache_snmp.h.

anonymous enum
Enumerator
PERF_SYS_START 
PERF_SYS_PF 
PERF_SYS_NUMR 
PERF_SYS_MEMUSAGE 
PERF_SYS_CPUTIME 
PERF_SYS_CPUUSAGE 
PERF_SYS_MAXRESSZ 
PERF_SYS_NUMOBJCNT 
PERF_SYS_CURLRUEXP 
PERF_SYS_CURUNLREQ 
PERF_SYS_CURUNUSED_FD 
PERF_SYS_CURRESERVED_FD 
PERF_SYS_CURUSED_FD 
PERF_SYS_CURMAX_FD 
PERF_SYS_END 

Definition at line 111 of file cache_snmp.h.

anonymous enum
Enumerator
PERF_PROTOSTAT_START 
PERF_PROTOSTAT_AGGR 
PERF_PROTOSTAT_MEDIAN 
PERF_PROTOSTAT_END 

Definition at line 130 of file cache_snmp.h.

anonymous enum
Enumerator
PERF_PROTOSTAT_AGGR_START 
PERF_PROTOSTAT_AGGR_HTTP_REQ 
PERF_PROTOSTAT_AGGR_HTTP_HITS 
PERF_PROTOSTAT_AGGR_HTTP_ERRORS 
PERF_PROTOSTAT_AGGR_HTTP_KBYTES_IN 
PERF_PROTOSTAT_AGGR_HTTP_KBYTES_OUT 
PERF_PROTOSTAT_AGGR_ICP_S 
PERF_PROTOSTAT_AGGR_ICP_R 
PERF_PROTOSTAT_AGGR_ICP_SKB 
PERF_PROTOSTAT_AGGR_ICP_RKB 
PERF_PROTOSTAT_AGGR_REQ 
PERF_PROTOSTAT_AGGR_ERRORS 
PERF_PROTOSTAT_AGGR_KBYTES_IN 
PERF_PROTOSTAT_AGGR_KBYTES_OUT 
PERF_PROTOSTAT_AGGR_CURSWAP 
PERF_PROTOSTAT_AGGR_CLIENTS 
PERF_PROTOSTAT_AGGR_END 

Definition at line 138 of file cache_snmp.h.

anonymous enum
Enumerator
PERF_MEDIAN_START 
PERF_MEDIAN_TIME 
PERF_MEDIAN_HTTP_ALL 
PERF_MEDIAN_HTTP_MISS 
PERF_MEDIAN_HTTP_NM 
PERF_MEDIAN_HTTP_HIT 
PERF_MEDIAN_ICP_QUERY 
PERF_MEDIAN_ICP_REPLY 
PERF_MEDIAN_DNS 
PERF_MEDIAN_RHR 
PERF_MEDIAN_BHR 
PERF_MEDIAN_HTTP_NH 
PERF_MEDIAN_END 

Definition at line 159 of file cache_snmp.h.

anonymous enum
Enumerator
NET_START 
NET_IP_CACHE 
NET_FQDN_CACHE 
NET_DNS_CACHE 
NET_END 

Definition at line 178 of file cache_snmp.h.

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors