]> git.ipfire.org Git - thirdparty/squid.git/blob - include/cache_snmp.h
Added :
[thirdparty/squid.git] / include / cache_snmp.h
1 /*
2 * $Id: cache_snmp.h,v 1.20 1998/11/18 00:16:37 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_MHIWM,
82 CONF_ST_MLOWM,
83 CONF_ST_SWMAXSZ,
84 CONF_ST_SWHIWM,
85 CONF_ST_SWLOWM,
86 CONF_ST_END
87 };
88
89 /*
90 cacheMesh group
91 */
92
93 enum {
94 MESH_START,
95 MESH_PTBL,
96 MESH_CTBL,
97 MESH_END
98 };
99
100 enum { /* cachePeerTable */
101 MESH_PTBL_START,
102 MESH_PTBL_NAME,
103 MESH_PTBL_IP,
104 MESH_PTBL_HTTP,
105 MESH_PTBL_ICP,
106 MESH_PTBL_TYPE,
107 MESH_PTBL_STATE,
108 MESH_PTBL_SENT,
109 MESH_PTBL_PACKED,
110 MESH_PTBL_FETCHES,
111 MESH_PTBL_RTT,
112 MESH_PTBL_IGN,
113 MESH_PTBL_KEEPAL_S,
114 MESH_PTBL_KEEPAL_R,
115 MESH_PTBL_END
116 };
117
118 enum { /* cacheClientTable */
119 MESH_CTBL_START,
120 MESH_CTBL_ADDR,
121 MESH_CTBL_HTREQ,
122 MESH_CTBL_HTBYTES,
123 MESH_CTBL_HTHITS,
124 MESH_CTBL_HTHITBYTES,
125 MESH_CTBL_ICPREQ,
126 MESH_CTBL_ICPBYTES,
127 MESH_CTBL_ICPHITS,
128 MESH_CTBL_ICPHITBYTES,
129 MESH_CTBL_END
130 };
131
132 /*
133 cacheNetwork group
134 */
135
136 enum {
137 IP_START,
138 IP_ENT,
139 IP_REQ,
140 IP_HITS,
141 IP_PENDHIT,
142 IP_NEGHIT,
143 IP_MISS,
144 IP_GHBN,
145 IP_LOC,
146 IP_END
147 };
148
149 enum {
150 FQDN_START,
151 FQDN_ENT,
152 FQDN_REQ,
153 FQDN_HITS,
154 FQDN_PENDHIT,
155 FQDN_NEGHIT,
156 FQDN_MISS,
157 FQDN_GHBN,
158 FQDN_END
159 };
160
161 enum {
162 DNS_START,
163 DNS_REQ,
164 DNS_REP,
165 DNS_SERVERS,
166 DNS_END
167 };
168
169 /*
170 Cache Performance Group
171 */
172
173 enum {
174 PERF_START,
175 PERF_SYS,
176 PERF_PROTO,
177 PERF_PEER,
178 PERF_END
179 };
180
181 enum {
182 PERF_SYS_START,
183 PERF_SYS_PF,
184 PERF_SYS_NUMR,
185 PERF_SYS_DEFR,
186 PERF_SYS_MEMUSAGE,
187 PERF_SYS_CPUUSAGE,
188 PERF_SYS_MAXRESSZ,
189 PERF_SYS_NUMOBJCNT,
190 PERF_SYS_CURLRUEXP,
191 PERF_SYS_CURUNLREQ,
192 PERF_SYS_CURUNUSED_FD,
193 PERF_SYS_CURRESERVED_FD,
194 PERF_SYS_END
195 };
196
197 enum {
198 PERF_PROTOSTAT_START,
199 PERF_PROTOSTAT_AGGR,
200 PERF_PROTOSTAT_MEDIAN,
201 PERF_PROTOSTAT_END
202 };
203
204 enum {
205 PERF_PROTOSTAT_AGGR_START,
206 PERF_PROTOSTAT_AGGR_HTTP_REQ,
207 PERF_PROTOSTAT_AGGR_HTTP_HITS,
208 PERF_PROTOSTAT_AGGR_HTTP_ERRORS,
209 PERF_PROTOSTAT_AGGR_HTTP_KBYTES_IN,
210 PERF_PROTOSTAT_AGGR_HTTP_KBYTES_OUT,
211 PERF_PROTOSTAT_AGGR_ICP_S,
212 PERF_PROTOSTAT_AGGR_ICP_R,
213 PERF_PROTOSTAT_AGGR_ICP_SKB,
214 PERF_PROTOSTAT_AGGR_ICP_RKB,
215 PERF_PROTOSTAT_AGGR_REQ,
216 PERF_PROTOSTAT_AGGR_ERRORS,
217 PERF_PROTOSTAT_AGGR_KBYTES_IN,
218 PERF_PROTOSTAT_AGGR_KBYTES_OUT,
219 PERF_PROTOSTAT_AGGR_CURSWAP,
220 PERF_PROTOSTAT_AGGR_CLIENTS,
221 PERF_PROTOSTAT_AGGR_END
222 };
223
224 enum {
225 PERF_MEDIAN_START,
226 PERF_MEDIAN_TIME,
227 PERF_MEDIAN_HTTP_ALL,
228 PERF_MEDIAN_HTTP_MISS,
229 PERF_MEDIAN_HTTP_NM,
230 PERF_MEDIAN_HTTP_HIT,
231 PERF_MEDIAN_ICP_QUERY,
232 PERF_MEDIAN_ICP_REPLY,
233 PERF_MEDIAN_DNS,
234 PERF_MEDIAN_RHR,
235 PERF_MEDIAN_BHR,
236 PERF_MEDIAN_END
237 };
238
239 #endif
240 #endif