Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 126924 - check_nagios plugin not working
Summary: check_nagios plugin not working
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Lance Albertson (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-20 03:30 UTC by yogeshbug
Modified: 2006-07-04 12:30 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yogeshbug 2006-03-20 03:30:46 UTC
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
Comment 1 Richard Scott 2006-03-28 03:09:28 UTC
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
Comment 2 yogeshbug 2006-03-31 08:16:00 UTC
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.

Comment 3 Martin Adler 2006-04-09 22:49:40 UTC
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.
Comment 4 Lance Albertson (RETIRED) gentoo-dev 2006-07-04 12:30:00 UTC
Seems like it was a configuration issue. Reopen if thats not the issue.