Xymon Mailing List Archive search

process checks and user IDs

6 messages in this thread

list Gary B. · Tue, 25 Jul 2006 15:18:43 -0400 ·
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?
list Charles Jones -X Charljon - Cisco Learning Institute at Cisco · Tue, 25 Jul 2006 12:21:50 -0700 ·
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
quoted from Gary B.


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?
list Greg Shea · Tue, 25 Jul 2006 17:10:22 -0400 ·
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
quoted from Charles Jones -X Charljon - Cisco Learning Institute at Cisco

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?
list Gary B. · Tue, 25 Jul 2006 21:51:49 -0400 ·
But where do you change the ps command that Hobbit uses on the client?
quoted from Greg Shea
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?

list Greg Shea · Tue, 25 Jul 2006 22:04:41 -0400 ·
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-
quoted from Gary B.

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

list Gary B. · Wed, 26 Jul 2006 09:09:49 -0400 ·
Ah, hobbitclient-sunos.sh.  I was looking for that file and couldn't
find it.  Guess I didn't look hard enough.  Thanks.
quoted from Greg Shea
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?