Xymon Mailing List Archive search

process checks and user IDs

list Greg Shea
Tue, 25 Jul 2006 22:04:41 -0400
Message-Id: <user-98fb5c61d93a@xymon.invalid>

Looks like in 2 places although one is just for BB compatibility
$HOBBIT/client/bin/hobbitclient-sunos.sh 
$HOBBIT/client/etc/hobbitclient.cfg (BB compatible)

-Grs-

-----Original Message-----
From: Gary B. [mailto:user-33b796116d5f@xymon.invalid] 
Sent: Tuesday, July 25, 2006 9:52 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] process checks and user IDs

But where do you change the ps command that Hobbit uses on the client?
The stock 'ps' from Solaris can use the -o option for format
So a command like, ps -eo user,pid,args would give you:
raditz#66 <Grs> ps -eo user,pid,args
    USER   PID COMMAND
    root     0 sched
    root     1 /etc/init -
    root     2 pageout
    root     3 fsflush
    root  1076 /usr/lib/saf/sac -t 300
    root   342 /usr/apache/bin/httpd
    root   221 /usr/sbin/cron
...

HTH
-Grs-
-----Original Message-----
From: Charles Jones -X (charljon - Cisco Learning Institute at Cisco)
[mailto:user-7dc89f926684@xymon.invalid]
Sent: Tuesday, July 25, 2006 3:22 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] process checks and user IDs

I don't know if it helps, but on Solaris you can usually use
/usr/ucb/ps
instead of the normal ps, which has similar options to the linux ps,
including the -w (wide output) flags which will show full process
names.

-Charles


From: Gary B. [mailto:user-33b796116d5f@xymon.invalid]
Sent: Tue 7/25/2006 12:18 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] process checks and user IDs


I've looked through all the documentation, and can't find any
information on how Hobbit processes the process check rules.

I ask because we have some BB process check rules that check for user
IDs in the ps output, rather than an actual process, and there's no
real way of converting that into Hobbit.  Also, the Solaris ps output
doesn't include the full process name, so I can't check for the
process that way either.

Any suggestions?