Page 1 of 1

NCPA throwing error when checking for Status

Posted: Wed Apr 05, 2017 11:38 am
by Sampath.Basireddy
Hello There,

We have recently upgraded NCPA on our Linux Servers. We are facing some issue on few of the servers.

Service checks are failing with error "UNKNOWN: Error occurred while running the plugin. Use the verbose flag for more details."

NCPA status on server throws below error:

Code: Select all

[root@<Server> ~]# /etc/init.d/ncpa_listener status
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/cx_Freeze/initscripts/Console.py", line 27, in <module>
  File "ncpa_listener.py", line 5, in <module>
  File "/root/ncpa/agent/ncpadaemon.py", line 14, in <module>
  File "/root/ncpa/agent/listener/database.py", line 5, in <module>
  File "/root/ncpa/agent/listener/server.py", line 11, in <module>
  File "/root/ncpa/agent/listener/psapi.py", line 213, in <module>
  File "/root/ncpa/agent/listener/psapi.py", line 184, in get_root_node
  File "/root/ncpa/agent/listener/psapi.py", line 153, in get_disk_node
  File "/root/ncpa/agent/listener/psapi.py", line 59, in make_mountpoint_nodes
OSError: [Errno 2] No such file or directory: '/apps/static/webdata'
The file or directory '/apps/static/webdata' which is being referred in the error is not present on the server.

Server OS Version: Red Hat Enterprise Linux Server release 7.3 (Maipo)
NCPA Installed Packages: ncpa.x86_64 2.0.2-1.el7.centos @test-trinet-rhel-x86_64-custom-7
Nagios Version: Nagios XI 5.4.3

Please help with the issue.

Thank You,
Sampath.

Re: NCPA throwing error when checking for Status

Posted: Wed Apr 05, 2017 12:36 pm
by Sampath.Basireddy
Update --

Creating a directory "mkdir -p /apps/static/webdata" fixed the issue. But why would agent look for a directory/mount which is not present on the servers.

Any thoughts?

Re: NCPA throwing error when checking for Status

Posted: Wed Apr 05, 2017 1:48 pm
by mcapra
That implies that psutil tried to find the /apps/static/webdata mount point but was unable to. Typically this would mean one of your checks is looking for that mount point. I don't see a path like that in the NCPA source itself.

Can you send over a system profile? From the Nagios XI GUI, you can gather a profile via Admin -> System Profile -> Download Profile.

Can you also send over your NCPA configuration file on the remote machine?