aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2018-02-04 13:58:15 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2018-02-04 13:58:15 +0200
commit14dc6b025e8c685e68ce8afe773f888312c73759 (patch)
tree025307114febd5e0f48d1e09a76b8b13adb96a88
parent06712786e97056767998982c93567a0fb09b2e5f (diff)
downloadvarnish-mib-14dc6b025e8c685e68ce8afe773f888312c73759.tar.gz
varnish-mib-14dc6b025e8c685e68ce8afe773f888312c73759.tar.bz2
Fix handling of TimeTicks OIDs
-rw-r--r--src/varnish_mib.mib2c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/varnish_mib.mib2c b/src/varnish_mib.mib2c
index 94fec54..ee6b119 100644
--- a/src/varnish_mib.mib2c
+++ b/src/varnish_mib.mib2c
@@ -283,9 +283,17 @@ handle_$i(netsnmp_mib_handler *handler,
@else@
if (!st)
return SNMP_ERR_NOSUCHNAME;
+ @if $i.type eq 'ASN_TIMETICKS'@
+ else {
+ uint64_t val = st->$varnish_member * 100;
+ snmp_set_var_typed_value(requests->requestvb, $i.type,
+ &val, sizeof(val));
+ }
+ @else@
snmp_set_var_typed_value(requests->requestvb, $i.type,
&st->$varnish_member,
sizeof(st->$varnish_member));
+ @end@
@end@
}
@elsif $varnish_type eq 'STRING'@

Return to:

Send suggestions and report system problems to the System administrator.