Page 1 of 1

NCPA on CentOS Process check.

Posted: Wed Dec 14, 2016 10:58 am
by chrisbooth
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

Re: NCPA on CentOS Process check.

Posted: Wed Dec 14, 2016 11:02 am
by dwhitfield
chrisbooth wrote:Hey there, not sure if it's best to be posting this sort of thing here or on the nagios forum
Others may disagree but I'm personally of the opinion that even if you are using a Core view, if XI is installed, XI forums are where to go. We limit where XI is installed, so it gets past the questions about whether it is installed on BSD or Linux and what Linux distros. There might also be a better "XI way" than using Core view, so we can use that as a suggestion.

So, we can certainly deal with your current NCPA, but 2.0.0 comes out "tomorrow": https://github.com/NagiosEnterprises/nc ... HANGES.rst