aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am2
-rw-r--r--src/varnish_mib.mib2c10
2 files changed, 3 insertions, 9 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index b56c252..4efd22c 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -26,7 +26,7 @@ BUILT_SOURCES = \
26varnish_mib.c: varnish_mib.mib2c 26varnish_mib.c: varnish_mib.mib2c
27 27
28.mib2c.c: 28.mib2c.c:
29 MIBDIRS=${abs_srcdir}:${NET_SNMP_MIBDIRS} MIBS="+VARNISH-MIB" \ 29 MIBDIRS=${top_srcdir}/src:${NET_SNMP_MIBDIRS} MIBS="+VARNISH-MIB" \
30 mib2c -c $< -f $@ varnish 30 mib2c -c $< -f $@ varnish
31 31
32#NET_SNMP_INCLUDES = `$(NET_SNMP_CONFIG) --cflags` 32#NET_SNMP_INCLUDES = `$(NET_SNMP_CONFIG) --cflags`
diff --git a/src/varnish_mib.mib2c b/src/varnish_mib.mib2c
index 798fc53..6df10ec 100644
--- a/src/varnish_mib.mib2c
+++ b/src/varnish_mib.mib2c
@@ -70,7 +70,7 @@ $vars{'varnish_translate'} = sub {
70 backendConnReuses => 'backend_reuse', 70 backendConnReuses => 'backend_reuse',
71 backendConnRecycled => 'backend_recycle', 71 backendConnRecycled => 'backend_recycle',
72 backendConnUnused => 'backend_toolate', 72 backendConnUnused => 'backend_toolate',
73 totalSessions => 's_sess ', 73 totalSessions => 's_sess',
74 totalRequests => 's_req ', 74 totalRequests => 's_req ',
75 totalPipe => 's_pipe', 75 totalPipe => 's_pipe',
76 totalPass => 's_pass', 76 totalPass => 's_pass',
@@ -146,13 +146,7 @@ init_$modulename(void)
146 netsnmp_register_scalar( 146 netsnmp_register_scalar(
147 netsnmp_create_handler_registration("$i", handle_$i, 147 netsnmp_create_handler_registration("$i", handle_$i,
148 ${i}_oid, OID_LENGTH(${i}_oid), 148 ${i}_oid, OID_LENGTH(${i}_oid),
149 @if !$i.settable@ 149 HANDLER_CAN_RONLY));
150 HANDLER_CAN_RONLY
151 @end@
152 @if $i.settable@
153 HANDLER_CAN_RWRITE
154 @end@
155 ));
156 @end@ 150 @end@
157 varnish_snmp_init(); 151 varnish_snmp_init();
158} 152}

Return to:

Send suggestions and report system problems to the System administrator.