check_procs query

Swati Srivastava swati220781 at hotmail.com
Thu Jul 8 11:54:00 CEST 2004


Hi!!
I want to monitor one particular process named PushGateway. As you can see 
in the ps output, there are multiple processes running with the command name 
java. If i want to monitor one particular process out of that, how do i do 
that?

Kindly help.
Swati

Here are some of the results i get:

[swati at localhost libexec]$ ./check_procs -w 3 -c 5 -C java PushGateway
OK - 3 processes running with command name java

[swati at localhost libexec]$ ./check_procs -w 3 -c 5 -C "java PushGateway"
OK - 0 processes running with command name java PushGateway

[swati at localhost libexec]$ ./check_procs -w 3 -c 5 -C PushGateway
OK - 0 processes running with command name PushGateway

[swati at localhost libexec]$ ./check_procs ./check_procs -w 3 -c 5 -C 
"PushGateway"
OK - 0 processes running with command name PushGateway

[swati at localhost libexec]$ ps -ef|grep PushGateway
root     29139     1  0 Mar24 ?        00:10:21 java PushGateway1
root     24907     1  1 Jul01 ?        02:15:50 java PushGateway
swati    24864 22471  0 11:48 pts/4    00:00:00 grep PushGateway

[swati at localhost libexec]$ ps -ef|grep java
root     29139     1  0 Mar24 ?        00:10:21 java PushGateway1
root     24907     1  1 Jul01 ?        02:15:50 java PushGateway
root     24752 24608  0 11:46 pts/10   00:00:00 java MTVCdrGenerator
swati    24996 22471  0 11:48 pts/4    00:00:00 grep java

[swati at localhost libexec]$ ps -aux|grep PushGateway
root     29139  0.0  0.6 215232 13904 ?      S    Mar24  10:22 java 
PushGateway1
root     31179  1.1  2.3 256048 48140 ?      S    12:57   3:20 java 
PushGateway
swati    13950  0.0  0.0  3696  544 pts/4    S    15:53   0:00 grep 
PushGateway

[swati at localhost libexec]$ ps -ef|grep java PushGateway
grep: PushGateway: No such file or directory

[swati at localhost libexec]$ ps -ax|grep java PushGateway
grep: PushGateway: No such file or directory

[swati at localhost libexec]$ ps -au|grep java PushGateway
grep: PushGateway: No such file or directory

_________________________________________________________________
Reach out to millions of buyers. http://go.msnserver.com/IN/52047.asp With 
zero investment.



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
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