check_snmp return value with performance graph

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
bongbi
Posts: 27
Joined: Wed Oct 07, 2015 2:05 pm

check_snmp return value with performance graph

Post by bongbi »

Hi,

I have check_snmp inplemented as below with correct data return. But its output gives me a additional data then performance graph read those and display. Therefore it makes performance graph unusable. Any suggestion?

Code: Select all

[root@nagiosxi libexec]# ./check_snmp -v -D "|" -o .1.3.6.1.4.1.41263.506.0 -P 3 --seclevel=authPriv --secn
ame=nagios --authproto=sha --authpasswd='5p1cpUKq' --privpasswd='5p1cpUKq' --privproto=aes -H nutanix-traf-
ahv.internal
/usr/bin/snmpget -Le -t 10 -r 5 -m '' -v 3 [context] [authpriv] nutanix-traf-ahv.internal:161 .1.3.6.1.4.1.41263.506.0
iso.3.6.1.4.1.41263.506.0 = Counter64: 209
SNMP OK - 209 | iso.3.6.1.4.1.41263.506.0=209c
[root@nagiosxi libexec]# ./check_snmp --version
check_snmp v2.2.1 (nagios-plugins 2.2.1)
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_snmp return value with performance graph

Post by scottwilkerson »

remove the -v which is giving verbose debugging output
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
bongbi
Posts: 27
Joined: Wed Oct 07, 2015 2:05 pm

Re: check_snmp return value with performance graph

Post by bongbi »

Thanks. Removed -v switch but still a same issue. Performance graph still takes value from after vertical bar(pipe) and displays it.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_snmp return value with performance graph

Post by scottwilkerson »

This actually looks correct, it is supposed to graph the value after the |

For example in your command example above it would graph 209

Code: Select all

| iso.3.6.1.4.1.41263.506.0=209c
My guess is this value jumps violently
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
bongbi
Posts: 27
Joined: Wed Oct 07, 2015 2:05 pm

Re: check_snmp return value with performance graph

Post by bongbi »

Yes I agree that output looks correct. However that way performance graph interpret output from value is not correct.
Here I attached another example. As you can see, there is output from check_snmp but performance graph only displays 0.

Code: Select all

[root@nagiosxi libexec]# ./check_snmp -D "|" -o .1.3.6.1.4.1.41263.504.0 -P 3 --seclevel=authPriv --secname=nagios --authproto=sha --authpasswd='5p1cpUKq' --privpasswd='5p1cpUKq' --privproto=aes -H nutanix-traf-ahv.internal
SNMP OK - 74722556377986 | iso.3.6.1.4.1.41263.504.0=74722556377986c
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_snmp return value with performance graph

Post by scottwilkerson »

Can you show the Advanced Tab for this service?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
bongbi
Posts: 27
Joined: Wed Oct 07, 2015 2:05 pm

Re: check_snmp return value with performance graph

Post by bongbi »

Here you go.
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_snmp return value with performance graph

Post by scottwilkerson »

Can you share the configuration for this service from the CCM?

Something is telling me that there is something Nagios doesn't like with the label being used for the performance data
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
bongbi
Posts: 27
Joined: Wed Oct 07, 2015 2:05 pm

Re: check_snmp return value with performance graph

Post by bongbi »

Sure. Could you tell me how I pull the configuration out from CCM?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_snmp return value with performance graph

Post by scottwilkerson »

In the CCM, navigate to the service and click "View Config" on the right
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked