aboutsummaryrefslogtreecommitdiff
path: root/src/varnish_mib.mib2c
diff options
context:
space:
mode:
Diffstat (limited to 'src/varnish_mib.mib2c')
-rw-r--r--src/varnish_mib.mib2c15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/varnish_mib.mib2c b/src/varnish_mib.mib2c
index b20074c..819ef1c 100644
--- a/src/varnish_mib.mib2c
+++ b/src/varnish_mib.mib2c
@@ -166,13 +166,16 @@ int varnish_ban(netsnmp_agent_request_info *reqinfo,
netsnmp_request_info *requests,
struct VSM_data *vd);
+int varnish_mib_timeout_parser(const char *token, char *line,
+ unsigned *retval);
+
extern unsigned banTable_timeout;
void varnish_ban_table_timeout_parser(const char *token, char *line);
+void varnish_vcli_timeout_parser(const char *token, char *line);
int varnish_ban_table_timeout_set(netsnmp_agent_request_info *reqinfo,
netsnmp_request_info *requests,
struct VSM_data *vd);
-int varnish_ban_table_timeout_get(void **valptr, size_t *valsize);
@open ${name}@
/* THIS FILE IS GENERATED AUTOMATICALLY. PLEASE DO NOT EDIT. */
@@ -314,7 +317,7 @@ handle_$i(netsnmp_mib_handler *handler,
@if $varnish_set_free ne ''@
# Free resources allocated in RESERVE1 and/or
# RESERVE2. Something failed somewhere, and the states
- # below won't be called. */
+ # below won't be called.
$varnish_set_free(reqinfo, requests, vd);
@end@
break;
@@ -527,7 +530,13 @@ init_$modulename(void)
NULL,
"varnishBanTableTimeout SECONDS"))
snmp_log(LOG_ERR,"can't register config handler\n");
-
+
+ if (!register_config_handler("snmpd", "varnishCLIPortTimeout",
+ varnish_vcli_timeout_parser,
+ NULL,
+ "varnishCLIPortTimeout SECONDS"))
+ snmp_log(LOG_ERR,"can't register config handler\n");
+
@foreach $i scalar@
netsnmp_register_scalar(
netsnmp_create_handler_registration("$i", handle_$i,

Return to:

Send suggestions and report system problems to the System administrator.