NCPA on CentOS Process check.
Posted: Wed Dec 14, 2016 10:58 am
Hey there, not sure if it's best to be posting this sort of thing here or on the nagios forum
i'm trying to have some process checks using NCPA
root@grhldesv02(/tmp):service --status-all | grep portal
portal:archiver RUNNING pid 22035, uptime 0:04:54
portal:celery_portal STOPPED Dec 14 02:27 PM
portal:celerybeat RUNNING pid 2129, uptime 6 days, 5:10:35
portal:celeryd STOPPED Dec 14 02:27 PM
portal:indexer RUNNING pid 2036, uptime 6 days, 5:10:36
portal:notifier RUNNING pid 2148, uptime 6 days, 5:10:34
portal:notifyindexer STOPPED Dec 14 02:27 PM
portal RUNNING pid 2073, uptime 6 days, 5:10:35
portal:re3 RUNNING pid 2007, uptime 6 days, 5:10:37
here's the list of processes.
In the nagios wizard i dont see them in the service list so i specify them in the process list.
i've tried:
portal:archiver
archiver
either way i get the following back:
OK: Process count for processes named archiver was 0c
this is the service check command:
[[email protected] ~]# /usr/local/nagios/libexec/check_ncpa.py -H 10.101.0.100 -t 'mytoken' -P 5693 -M 'process/archiver/count' -w 0 -c 0
OK: Process count for processes named archiver was 0c | 'process_count_0'=0c;0;0;
am i missing something?
also, i'm using supervisor so not sure if that affects it
i'm trying to have some process checks using NCPA
root@grhldesv02(/tmp):service --status-all | grep portal
portal:archiver RUNNING pid 22035, uptime 0:04:54
portal:celery_portal STOPPED Dec 14 02:27 PM
portal:celerybeat RUNNING pid 2129, uptime 6 days, 5:10:35
portal:celeryd STOPPED Dec 14 02:27 PM
portal:indexer RUNNING pid 2036, uptime 6 days, 5:10:36
portal:notifier RUNNING pid 2148, uptime 6 days, 5:10:34
portal:notifyindexer STOPPED Dec 14 02:27 PM
portal RUNNING pid 2073, uptime 6 days, 5:10:35
portal:re3 RUNNING pid 2007, uptime 6 days, 5:10:37
here's the list of processes.
In the nagios wizard i dont see them in the service list so i specify them in the process list.
i've tried:
portal:archiver
archiver
either way i get the following back:
OK: Process count for processes named archiver was 0c
this is the service check command:
[[email protected] ~]# /usr/local/nagios/libexec/check_ncpa.py -H 10.101.0.100 -t 'mytoken' -P 5693 -M 'process/archiver/count' -w 0 -c 0
OK: Process count for processes named archiver was 0c | 'process_count_0'=0c;0;0;
am i missing something?
also, i'm using supervisor so not sure if that affects it