Counter64 and check_snmp RRD
Posted: Mon May 29, 2017 3:02 pm
Hi everyone
I have a problem and I'm hoping someone has a quick fix.
Checking SNMP values in NagiosXI and we noticed all the ones that are returned as Counter64 are not being graphed correctly by RRD.
Looking at the output from check_snmp with a -v to see what it's doing, it adds a "c" to the value that isn't there with an snmpget
/usr/local/nagios/libexec/check_snmp -H <servername>-o 1.3.6.1.4.1.1230.2.7.2.5.1.0 -C <snmpcomm> -P 2c -l "CPU" -w 70 -c 90 -v
/usr/bin/snmpget -Le -t 1 -r 5 -m '' -v 2c [authpriv] <servername>:161 1.3.6.1.4.1.1230.2.7.2.5.1.0
iso.3.6.1.4.1.1230.2.7.2.5.1.0 = Counter64: 1
SNMP OK - CPU 1 | 'CPU'=1c;70;90;
Anyone know why it's adding a "c" there? It breaks all the RRD graphs.
any ideas? This doesn't happen with the 32 bit counters. I've seen a few other threads but no-one seems to address the little c.
It's a Centos 6.8 system 64-bit running Nagios XI 5.4.4
(also, any idea why I can't post to the XI forum?)
I have a problem and I'm hoping someone has a quick fix.
Checking SNMP values in NagiosXI and we noticed all the ones that are returned as Counter64 are not being graphed correctly by RRD.
Looking at the output from check_snmp with a -v to see what it's doing, it adds a "c" to the value that isn't there with an snmpget
/usr/local/nagios/libexec/check_snmp -H <servername>-o 1.3.6.1.4.1.1230.2.7.2.5.1.0 -C <snmpcomm> -P 2c -l "CPU" -w 70 -c 90 -v
/usr/bin/snmpget -Le -t 1 -r 5 -m '' -v 2c [authpriv] <servername>:161 1.3.6.1.4.1.1230.2.7.2.5.1.0
iso.3.6.1.4.1.1230.2.7.2.5.1.0 = Counter64: 1
SNMP OK - CPU 1 | 'CPU'=1c;70;90;
Anyone know why it's adding a "c" there? It breaks all the RRD graphs.
any ideas? This doesn't happen with the 32 bit counters. I've seen a few other threads but no-one seems to address the little c.
It's a Centos 6.8 system 64-bit running Nagios XI 5.4.4
(also, any idea why I can't post to the XI forum?)