check_procs not detecting process
Vincent Aniello
Vincent.Aniello at PipelineTrading.com
Tue Aug 31 19:30:00 CEST 2004
On Redhat Enterprise 2.1 the command:
/bin/ps -weo 'stat uid ppid comm args'
is being used.
STAT UID PPID COMMAND COMMAND
S 500 1 perl blkstd
The command is actually 'perl' with the arguments being the process name
I am looking for, blkstd.
When I look for the process with the command 'ps -ef' is appears
correctly.
[exa at rtblks01 bin]$ ps -ef|grep blkstd
exa 5082 1 0 Aug25 ? 00:01:37 blkstd
Any idea how I can fix this?
V/
________________________________
From: Phil Costelloe [mailto:philc at foundation-it.com]
Sent: Tuesday, August 31, 2004 9:34 AM
To: Vincent Aniello
Subject: RE: [Nagios-users] check_procs not detecting process
On my Mandrake 9 box, the command Nagios uses is something like
ps -weo 'stat uid ppid comm args'
which does have a habit of truncating the args output (i.e. the command
itself). You can probably figure out what's being used on your system by
having a look at config.status in your plugins build directory (if you
built from source). Run that command and see if what you're grepping for
is in the output.
Phil
-----Original Message-----
From: Vincent Aniello
[mailto:Vincent.Aniello at PipelineTrading.com]
Sent: 27 August 2004 14:15
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] check_procs not detecting process
I am having a problem with check_procs not detecting a process
that is running. When I run check_procs it detects '0' processes
running, but when I perform a ps for the process I see it running. See
below for the output from the commands.
[root at rtblks01 etc]# /usr/local/nagios/libexec/check_procs -C
blkstd
OK - 0 processes running with command name blkstd
[root at rtblks01 etc]# ps -ef|grep blkstd
exa 5082 1 0 Aug25 ? 00:00:18 blkstd
The check_procs version is:
check_procs (nagios-plugins 1.3.1) 1.9.2.1
I am running Redhat Enterprise 2.1.
Has any one seen this before? Any help would be appreciated.
Thanks.
V/
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idP47&alloc_id808&op=click
_______________________________________________
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