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
Post
by bongbi » Wed Jan 16, 2019 1:13 pm
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:
Post
by scottwilkerson » Wed Jan 16, 2019 2:31 pm
remove the -v which is giving verbose debugging output
bongbi
Posts: 27 Joined: Wed Oct 07, 2015 2:05 pm
Post
by bongbi » Thu Jan 17, 2019 9:35 am
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:
Post
by scottwilkerson » Thu Jan 17, 2019 10:09 am
This actually looks correct, it is supposed to graph the value after the |
For example in your command example above it would graph 209
My guess is this value jumps violently
bongbi
Posts: 27 Joined: Wed Oct 07, 2015 2:05 pm
Post
by bongbi » Thu Jan 17, 2019 1:28 pm
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:
Post
by scottwilkerson » Thu Jan 17, 2019 1:33 pm
Can you show the Advanced Tab for this service?
bongbi
Posts: 27 Joined: Wed Oct 07, 2015 2:05 pm
Post
by bongbi » Thu Jan 17, 2019 2:04 pm
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:
Post
by scottwilkerson » Thu Jan 17, 2019 4:44 pm
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
bongbi
Posts: 27 Joined: Wed Oct 07, 2015 2:05 pm
Post
by bongbi » Fri Jan 18, 2019 11:32 am
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:
Post
by scottwilkerson » Fri Jan 18, 2019 11:51 am
In the CCM, navigate to the service and click "View Config" on the right