Page 1 of 1

NCPA on Linux Host Shows No Services

Posted: Fri May 01, 2020 7:36 pm
by allenhoward
Hi All,

I installed NCPA on a Debian 9 machine and was trying to monitor the Apache service (apache2). When the command runs, it says that the apache2 service is not found.

Here is the service definition:

Code: Select all

define service{
        use                     generic-service
        host_name               <hostname>
        service_description     Apache2 Service
        check_command           check_ncpa!-t '<token>' -P 5693 -M services -q service=apache2,status=running
        max_check_attempts      2
        check_interval          30
        retry_interval          5
        check_period            24x7
        contact_groups          admins
        register                1
        notification_interval   720
#}
I also logged into the host's NCPA interface and this is what I see in the API:

Code: Select all

"root": {
        "services": [],
        "processes": [],
Now, obviously, I'd expect the services and processes to be listed, but I'm guessing I have something misconfigured. Does anyone have any suggestions on things to try? I'm at a loss of what could be wrong that the ncpa_listener service wouldn't find the services running on the system.

Thank you in advance,
~Allen