aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/varnish_mib.mib2c19
1 files changed, 13 insertions, 6 deletions
diff --git a/src/varnish_mib.mib2c b/src/varnish_mib.mib2c
index 6df10ec..af56a0e 100644
--- a/src/varnish_mib.mib2c
+++ b/src/varnish_mib.mib2c
@@ -118,3 +118,10 @@ handle_$i(netsnmp_mib_handler *handler,
if (reqinfo->mode == MODE_GET) {
- struct VSC_C_main const *st = VSC_Main(vd, NULL);
+ struct VSC_C_main const *st;
+
+ if (VSM_Abandoned(vd)) {
+ VSM_Close(vd);
+ VSM_Open(vd);
+ }
+
+ st = VSC_Main(vd, NULL);
if (!st)
@@ -125,8 +132,8 @@ handle_$i(netsnmp_mib_handler *handler,
} else {
- snmp_log(LOG_ERR, "unknown mode (%d) in handle_${i}\n",
- reqinfo->mode );
- return SNMP_ERR_GENERR;
+ snmp_log(LOG_ERR, "unknown mode (%d) in handle_${i}\n",
+ reqinfo->mode );
+ return SNMP_ERR_GENERR;
}
- return SNMP_ERR_NOERROR;
+ return SNMP_ERR_NOERROR;
}
@@ -142,3 +149,3 @@ init_$modulename(void)
- DEBUGMSGTL(("$name", "Initializing\n"));
+ DEBUGMSGTL(("$modulename", "Initializing\n"));

Return to:

Send suggestions and report system problems to the System administrator.