Skip to main content
added 11 characters in body
Source Link
Mike
  • 22.8k
  • 8
  • 60
  • 85

I am working on setting up Nagios monitoring. I was able to setup and monitor the system processes. Now, I am working on setting up monitoring for custom running processes.

We are having python worker process running with identifier. Each process is having it's separate pid file (worker_1.pid, worker_2.pid)

root 3642 1 3 Jan24 ? 08:22:36 /usr/bin/python /test/worker.py -i 1 root 345 1 3 Jan24 ? 08:22:36 /usr/bin/python /test/worker.py -i 2

root 3642 1 3 Jan24 ? 08:22:36 /usr/bin/python /test/worker.py -i 1 root 345 1 3 Jan24 ? 08:22:36 /usr/bin/python /test/worker.py -i 2 

I am not sure which option I have to use of check_procs to monitor these processes separately?

root@instance:/etc/nagios# /usr/lib/nagios/plugins/check_procs -C python -a worker PROCS OK: 2 processes with command name 'python', args 'worker'

root@instance:/etc/nagios# /usr/lib/nagios/plugins/check_procs -C python -a worker PROCS OK: 2 processes with command name 'python', args 'worker' 

Thanks

I am working on setting up Nagios monitoring. I was able to setup and monitor the system processes. Now, I am working on setting up monitoring for custom running processes.

We are having python worker process running with identifier. Each process is having it's separate pid file (worker_1.pid, worker_2.pid)

root 3642 1 3 Jan24 ? 08:22:36 /usr/bin/python /test/worker.py -i 1 root 345 1 3 Jan24 ? 08:22:36 /usr/bin/python /test/worker.py -i 2

I am not sure which option I have to use of check_procs to monitor these processes separately?

root@instance:/etc/nagios# /usr/lib/nagios/plugins/check_procs -C python -a worker PROCS OK: 2 processes with command name 'python', args 'worker'

Thanks

I am working on setting up Nagios monitoring. I was able to setup and monitor the system processes. Now, I am working on setting up monitoring for custom running processes.

We are having python worker process running with identifier. Each process is having it's separate pid file (worker_1.pid, worker_2.pid)

root 3642 1 3 Jan24 ? 08:22:36 /usr/bin/python /test/worker.py -i 1 root 345 1 3 Jan24 ? 08:22:36 /usr/bin/python /test/worker.py -i 2 

I am not sure which option I have to use of check_procs to monitor these processes separately?

root@instance:/etc/nagios# /usr/lib/nagios/plugins/check_procs -C python -a worker PROCS OK: 2 processes with command name 'python', args 'worker' 

Thanks

Source Link

Monitor worker process with nagios

I am working on setting up Nagios monitoring. I was able to setup and monitor the system processes. Now, I am working on setting up monitoring for custom running processes.

We are having python worker process running with identifier. Each process is having it's separate pid file (worker_1.pid, worker_2.pid)

root 3642 1 3 Jan24 ? 08:22:36 /usr/bin/python /test/worker.py -i 1 root 345 1 3 Jan24 ? 08:22:36 /usr/bin/python /test/worker.py -i 2

I am not sure which option I have to use of check_procs to monitor these processes separately?

root@instance:/etc/nagios# /usr/lib/nagios/plugins/check_procs -C python -a worker PROCS OK: 2 processes with command name 'python', args 'worker'

Thanks