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.
Thanks,
Maxwell Ramirez
NCPA Remote Service Reports unknown
-
Maxwellb99
- Posts: 97
- Joined: Tue Jan 26, 2016 5:29 pm
NCPA Remote Service Reports unknown
You do not have the required permissions to view the files attached to this post.
Re: NCPA Remote Service Reports unknown
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:
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. 
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...Code: Select all
uid = root
gid = rootBe sure to check out our Knowledgebase for helpful articles and solutions!