I am using net-analyzer/nagios-2.0 and nagios plugins net-analyzer/nagios-plugins-1.4.2-r1 (0). when I am checking status of nagios process by check_nagios (1.26) plughin # /usr/nagios/libexec/check_nagios /var/nagios/status.dat 5 '/usr/nagios/bin/nagios' error Nagios problem: located 3 processes, status log updated 1142854161 seconds ago
I have just upgraded to nagios-plugins-1.4.2-r1 and I have this in my config file and it works just fine: nagios_check_command=/usr/nagios/libexec/check_nagios /var/nagios/status.dat 5 '/usr/nagios/bin/nagios' and when I run it from the command line its all ok for me: (root)# /usr/nagios/libexec/check_nagios /var/nagios/status.dat 5 /usr/nagios/bin/nagios' Nagios problem: located 10 processes, status log updated 1143543947 seconds ago If anything, the bug should be the displaying of a unix time stamp instead of human readable time i.e. 1143543989 = Tuesday, March 28th 2006, 11:06:29
I downloaded latest nagios plugins from CVS repository , compiled it and then ran same command. # /usr/nagios/libexec/check_nagios /var/nagios/status.dat 5 '/usr/nagios/bin/nagios' I got below output. NAGIOS OK: 3 processes, status log updated 0 seconds ago This is proper ouput I am expecting in current nagios plugins-1.4.2-r1 when I run check_nagios.
This has nothing to do with the plugin. Had the same issue after upgrading but it was a configuration problem. I wiped my entire config (which was not to big, I admit) and after going through a new setup, it worked fine. So I think this is just a configuration issue.
Seems like it was a configuration issue. Reopen if thats not the issue.