check_snmp 64bit counters returns c value?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ottow
Posts: 44
Joined: Wed Nov 15, 2017 3:45 am

check_snmp 64bit counters returns c value?

Post by ottow »

Hi,

We've run into a problem with check_snmp when monitoring our Nutanix environment as per https://next.nutanix.com/how-it-works-2 ... agios-4500
The values returned by the check_snmp command are ending with a "c", like so:
SNMP OK - 185 | iso.3.6.1.4.1.41263.506.0=185c

The above screws up the graphs badly, making them completely useless (see attached image)
snmpwalk returns a correct value (no "c"):
SNMPv2-SMI::enterprises.41263.506.0 = Counter64: 185

Is there any way to strip that "c" from the output?
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: check_snmp 64bit counters returns c value?

Post by tgriep »

Take a look at this forum post that has instructions for creating a template that will ignore the unit of measurement "the letter c" and fix the graph issue.

https://support.nagios.com/forum/viewto ... 65#p146465
Be sure to check out our Knowledgebase for helpful articles and solutions!
ottow
Posts: 44
Joined: Wed Nov 15, 2017 3:45 am

Re: check_snmp 64bit counters returns c value?

Post by ottow »

Thanks, that solved the issue.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: check_snmp 64bit counters returns c value?

Post by tgriep »

Your welcome. Glad it worked. I'll lock the post as solved but feel free to post any new questions on the future.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: check_snmp 64bit counters returns c value?

Post by tgriep »

Your welcome. Glad it worked. I'll lock the post as solved but feel free to post any new questions on the future.
Be sure to check out our Knowledgebase for helpful articles and solutions!