Re: [Nagios-users] check_procs count going haywire on Ubuntu - still broken

2011-08-11 Thread Axel Rosenski
Hi, 

Am Mittwoch, 10. Aug. 11, 18:24:17 schrieb Kimberly McKinnis:
 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.

I got this Problem, too.
It looks like -a counts it's own process grep.
Use -C to fix that.

Regards, Axel 

-- 
Axel Rosenski
- Administration -
__
Wave Computersysteme GmbH
Philipp-Reis-Str. 1-3 / 9
35440 Linden

Geschäftsführer: Carsten Kellmann
Registergericht Gießen HRB 1823

Tel.: +49 (0)6403 / 9050 8317
Fax: +49 (0)6403 / 9050 5089
mailto:rosen...@wave-computer.de
http://www.wave-computer.de


--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. 
http://p.sf.net/sfu/wandisco-dev2dev
___
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

Re: [Nagios-users] check_procs count going haywire on Ubuntu - still broken

2011-08-11 Thread Kimberly McKinnis
This worked. The man page for check_procs wasn't clear to me about that.
Thank you!

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





On 8/11/11 3:06 AM, Axel Rosenski rosen...@wave-computer.de wrote:

Hi, 

Am Mittwoch, 10. Aug. 11, 18:24:17 schrieb Kimberly McKinnis:
 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.

I got this Problem, too.
It looks like -a counts it's own process grep.
Use -C to fix that.

Regards, Axel 

-- 
Axel Rosenski
- Administration -
__
Wave Computersysteme GmbH
Philipp-Reis-Str. 1-3 / 9
35440 Linden

Geschäftsführer: Carsten Kellmann
Registergericht Gießen HRB 1823

Tel.: +49 (0)6403 / 9050 8317
Fax: +49 (0)6403 / 9050 5089
mailto:rosen...@wave-computer.de
http://www.wave-computer.de


--

Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
user administration capabilities and model configuration. Take
the hassle out of deploying and managing Subversion and the
tools developers use with it.
http://p.sf.net/sfu/wandisco-dev2dev
___
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


--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. 
http://p.sf.net/sfu/wandisco-dev2dev
___
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


Re: [Nagios-users] check_procs count going haywire on Ubuntu - still broken

2011-08-11 Thread Kimberly McKinnis
I spoke too soon. That broke all of my other more complex process checking
and it now sees 0 procs for everything else. What are the other caveats
for -C ?

Looking for: 
/usr/sbin/pdns_server --config-name=private --daemon --guardian=yes

by using: 
command[check_pdns_config_priv]=/bin/bash -c
/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -C \pdns_server
--config-name=private\

Now reports: PROCS CRITICAL: 0 processes with command name 'pdns_server
--config-name=private'





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





On 8/11/11 3:06 AM, Axel Rosenski rosen...@wave-computer.de wrote:

Hi, 

Am Mittwoch, 10. Aug. 11, 18:24:17 schrieb Kimberly McKinnis:
 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.

I got this Problem, too.
It looks like -a counts it's own process grep.
Use -C to fix that.

Regards, Axel 

-- 
Axel Rosenski
- Administration -
__
Wave Computersysteme GmbH
Philipp-Reis-Str. 1-3 / 9
35440 Linden

Geschäftsführer: Carsten Kellmann
Registergericht Gießen HRB 1823

Tel.: +49 (0)6403 / 9050 8317
Fax: +49 (0)6403 / 9050 5089
mailto:rosen...@wave-computer.de
http://www.wave-computer.de


--

Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
user administration capabilities and model configuration. Take
the hassle out of deploying and managing Subversion and the
tools developers use with it.
http://p.sf.net/sfu/wandisco-dev2dev
___
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


--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. 
http://p.sf.net/sfu/wandisco-dev2dev
___
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


Re: [Nagios-users] check_procs count going haywire on Ubuntu - still broken

2011-08-10 Thread Kimberly McKinnis
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@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@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 | k...@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, u...@3.am u...@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@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@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


Re: [Nagios-users] check_procs count going haywire on Ubuntu - still broken

2011-08-10 Thread up

I have no idea, but that would seem unlikely.  Have you tried my other 
suggestion?:

command[check_pdns_config_pub]=/path/to/your/bash-script

in bash-script:

#!/bin/bash

/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -a pdns_recursor


In effect creating a bash wrapper for the plugin.

 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@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@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 | k...@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, u...@3.am u...@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@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@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@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


Re: [Nagios-users] check_procs count going haywire on Ubuntu - still broken

2011-08-10 Thread Kimberly McKinnis
Yes, but that also made it worse :( There's only one process running, but
Nagios now reports three. I am really stuck here.

From /etc/nagios/nrpe.cfg on admin1
command[check_pdns_recursor]=/etc/nagios/pdns_recursor.sh

root@admin1:/etc/nagios# less pdns_recursor.sh
#!/bin/bash

/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -a pdns_recursor
root@monitor1:~# /bin/bash -c /usr/lib/nagios/plugins/check_nrpe -H
admin1.cgx1.prod.conviva.com -c check_pdns_recursor
PROCS CRITICAL: 3 processes with args 'pdns_recursor'

root@admin1:/etc/nagios# ps wgaux | grep recursor
root 14508  0.0  0.0   8952   876 pts/1S+   18:59   0:00 grep
--color=auto recursor
pdns 25186  0.0  0.0 110124  1884 ?Ssl  Aug09   0:03
/usr/sbin/pdns_recursor --config-dir=/etc/powerdns/recursor-public.d








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





On 8/10/11 11:43 AM, u...@3.am u...@3.am wrote:


I have no idea, but that would seem unlikely.  Have you tried my other
suggestion?:

command[check_pdns_config_pub]=/path/to/your/bash-script

in bash-script:

#!/bin/bash

/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -a pdns_recursor


In effect creating a bash wrapper for the plugin.

 Thank you for that observation. I was being dumb with the quoting.
 ButSit'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@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@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 |
k...@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, u...@3.am u...@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@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@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 

[Nagios-users] check_procs count going haywire on Ubuntu

2011-08-09 Thread Kimberly McKinnis
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

But now Nagios reports: PROCS OK: 271 processes

I am baffled. Every process I am checking now reports 271, which is how
many total processes are running. Prior to explicitly defining the shell
in the command, it was reporting correctly but adding one process to the
count, so I shouldn't have broken it too badly here.

Any suggestions on a better workaround? Thanks!

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




--
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@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


Re: [Nagios-users] check_procs count going haywire on Ubuntu

2011-08-09 Thread up
 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@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