On Sep 26, 2008, at 1:43 AM, Jean Frontin wrote: > command[check_xxx]=/etc/nagios/check_xxx > > where check_xxx is a "ps -ef"... > > When processes are running I receive on A "processes are running". > But when processes are down I receive : > > CHECK_NRPE: No output received from daemon > > the command on B "ps -ef ..." writes nothing ! > > I should receive, on server nagios A, an alert "critical state" ! and, > of course, a "recovery" when processes are running again !
'ps' is not a nagios plugin so it will not exhibit proper/expected behavior. Nagios has requirements for programs to be used as nagios plugins and most (all?) normal system commands do not comply with those requirements. http://nagiosplug.sourceforge.net/developer-guidelines.html If you want to use 'ps', you can create a wrapper program that calls it and exits with the proper exit status based on your criteria, or you just might want to look at the check_procs plugin. -- Marc ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users@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