Page 1 of 2

Performance data not showing - Nagios XI

Posted: Mon Sep 28, 2015 4:19 pm
by amit.ahuja
Hello,

We are using Nagios XI and using a service as a template - but performace data is showing as null - where as for other services for same device we are able to see the data.

I have looked at this document to troubleshoot but did not helped -
https://support.nagios.com/wiki/index.p ... h_Problems

Can anyone help in figuring out why we are not able to see performance or historical data.

Thanks,
Amit

Re: Performance data not showing - Nagios XI

Posted: Tue Sep 29, 2015 6:37 am
by lmiltchev
Can you show us the actual cheek run from the command line along with the output of it?

Also, go to "Home->Service Detail-><your service>, and show a screenshot of the "Advanced" tab page.

Run the following commands and show the output:

Code: Select all

ls /usr/local/nagios/var/spool/xidpe | wc -l
ls /usr/local/nagios/var/spool/perfdata | wc -l
ls /usr/local/nagios/var/spool/checkresults | wc -l
top | head -5

Re: Performance data not showing - Nagios XI

Posted: Tue Sep 29, 2015 8:31 am
by amit.ahuja
Thanks for looking at this and your help, please find the details you asked for. -

Can you show us the actual cheek run from the command line along with the output of it?

[root@xxxxxxx libexec]# /usr/local/nagios/libexec/check_snmp_load.pl -H xx.xxx.xxx.xx -C simpsons -Tnetsc -w 80 -c 90
CPU used 4.0% (<80) : OK

Also, go to "Home->Service Detail-><your service>, and show a screenshot of the "Advanced" tab page.

please find attached

Run the following commands and show the output:
CODE: SELECT ALL
ls /usr/local/nagios/var/spool/xidpe | wc -l

[root@xxxxxxxx libexec]# ls /usr/local/nagios/var/spool/xidpe | wc -l
0


ls /usr/local/nagios/var/spool/perfdata | wc -l

[root@xxxxxxxx libexec]# ls /usr/local/nagios/var/spool/perfdata | wc -l
0

ls /usr/local/nagios/var/spool/checkresults | wc -l

[root@xxxxxxx libexec]# ls /usr/local/nagios/var/spool/checkresults | wc -l
1274

top | head -5

top - 09:29:55 up 71 days, 9:39, 3 users, load average: 0.53, 0.71, 0.77
Tasks: 272 total, 1 running, 269 sleeping, 1 stopped, 1 zombie
Cpu(s): 9.9%us, 2.1%sy, 0.0%ni, 87.2%id, 0.8%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 24608040k total, 17771248k used, 6836792k free, 1126000k buffers
Swap: 16383996k total, 0k used, 16383996k free, 10796172k cached

Re: Performance data not showing - Nagios XI

Posted: Tue Sep 29, 2015 9:40 am
by tgriep
The check_snmp_load plugin has a command line option to output the performance data.
If you add a -f to your check command, it should start to output performance data.

Re: Performance data not showing - Nagios XI

Posted: Tue Sep 29, 2015 11:11 am
by amit.ahuja
Thanks that worked for check_snmp_load.pl but now there are few others where we are not able to see performace graphs - for example to check tmm memory for F5

[root@esu4v247 libexec]# ./check_f5tmmmem.pl
Usage:
./check_f5tmmmem.pl <f5_host> <community_string> <memory warn threashold> <memory err threashold>

we do not see -f as an option.

can you suggest something on this.

Thanks

Re: Performance data not showing - Nagios XI

Posted: Tue Sep 29, 2015 11:37 am
by tgriep
I couldn't find any information on the check_f5tmmmem.pl plugin but not all plugins are written to output performance data.
You can post it here or the link that you downloaded it from.
If you run the following in a shell, it might give you more info on the usage of the plugin.

Code: Select all

/usr/local/nagios/libexec/check_f5tmmmem.pl --help

Re: Performance data not showing - Nagios XI

Posted: Tue Sep 29, 2015 11:59 am
by amit.ahuja
Please find attached .pl file we are using to collect the stats - we got this script from - https://exchange.nagios.org/components/ ... 7&cf_id=24

Also the output for command ois as follows -

[root@esu4v247 libexec]# /usr/local/nagios/libexec/check_f5tmmmem.pl --help
Usage:
/usr/local/nagios/libexec/check_f5tmmmem.pl <f5_host> <community_string> <memory warn threashold> <memory err threashold>
[root@esu4v247 libexec]#

Re: Performance data not showing - Nagios XI

Posted: Tue Sep 29, 2015 12:16 pm
by lmiltchev
Not all of the plugins return perfdata output (the text to the right of the pipe "|"). Can you show us an example of a "check_f5tmmmem.pl" check run from the command line along with the output of it?

Re: Performance data not showing - Nagios XI

Posted: Tue Sep 29, 2015 12:34 pm
by amit.ahuja
Here you go --

[root@esu4v247 libexec]# ./check_f5tmmmem.pl xx.xx.xxx.xx simpsons 80 90
OK: TMM Memory utilization on xx.xxx.xxx.xx is 7%
[root@esu4v247 libexec]#

Thanks

Re: Performance data not showing - Nagios XI

Posted: Tue Sep 29, 2015 1:37 pm
by lmiltchev
It seems like this is a limitation of the plugin. I don't see perfdata in the output. Here's an example of a perfdata output from a check:
/usr/local/nagios/libexec/check_nrpe -H x.x.x.x -p 5666 -c check_users -a '-w 2 -c 5'
USERS OK - 1 users currently logged in |users=1;2;5;0