Hi,
I am trying to configure zabbix to count the number of a process.
admin@ip-10-22-215-171:~$ ps -ef | grep feapp
admin 12892 12774 0 22:09 pts/0 00:00:00 grep feapp
admin 23701 13236 8 Mar21 ? 02:49:26 /home/admin/.virtualenvs/express/bin/python /home/admin/express/manage.py celery worker -n feapp --loglevel=info --without-mingle --without-gossip -Q feapp --autoscale 4,1 -P eventlet -Ofair
admin 23702 13236 9 Mar21 ? 02:50:45 /home/admin/.virtualenvs/express/bin/python /home/admin/express/manage.py celery worker -n feapp --loglevel=info --without-mingle --without-gossip -Q feapp --autoscale 4,1 -P eventlet -Ofair
cmdline of the process
admin@ip-10-0-15-72:~$ cat /proc/23702/cmdline
/home/admin/.virtualenvs/express/bin/python/home/admin/express/manage.pyceleryworker-nfeapp--loglevel=info--without-mingle--without-gossip-Qfeapp--autoscale4,1-Peventlet-Ofair
Status file for the process
admin@ip-10-0-15-72:~$ cat /proc/23702/status
Name: python
State: S (sleeping)
Tgid: 23702
Ngid: 0
Pid: 23702
Count should come 2 but it is coming 0. Please help me.
I am able to count other processes like sshd and VBoxService but when I try this always get 0 value.
I am trying to configure zabbix to count the number of a process.
admin@ip-10-22-215-171:~$ ps -ef | grep feapp
admin 12892 12774 0 22:09 pts/0 00:00:00 grep feapp
admin 23701 13236 8 Mar21 ? 02:49:26 /home/admin/.virtualenvs/express/bin/python /home/admin/express/manage.py celery worker -n feapp --loglevel=info --without-mingle --without-gossip -Q feapp --autoscale 4,1 -P eventlet -Ofair
admin 23702 13236 9 Mar21 ? 02:50:45 /home/admin/.virtualenvs/express/bin/python /home/admin/express/manage.py celery worker -n feapp --loglevel=info --without-mingle --without-gossip -Q feapp --autoscale 4,1 -P eventlet -Ofair
cmdline of the process
admin@ip-10-0-15-72:~$ cat /proc/23702/cmdline
/home/admin/.virtualenvs/express/bin/python/home/admin/express/manage.pyceleryworker-nfeapp--loglevel=info--without-mingle--without-gossip-Qfeapp--autoscale4,1-Peventlet-Ofair
Status file for the process
admin@ip-10-0-15-72:~$ cat /proc/23702/status
Name: python
State: S (sleeping)
Tgid: 23702
Ngid: 0
Pid: 23702
Count should come 2 but it is coming 0. Please help me.
I am able to count other processes like sshd and VBoxService but when I try this always get 0 value.
Comment