Page 1 of 1
NCPA Remote Service Reports unknown
Posted: Wed Aug 14, 2019 4:57 pm
by Maxwellb99
Hi,
I'm trying to check the status of a service. The NCPA Plugin is coming back with unknown for the service state. Under what circumstances would this happen? The service is running on the remote host. Other Services are running.
unknown remote service state.PNG
Thanks,
Maxwell Ramirez
Re: NCPA Remote Service Reports unknown
Posted: Thu Aug 15, 2019 10:44 am
by lmiltchev
The status is set to "Unknown" if NCPA can't actually verify the status of the service, e.g.
due to insufficient permissions. See more here:
https://github.com/NagiosEnterprises/ncpa/issues/438
You could verify this by trying to check the status of the service logged in as nagios user:
Code: Select all
[nagios@speedking ~]$ whoami
nagios
[nagios@speedking ~]$ service postfix status
master status unknown due to insufficient privileges.
[root@speedking ~]# whoami
root
[root@speedking ~]# service postfix status
master (pid 1570) is running...
The check would work, if you changed uid amd gid to "root" the in the /usr/local/ncpa/etc/ncpa.cfg and restarted the NCPA services.
Note: Most people wouldn't want to make this change. I am just explaining the root cause of the issue.
