[Nagiosplug-devel] Plug-in check_procs

Graziano, Paul paul.graziano at rbc.com
Tue Sep 29 22:01:28 CEST 2009


Hi,
we discovered a bug with check_procs & I've downloaded the source code.
How do I know
If I have the correct version of the source based on our binary that we
are running.  When I run check_procs --help
the top line says check_procs v1758 (nagios-plugins 1.4.11).  I can't
find these values in the source code.

 print_revision (progname, NP_VERSION)

Bug Details
When executing the check_procs on HPUX or AIX the plug-in executes "ps
-el" not "ps -ef". This means that the pattern is not matched and the
plugin thinks the process is not running when it is.

./check_procs -w1 -c1 -C gcp_get_mistral_results.pl -vvv
<debug>
CMD: /usr/bin/ps -el (AIX 4.1 and HP-UX)
<debug>

Shows that for HPUX & AIX check_procs runs "ps -el"

And if I do ps -el on the command line - 
bigbro at lntrs184# ps -el | grep mistral_recv.pl

But the process is running.
bigbro at lntrs184# ps -ef | grep mistral_recv.pl
     rbc 23426     1  0  Sep  9  ?        15:10 /usr/bin/perl -w
./mistral_recv.pl


Thanks,
Paul Graziano

_______________________________________________________________________

This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations.
Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized.
If you received this e-mail in error, please advise me (by return e-mail or otherwise) immediately.  

Ce courrier électronique est confidentiel et protégé. L'expéditeur ne renonce pas aux droits et obligations qui s'y rapportent.
Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il contient par une personne autre que le (les) destinataire(s) désigné(s) est interdite.
Si vous recevez ce courrier électronique par erreur, veuillez m'en aviser immédiatement, par retour de courrier électronique ou par un autre moyen.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nagios-plugins.org/archive/devel/attachments/20090929/910a2eea/attachment.html>


More information about the Devel mailing list