Weirdness with check_procs plugin on Solaris
Sandor W. Sklar
ssklar at stanford.edu
Sun May 6 05:50:09 CEST 2007
The check_procs plugin from the nagios-plugins 1.4.8 package isn't
working properly on my Solaris 8 and 9 systems.
I'm looking to get warned if there isn't exactly one process named
"dsmc", with the argument "sched" ... its working fine on RHEL 4 and
AIX 5.2:
On Linux:
# uname
Linux
# ps -fu root | egrep 'dsmc sched' | grep -v grep
root 2412 1 0 Mar20 ? 00:37:43 /opt/tivoli/tsm/
client/ba/bin/dsmc sched
]# ./check_procs -w 1:1 -u root -C dsmc -a sched
PROCS OK: 1 process with UID = 0 (root), command name 'dsmc', args
'sched'
On AIX:
# uname
AIX
# ps -ef | egrep 'dsmc sched' | grep -v grep
root 245308 1 37 May 04 - 17:32 /usr/bin/dsmc sched
# ./check_procs -w 1:1 -u root -C dsmc -a sched
PROCS OK: 1 process with UID = 0 (root), command name 'dsmc', args
'sched'
But on Solaris ...
# uname
SunOS
# ps -ef | egrep 'dsmc sched' | grep -v grep
root 385 1 3 Apr 27 ? 12:37 /opt/tivoli/tsm/
client/ba/bin/dsmc sched
# ./check_procs -w 1:1 -u root -C dsmc -a sched
PROCS WARNING: 0 processes with UID = 0 (root), command name 'dsmc',
args 'sched'
The plugin itself seems to be working ok ...
# ./check_procs
PROCS OK: 45 processes
... but it doesn't seem to be able to match against any processes ...
# pgrep inetd ; ./check_procs -C inetd
201
PROCS OK: 0 processes with command name 'inetd'
# pgrep sendmail ; ./check_procs -C sendmail
270
PROCS OK: 0 processes with command name 'sendmail'
Is this a known bug, or am I doing something wrong?
Thanks,
-s-
--
Sandor W. Sklar
Unix Systems Administrator
Stanford University Libraries & Academic Information Resources
Digital Libraries Systems & Services
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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