NCPA PLUGIN ERROR

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
N4G10S
Posts: 5
Joined: Thu Aug 28, 2014 2:10 am

NCPA PLUGIN ERROR

Post by N4G10S »

Hi,
i've installed NCPA agent on win server 2012 r2 but on logs i've got those errors:

[02716] 2014/09/17 12:54:53.381 starting logging at level ERROR
[02716] 2014/09/17 12:54:53.552 Python exception encountered:
[02716] 2014/09/17 12:54:53.552 Internal Message: cannot import service module
[02716] 2014/09/17 12:54:53.552 Type => <type 'exceptions.RuntimeError'>
[02716] 2014/09/17 12:54:53.552 Value => couldn't find any physical disk
[02716] 2014/09/17 12:54:53.552 Traceback (most recent call last):
[02716] 2014/09/17 12:54:53.552 File "C:\ncpa\agent\ncpa_windows.py", line 20, in <module>
[02716] 2014/09/17 12:54:53.552 File "C:\NCPA\passive\nrds.py", line 4, in <module>
from passive.nagioshandler import NagiosHandler
[02716] 2014/09/17 12:54:53.552 File "C:\NCPA\passive\nagioshandler.py", line 3, in <module>
import ncpacheck
[02716] 2014/09/17 12:54:53.552 File "C:\NCPA\passive\ncpacheck.py", line 5, in <module>
import listener.server
[02716] 2014/09/17 12:54:53.552 File "C:\ncpa\agent\listener\server.py", line 8, in <module>
[02716] 2014/09/17 12:54:53.552 File "C:\ncpa\agent\listener\psapi.py", line 156, in <module>
[02716] 2014/09/17 12:54:53.552 File "C:\ncpa\agent\listener\psapi.py", line 129, in get_root_node
[02716] 2014/09/17 12:54:53.552 File "C:\ncpa\agent\listener\psapi.py", line 96, in get_disk_node
[02716] 2014/09/17 12:54:53.552 File "C:\Python27\lib\site-packages\psutil\__init__.py", line 1726, in disk_io_counters
[02716] 2014/09/17 12:54:53.552 RuntimeError: couldn't find any physical disk
[02716] 2014/09/17 12:54:53.552 ending logging

i've run diskperf -y and installed python 2.7 before the agent. Windows firewall is off however i've also created the rule for port 5693. I've modified the ncpa.cfg file adding the server IP address. i've installed the agent as an administrator (active listener only) and modified WMI config but nothing. I can't load the NCPA web page.
Can't find ncpa_windows.py everywhere or other files in the log. Port 5693 is not listening on the server.
NCPA 1.7.2. - windows server 2012 r2.

Need to do something else?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: NCPA PLUGIN ERROR

Post by slansing »

This may be a perf counter related issue, can you run the following manually on the server and let us know if this is still an issue?:

Code: Select all

diskperf -y
N4G10S
Posts: 5
Joined: Thu Aug 28, 2014 2:10 am

Re: NCPA PLUGIN ERROR

Post by N4G10S »

Hi,
i've already done diskperf -y in the previous installation before agent installation, but i don't think that was my issue.
Now i solved the mistake. I think it was a permission issue because i tried to made a local administrator account on the server and made a new installation of the agent (after uninstall and reboot the machine).
Now finally i have no errors on logs and i can see agent's web stats correctly. Now I need to check if my nagios core server can see this machine correctly and configure it to check processes etc etc...

I saw on the website that nagios plugin (check_ncpa) is not available anymore. I checked on the net but i haven't found any other place to download it.
Is there a way to download it? I need to monitor different kind of servers and it's hard to manually configure them one by one.

ty
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: NCPA PLUGIN ERROR

Post by tmcdonald »

Former Nagios employee
N4G10S
Posts: 5
Joined: Thu Aug 28, 2014 2:10 am

Re: NCPA PLUGIN ERROR

Post by N4G10S »

yes, i can't download it. Can't see the page or download it by right click ... Is it no more available? Or is it only my fault?

THANKS
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: NCPA PLUGIN ERROR

Post by tmcdonald »

Former Nagios employee
N4G10S
Posts: 5
Joined: Thu Aug 28, 2014 2:10 am

Re: NCPA PLUGIN ERROR

Post by N4G10S »

yes, now i can download it.

THANKS!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: NCPA PLUGIN ERROR

Post by tmcdonald »

Cool. Are we safe to close this thread?
Former Nagios employee
N4G10S
Posts: 5
Joined: Thu Aug 28, 2014 2:10 am

Re: NCPA PLUGIN ERROR

Post by N4G10S »

yes you can close it :)
Locked