]> git.ipfire.org Git - thirdparty/squid.git/blob - include/cache_snmp.h
Removed redundant MIB values cacheMemHighWM/cacheMemLowWM
[thirdparty/squid.git] / include / cache_snmp.h
1 /*
2 * $Id: cache_snmp.h,v 1.22 1999/01/26 06:16:30 glenn Exp $
3 */
4
5 #ifdef SQUID_SNMP
6 #ifndef CACHE_SNMP_H
7 #define CACHE_SNMP_H
8
9 #if SIZEOF_LONG == 8
10 #define snint int
11 #else
12 #define snint long
13 #endif
14
15 #ifndef MIN
16 #define MIN(a,b) (a<b?a:b)
17 #endif
18
19 #include "snmp.h"
20 #include "snmp_impl.h"
21 #include "asn1.h"
22 #include "snmp_api.h"
23
24 #include "snmp_vars.h"
25
26 /* MIB definitions
27 * SQUID-MIB
28 * .iso.org.dod.internet.private.enterprises.nlanr.squid
29 * 1 3 6 1 4 1 3495 1
30 *
31 * PROXY-MIB
32 * .iso.org.dod.internet.experimental.nsfnet.proxy
33 * 1 3 6 1 3 25 17
34 */
35
36 #define SQUIDMIB 1, 3, 6, 1, 4, 1, 3495, 1
37 #define LEN_SQUIDMIB 8
38
39 /* basic groups under .squid */
40
41 #define SQ_SYS SQUIDMIB, 1
42 #define LEN_SQ_SYS LEN_SQUIDMIB+1
43 #define SQ_CONF SQUIDMIB, 2
44 #define LEN_SQ_CONF LEN_SQUIDMIB+1
45 #define SQ_PRF SQUIDMIB, 3
46 #define LEN_SQ_PRF LEN_SQUIDMIB+1
47 #define SQ_NET SQUIDMIB, 4
48 #define LEN_SQ_NET LEN_SQUIDMIB+1
49 #define SQ_MESH SQUIDMIB, 5
50 #define LEN_SQ_MESH LEN_SQUIDMIB+1
51
52 /*
53 cacheSystem group
54 */
55
56 enum {
57 SYS_START,
58 SYSVMSIZ,
59 SYSSTOR,
60 SYS_UPTIME,
61 SYS_END
62 };
63
64 /*
65 cacheConfig group
66 */
67
68 enum {
69 CONF_START,
70 CONF_ADMIN,
71 CONF_VERSION,
72 CONF_VERSION_ID,
73 CONF_LOG_FAC,
74 CONF_STORAGE,
75 CONF_END
76 };
77
78 enum {
79 CONF_ST_START,
80 CONF_ST_MMAXSZ,
81 CONF_ST_SWMAXSZ,
82 CONF_ST_SWHIWM,
83 CONF_ST_SWLOWM,
84 CONF_ST_END
85 };
86
87 /*
88 cacheMesh group
89 */
90
91 enum {
92 MESH_START,
93 MESH_PTBL,
94 MESH_CTBL,
95 MESH_END
96 };
97
98 enum { /* cachePeerTable */
99 MESH_PTBL_START,
100 MESH_PTBL_NAME,
101 MESH_PTBL_IP,
102 MESH_PTBL_HTTP,
103 MESH_PTBL_ICP,
104 MESH_PTBL_TYPE,
105 MESH_PTBL_STATE,
106 MESH_PTBL_SENT,
107 MESH_PTBL_PACKED,
108 MESH_PTBL_FETCHES,
109 MESH_PTBL_RTT,
110 MESH_PTBL_IGN,
111 MESH_PTBL_KEEPAL_S,
112 MESH_PTBL_KEEPAL_R,
113 MESH_PTBL_END
114 };
115
116 enum { /* cacheClientTable */
117 MESH_CTBL_START,
118 MESH_CTBL_ADDR,
119 MESH_CTBL_HTREQ,
120 MESH_CTBL_HTBYTES,
121 MESH_CTBL_HTHITS,
122 MESH_CTBL_HTHITBYTES,
123 MESH_CTBL_ICPREQ,
124 MESH_CTBL_ICPBYTES,
125 MESH_CTBL_ICPHITS,
126 MESH_CTBL_ICPHITBYTES,
127 MESH_CTBL_END
128 };
129
130 /*
131 cacheNetwork group
132 */
133
134 enum {
135 IP_START,
136 IP_ENT,
137 IP_REQ,
138 IP_HITS,
139 IP_PENDHIT,
140 IP_NEGHIT,
141 IP_MISS,
142 IP_GHBN,
143 IP_LOC,
144 IP_END
145 };
146
147 enum {
148 FQDN_START,
149 FQDN_ENT,
150 FQDN_REQ,
151 FQDN_HITS,
152 FQDN_PENDHIT,
153 FQDN_NEGHIT,
154 FQDN_MISS,
155 FQDN_GHBN,
156 FQDN_END
157 };
158
159 enum {
160 DNS_START,
161 DNS_REQ,
162 DNS_REP,
163 DNS_SERVERS,
164 DNS_END
165 };
166
167 /*
168 Cache Performance Group
169 */
170
171 enum {
172 PERF_START,
173 PERF_SYS,
174 PERF_PROTO,
175 PERF_PEER,
176 PERF_END
177 };
178
179 enum {
180 PERF_SYS_START,
181 PERF_SYS_PF,
182 PERF_SYS_NUMR,
183 PERF_SYS_DEFR,
184 PERF_SYS_MEMUSAGE,
185 PERF_SYS_CPUUSAGE,
186 PERF_SYS_MAXRESSZ,
187 PERF_SYS_NUMOBJCNT,
188 PERF_SYS_CURLRUEXP,
189 PERF_SYS_CURUNLREQ,
190 PERF_SYS_CURUNUSED_FD,
191 PERF_SYS_CURRESERVED_FD,
192 PERF_SYS_END
193 };
194
195 enum {
196 PERF_PROTOSTAT_START,
197 PERF_PROTOSTAT_AGGR,
198 PERF_PROTOSTAT_MEDIAN,
199 PERF_PROTOSTAT_END
200 };
201
202 enum {
203 PERF_PROTOSTAT_AGGR_START,
204 PERF_PROTOSTAT_AGGR_HTTP_REQ,
205 PERF_PROTOSTAT_AGGR_HTTP_HITS,
206 PERF_PROTOSTAT_AGGR_HTTP_ERRORS,
207 PERF_PROTOSTAT_AGGR_HTTP_KBYTES_IN,
208 PERF_PROTOSTAT_AGGR_HTTP_KBYTES_OUT,
209 PERF_PROTOSTAT_AGGR_ICP_S,
210 PERF_PROTOSTAT_AGGR_ICP_R,
211 PERF_PROTOSTAT_AGGR_ICP_SKB,
212 PERF_PROTOSTAT_AGGR_ICP_RKB,
213 PERF_PROTOSTAT_AGGR_REQ,
214 PERF_PROTOSTAT_AGGR_ERRORS,
215 PERF_PROTOSTAT_AGGR_KBYTES_IN,
216 PERF_PROTOSTAT_AGGR_KBYTES_OUT,
217 PERF_PROTOSTAT_AGGR_CURSWAP,
218 PERF_PROTOSTAT_AGGR_CLIENTS,
219 PERF_PROTOSTAT_AGGR_END
220 };
221
222 enum {
223 PERF_MEDIAN_START,
224 PERF_MEDIAN_TIME,
225 PERF_MEDIAN_HTTP_ALL,
226 PERF_MEDIAN_HTTP_MISS,
227 PERF_MEDIAN_HTTP_NM,
228 PERF_MEDIAN_HTTP_HIT,
229 PERF_MEDIAN_ICP_QUERY,
230 PERF_MEDIAN_ICP_REPLY,
231 PERF_MEDIAN_DNS,
232 PERF_MEDIAN_RHR,
233 PERF_MEDIAN_BHR,
234 PERF_MEDIAN_END
235 };
236
237 #endif
238 #endif