check_procs count going haywire on Ubuntu - still broken

Kimberly McKinnis kim at conviva.com
Wed Aug 10 20:24:17 CEST 2011


Thank you for that observation. I was being dumb with the quoting.
ButŠit's still not working correctly.

The commands work properly on the command line on the host (admin1), but
the Nagios server (monitor1) sees +1 count again. I am very confused by
this. Does Nagios server force it back to the dash shell in Ubuntu? I
thought maybe the +1 was transient because I ran the check manual, but all
of the checks are also reporting +1 and I haven't run them manually.

My check looks like: command[check_pdns_recursor]=/bin/bash -c
"/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -a pdns_recursor"


root at admin1:~# /bin/bash -c "/usr/lib/nagios/plugins/check_procs -w 1:1 -c
1:1 -a pdns_recursor"
PROCS OK: 1 process with args 'pdns_recursor'

But the server reports:


root at monitor1:/etc/nagios3/conf.d# /usr/lib/nagios/plugins/check_nrpe -H
admin2.cgx1.prod.conviva.com -c check_pdns_recursor
PROCS CRITICAL: 2 processes with args 'pdns_recursor'





C O N V I V A 
Kimberly McKinnis | Systems Engineer, Service Delivery | kim at conviva.com |
Mobile: 724.612.2716 |
2 WATERS PARK DRIVE  |  SUITE 150  |  SAN MATEO  |  CA  |  94403  |
www.conviva.com |





On 8/9/11 5:17 PM, "up at 3.am" <up at 3.am> wrote:

>> After wondering why all of the processes I'm checking with check_procs
>> were counting an extra, I discovered the bug with /bin/dash under Debian
>> [http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=626913]
>>
>> As a workaround (because I'm not interested in changing the default
>>shell
>> for the entire server), I called /bin/bash when defining my commands in
>> nrpe.cfg. Now they're going haywire in a different way. For instance:
>>
>> command[check_pdns_config_pub]=/bin/bash -c
>> /usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -a "pdns_server
>> --config-name=public"
>
>Wait...looks like your quotes are in the wrong place.  Try:
>
> command[check_pdns_config_pub]=/bin/bash -c
>"/usr/lib/nagios/plugins/check_procs
>-w 1:1 -c 1:1 -a pdns_server --config-name=public"
>
>Everything after -c should be in double quotes.
>
>--------------------------------------------------------------------------
>----
>uberSVN's rich system and user administration capabilities and model
>configuration take the hassle out of deploying and managing Subversion
>and 
>the tools developers use with it. Learn more about uberSVN and get a free
>download at:  http://p.sf.net/sfu/wandisco-dev2dev
>_______________________________________________
>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


------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
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