Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
and then I don't see those results show up in nagios ... so I looked in the logs and this is the what it says:
[1394735470] PASSIVE HOST CHECK: alex;0;Everything looks okay!\n
[1394735470] Warning: Check of service 'uptime' on host 'alex' timed out after 0.000s!
[1394735470] PASSIVE SERVICE CHECK: alex;uptime;3;(Service check timed out after 0.00 seconds)
[1394735470] SERVICE ALERT: alex;uptime;UNKNOWN;HARD;1;(Service check timed out after 0.00 seconds)
It seems to happen consistently. I'm guessing that there is a variable in the config that I have set incorrectly. Any ideas?
Thanks ... I upgraded nagios and the timeout error stopped. But now when I try to use nrdp nothing happens. I don't see anything in the logs and there is no indication in nagios that any information was sent. I'm not sure how to even start to debug this. Any ideas?
Mar 24 14:55:14 lnxsrv78 httpd: [Mon Mar 24 14:55:14 2014] [error] [client 129.99.133.23] PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /usr/local/nrdp/server/plugins/nagioscorepassivecheck/nagioscorepassivecheck.inc.php on line 105, referer: http://lnxsrv78/nrdp/
Mar 24 14:55:14 lnxsrv78 httpd: [Mon Mar 24 14:55:14 2014] [error] [client 129.99.133.23] PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /usr/local/nrdp/server/plugins/nagioscorepassivecheck/nagioscorepassivecheck.inc.php on line 105, referer: http://lnxsrv78/nrdp/
Mar 24 14:55:14 lnxsrv78 httpd: nasmac3123.ndc.nasa.gov - - [24/Mar/2014:14:55:13 -0700] "POST" "POST /nrdp/ HTTP/1.1" "" 200 170 "http://lnxsrv78/nrdp/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Firefox/24.0"
I double checked the config file and didn't see anywhere to specify the timezone.
That's in the PHP config file, /etc/php.ini on my system. You want to look for the date.timezone entry, and there will be a URL above it which will give you specifics on what timezones you can use. I believe you will need to restart apache after changing it.