Check_procs issue - Different Results
Thomas Guyot-Sionnest
dermoth at aei.ca
Wed May 30 16:42:32 CEST 2007
On 29/05/07 05:41 PM, Sapon, Dimitry wrote:
> Hi there,
>
> I'm getting different results for the check_procs plugin from command
> line to the web interface of Nagios.
>
> In the command line, if I use the same command as Nagios is supposed to
> run (specified in the commands.cfg and I monitored the commands passed
> to check_procs plugin), I get the correct number of processes running (2).
>
> When run as an active check initiated by Nagios, in the web interface on
> the other hand, once it gets the results from the service check back,
> even though it passes the same arguments to the check_procs plugin, I
> always get 1 extra result (so 3 processes running), as if the
> check_procs plugin runs two different ps|grep commands and doesn't
> exclude itself when initiated by Nagios. Seem ridiculous but that's the
> only conclusion I could come up with.
What command line arguments are you using? Nagios 2.x forks twice when
it run a binary check* so maybe you're getting the first fork in your
results?
(*) Embedded Perl checks forks once and in Nagios 3 you can disable the
double-fork.
Thomas
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list