Code: Select all
[...] -c check_procs -a '-C \'server cmr\''Code: Select all
[...] -c check_procs -a '-C \'server cmr\''Code: Select all
[root@Nagios1]# /usr/local/nagios/libexec/check_nrpe -H 192.168.0.0 -c check_procs -a '-C \'server cmr\''
>Code: Select all
ps -A
2424 pts/0 00:00:00 tail testCode: Select all
./check_procs -C 'tail test' -vvv
CMD: /bin/ps axwo 'stat uid pid ppid vsz rss pcpu comm args'
.... lots of output blah blah blah ....
PROCS OK: 0 processes with command name 'tail test'Code: Select all
S+ 0 2424 2287 100944 632 0.0 tail test ./tail testproc#=0 uid=0 vsz=100944 rss=632 pid=2424 ppid=2287 pcpu=0.00 stat=S+ etime= prog=tail args=test ./tail testCode: Select all
Ss 500 2427 2263 108340 1808 0.0 bash bashproc#=0 uid=500 vsz=108340 rss=1808 pid=2427 ppid=2263 pcpu=0.00 stat=Ss etime= prog=bash args=bashCode: Select all
[...] -c check_procs -a '-C \'server cmr\''