Hi,
I've got some custom service checks which use check_snmp to get the data which returns just fine. It's to get the number of sessions currently connected to our Juniper firewalls. However it used to graph but we have recently noticed it's not working anymore, the graphs just say no data to display. I don't know much about how the graphing system of nagios works but after doing some googling on it I got as far as deleting the old rrd file for that service along with it's xml file, in hopes it would recreate them. No such luck.
Could anyone help me resolve this please?
Thanks
Can't get check_snmp to graph - no rrd file
Re: Can't get check_snmp to graph - no rrd file
Let's check a few things. Please run the following as root from the Nagios server command line:
Code: Select all
service npcd status
ls -l /usr/local/nagios/var/spool/xidpe | wc -l
ls -l /usr/local/nagios/var/spool/perfdata | wc -l
Former Nagios employee
Re: Can't get check_snmp to graph - no rrd file
Hi,
Apologies for not replying earlier I didn't get an email notification - here's the results of running those commands:
Apologies for not replying earlier I didn't get an email notification - here's the results of running those commands:
Code: Select all
[root@nagiosxi ~]# service npcd status
NPCD running (pid 15235).
Code: Select all
[root@nagiosxi ~]# ls -l /usr/local/nagios/var/spool/xidpe | wc -l
3
Code: Select all
[root@nagiosxi ~]# ls -l /usr/local/nagios/var/spool/perfdata | wc -l
3
Re: Can't get check_snmp to graph - no rrd file
That output from those commands looks fine.
Can you run the check from the command line and post the full output so we can see if the performance data output is correct?
Thanks
Can you run the check from the command line and post the full output so we can see if the performance data output is correct?
Thanks
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Can't get check_snmp to graph - no rrd file
Hi,
Here is the check command running from the CLI:
[root@nagiosxi ~]# /usr/local/nagios/libexec/check_snmp -H 192.168.17.252 -o .1.3.6.1.4.1.3224.16.3.2.0 -C public -P 2c -l "Current Sessions" -w 30000 -c 40000
SNMP OK - Current Sessions 6949 | 'Current Sessions'=6949;30000;40000;30000;40000;
Here is the check command running from the CLI:
[root@nagiosxi ~]# /usr/local/nagios/libexec/check_snmp -H 192.168.17.252 -o .1.3.6.1.4.1.3224.16.3.2.0 -C public -P 2c -l "Current Sessions" -w 30000 -c 40000
SNMP OK - Current Sessions 6949 | 'Current Sessions'=6949;30000;40000;30000;40000;
Re: Can't get check_snmp to graph - no rrd file
Try changing "Current Sessions" to "Current_Sessions", I don't think it allows spaces.
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Can't get check_snmp to graph - no rrd file
Spaces are allowed, the performance data is accommodating for this by enclosing the label in single quotes.
The problem is that the performance data string has one too many semi colons at the end, and this is causing the performance data processing to discard the data.
SNMP OK - Current Sessions 6949 | 'Current Sessions'=6949;30000;40000;30000;40000-->;<--
https://nagios-plugins.org/doc/guidelines.html#AEN200
What I don't understand is why the warning and critical values are being used for the minimum and maximum values.
What is the version of check_snmp?
The problem is that the performance data string has one too many semi colons at the end, and this is causing the performance data processing to discard the data.
SNMP OK - Current Sessions 6949 | 'Current Sessions'=6949;30000;40000;30000;40000-->;<--
https://nagios-plugins.org/doc/guidelines.html#AEN200
Code: Select all
'label'=value[UOM];[warn];[crit];[min];[max]What is the version of check_snmp?
Code: Select all
/usr/local/nagios/libexec/check_snmp -VAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.