This support forum board is for support questions relating to
Nagios XI , our flagship commercial network monitoring solution.
snapon_admin
Posts: 952 Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Post
by snapon_admin » Fri Nov 20, 2020 4:38 pm
Trying to figure out an issue with performance data while using the check_snmp plugin. I ran an SNMPwalk against a specific OID and the check does appear to output perfdata, but the OID is included in that so I'm not actually seeing anything get
graph ed. Is there a way to fix this?
Code: Select all
/usr/local/nagios/libexec/check_snmp -H [IP ADDRESS] -p 161 -o 'ciscoMgmt.147.1.2.2.2.1.5.40.6' -C '[SNMP COMMUNITY]' -P 2c -u 'current connections' -m CISCO-SMI -w 450000 -c 480000
SNMP OK - 16183 current connections | CISCO-SMI::ciscoMgmt.147.1.2.2.2.1.5.40.6=16183current connections;450000;480000
cdienger
Support Tech
Posts: 5045 Joined: Tue Feb 07, 2017 11:26 am
Post
by cdienger » Mon Nov 23, 2020 5:59 pm
Try:
Code: Select all
/usr/local/nagios/libexec/check_snmp -H [IP ADDRESS] -p 161 -o 'ciscoMgmt.147.1.2.2.2.1.5.40.6' -C '[SNMP COMMUNITY]' -P 2c -u ' current connections' -m CISCO-SMI -w 450000 -c 480000
Note the addition of the space right before 'current connections'. This should update the perfdata output to look like:
Code: Select all
CISCO-SMI::ciscoMgmt.147.1.2.2.2.1.5.40.6=16183 current connections;450000;480000
and allow it to
graph . Make sure to remove any current rrd or xml file that may exist for this service at /usr/local/nagios/share/perfdata/<hostname>/<servicedesc>.[rrd|xml].
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new
Privacy Policy .
snapon_admin
Posts: 952 Joined: Mon Jun 10, 2013 10:39 am
Location: Kenosha, WI
Post
by snapon_admin » Tue Nov 24, 2020 10:59 am
When I add a space to the command it still doesn't put one in the perf data.
Code: Select all
/usr/local/nagios/libexec/check_snmp -H [IP ADDRESS] -p 161 -o 'ciscoMgmt.147.1.2.2.2.1.5.40.6' -C '[SNMP COMMUNITY]' -P 2c -u ' current connections' -m CISCO-SMI -w 450000 -c 480000
SNMP OK - 15806 current connections | CISCO-SMI::ciscoMgmt.147.1.2.2.2.1.5.40.6=15806current connections;450000;48000
Untitled.png
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
Post
by scottwilkerson » Tue Nov 24, 2020 11:23 am
snapon_admin wrote: When I add a space to the command it still doesn't put one in the perf data.
Code: Select all
/usr/local/nagios/libexec/check_snmp -H [IP ADDRESS] -p 161 -o 'ciscoMgmt.147.1.2.2.2.1.5.40.6' -C '[SNMP COMMUNITY]' -P 2c -u ' current connections' -m CISCO-SMI -w 450000 -c 480000
SNMP OK - 15806 current connections | CISCO-SMI::ciscoMgmt.147.1.2.2.2.1.5.40.6=15806current connections;450000;48000
Untitled.png
see #10 in this section
https://nagios-plugins.org/doc/guidelines.html#AEN200
' current connections' isn't a valid unit of measure UOM, being this is just an integer I would leave the
-u ' current connections' off