Page 1 of 1

NAGIOS PERFORMANCE DATA FOR PASSIVE CHECKS NOT RECORDED

Posted: Mon Mar 19, 2012 7:43 am
by mainap
Hi all. I have installed nagios on a stand alone server and am monitoring a large number of hosts. I am currently using passive host checks for majority of the hosts. My major problem is that the passive checks are received but then no performance data is recorded in the performance data log file. I therefore cannot generate nagiosgraph graphs for the passive service checks. Does anybody know anything about this? please help. Thanks in advance. :?:

Re: NAGIOS PERFORMANCE DATA FOR PASSIVE CHECKS NOT RECORDED

Posted: Mon Mar 19, 2012 9:40 am
by mguthrie
Can you post an example of what you're sending with the passive check? Not all plugins send performance data.

http://nagiosplug.sourceforge.net/devel ... tml#AEN201

Re: NAGIOS PERFORMANCE DATA FOR PASSIVE CHECKS NOT RECORDED

Posted: Mon Mar 19, 2012 10:53 am
by mainap
I run my passive checks as cron jobs:
5,10,15,20,25,30,35,40,45,50,55 * * * * /nscascript/nscacommands

the contents of the nscacommands are as below:

/nscascript/nsca_wrapper -H netrasrv -S "CPU Load" -C "/usr/local/nagios/libexec/check_load -w 40 -c 70" -N 192.168.253.14 -b /opt/sendnsca/send_nsca -c /opt/sendnsca/send_nsca.cfg
/nscascript/nsca_wrapper -H netrasrv -S "usr_partition" -C "/usr/local/nagios/libexec/check_disk -w 60% -c 80% /usr" -N 192.168.253.14 -b /opt/sendnsca/send_nsca -c /opt/sendnsca/send_nsca.cfg
/nscascript/nsca_wrapper -H netrasrv -S "opt_partition" -C "/usr/local/nagios/libexec/check_disk -w 70% -c 85% /opt" -N 192.168.253.14 -b /opt/sendnsca/send_nsca -c /opt/sendnsca/send_nsca.cfg
/nscascript/nsca_wrapper -H netrasrv -S "root_partition" -C "/usr/local/nagios/libexec/check_disk -w 70% -c 85% /" -N 192.168.253.14 -b /opt/sendnsca/send_nsca -c /opt/sendnsca/send_nsca.cfg
/nscascript/nsca_wrapper -H netrasrv -S "process_count" -C "/usr/local/nagios/libexec/check_procs -w 2:2 -c 2:1024" -N 192.168.253.14 -b /opt/sendnsca/send_nsca -c /opt/sendnsca/send_nsca.cfg

these run on a solaris box where I have installed the nagios plugins being used. these plugins by default will return performance data to the nagios server. evidence of this is as below:

[1332172263] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;netrasrv;CPU Load;0;OK - load average: 0.03, 0.04, 0.04|load1=0.027;40.000;70.000;0; load5=0.035;40.000;70.000;0; load15=0.035;40.000;70.000;0;
[1332172264] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;netrasrv;usr_partition;0;DISK OK - free space: /usr 32538 MB (81% inode=96%);| /usr=7398MB;16136;8067;0;40340
[1332172264] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;netrasrv;opt_partition;0;DISK OK - free space: /opt 14443 MB (96% inode=99%);| /opt=533MB;4538;2269;0;15128
[1332172264] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;netrasrv;root_partition;0;DISK OK - free space: / 14236 MB (95% inode=98%);| /=741MB;4538;2269;0;15128

Thanks in advance.

Re: NAGIOS PERFORMANCE DATA FOR PASSIVE CHECKS NOT RECORDED

Posted: Tue Mar 20, 2012 9:38 am
by mguthrie
So the performance data is being sent ok. Do you have "process_perf_dat=1" for your services?

Do you have performance data processing commands defined in your main nagios.cfg file?

If you're stuck, post your nagios.cfg, and a sample service.cfg file.