[Nagiosplug-help] check_procs version 1.3.0-beta2

Voon, Ton Ton.Voon at egg.com
Tue Feb 18 07:43:13 CET 2003


Matthias,

Firstly, can you try the latest tarball at
http://www.debisschop.net/src/nagios/ because there have been quite a few
changes to check_procs.

Secondly, if you run check_procs with -v it will show you the ps command
used to list all processes. I assume your example output below is using this
ps command. If so, then the -C flag does an exact comparison (no wildcards
yet, but will be in a later version) with the 4th column. So you would need
to run:

check_procs -C restartvideo

to find the restartvideo process. If you want to search based on the 5th
column, you need to run:

check_procs -a "/usr/bin/perl /usr/local/bin/restartvideo"

Again, be aware that it must be an exact match.

Ton

> -----Original Message-----
> From:	Matthias Fechner [SMTP:idefix at fechner.net]
> Sent:	Tuesday, February 18, 2003 12:33 PM
> To:	Nagios Mailinglist
> Subject:	Re: [Nagiosplug-help] check_procs version 1.3.0-beta2
> 
> Hallo Subhendu,
> 
> * Subhendu Ghosh <sghosh at sghosh.org> [17-02-03 14:15]:
> > -C "/usr/bin/perl" -a "/usr/local/bin/startvideo"
> 
> I have tried now several combinations, but noone will work.
> I tried it very easy to test if check_procs is running fine, but:
> check_procs -C perl will return:
> OK - 0 processes running with command name perl
> 
> It seems, the checkprocs will not find any perlprocess.
> 
> I tried:
> ./check_procs -C "/usr/bin/perl"
> 
> It returns:
> OK - 0 processes running with command name /usr/bin/perl
> 
> But on this system(Debian unstable) are running several perlprocesses:
> S        0     1 restartvideo     /usr/bin/perl
> /usr/local/bin/restartvideo
> S        0   328 startvideo       /usr/bin/perl /usr/local/bin/startvideo
> S        0     1 vdradmind.pl     /usr/bin/perl
> /usr/local/video/vdradmin/vdradmind.pl
> 
> But it seems, that check_procs will not find any of them.
> 
> Now i tried it on a FreeBSD-System.
> I want to track the following programm.
> Ss       0     1 ppp              ppp
> 
> But this programm is started with several arguments:
>  /usr/sbin/ppp -quiet -ddial -nat default
>  
> It seems, that i have really strange problems with check_procs.
> 
> Can anyone give me tips to solve these problems, please?
> 
> -- 
> Bye
> Matthias
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> ::: Please include plugins version (-v) and OS when reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null


This private and confidential e-mail has been sent to you by Egg.
The Egg group of companies includes Egg Banking plc
(registered no. 2999842), Egg Financial Products Ltd (registered
no. 3319027) and Egg Investments Ltd (registered no. 3403963) which
carries out investment business on behalf of Egg and is regulated
by the Financial Services Authority.  
Registered in England and Wales. Registered offices: 1 Waterhouse Square,
138-142 Holborn, London EC1N 2NA.
If you are not the intended recipient of this e-mail and have
received it in error, please notify the sender by replying with
'received in error' as the subject and then delete it from your
mailbox.





More information about the Help mailing list