NCPA Remote Service Reports unknown

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Maxwellb99
Posts: 97
Joined: Tue Jan 26, 2016 5:29 pm

NCPA Remote Service Reports unknown

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NCPA Remote Service Reports unknown

Post 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.

Code: Select all

uid = root
gid = root
Note: Most people wouldn't want to make this change. I am just explaining the root cause of the issue. :)
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked