Page 2 of 2

Re: NCPA Listener - Windows Service Failure

Posted: Wed Nov 19, 2014 10:18 am
by slansing
Interesting, thank you for letting us know. We'll keep this thread open in case you run into anything.

Re: NCPA Listener - Windows Service Failure

Posted: Mon Jan 12, 2015 3:11 pm
by vAJ
I'm getting this on a Win2008R2 box. 'diskperf -Y' has been run, box rebooted. Still no service creation and the logs show:

Code: Select all

[12964] 2015/01/12 14:07:33.703 starting logging at level ERROR
[12964] 2015/01/12 14:07:34.046 Python exception encountered:
[12964] 2015/01/12 14:07:34.046     Internal Message: cannot import service module
[12964] 2015/01/12 14:07:34.046     Type => <type 'exceptions.RuntimeError'>
[12964] 2015/01/12 14:07:34.046     Value => couldn't find any physical disk
[12964] 2015/01/12 14:07:34.046     Traceback (most recent call last):
I'll install Python client and see what happens.

Re: NCPA Listener - Windows Service Failure

Posted: Mon Jan 12, 2015 3:29 pm
by vAJ
Nope, still no dice after Python 2.7.8 install.

Why is it looking for c:\ncpa -- that path does not exist.

Code: Select all

[03344] 2015/01/12 14:27:35.805 starting logging at level ERROR
[03344] 2015/01/12 14:27:36.148 Python exception encountered:
[03344] 2015/01/12 14:27:36.148     Internal Message: cannot import service module
[03344] 2015/01/12 14:27:36.148     Type => <type 'exceptions.RuntimeError'>
[03344] 2015/01/12 14:27:36.148     Value => couldn't find any physical disk
[03344] 2015/01/12 14:27:36.148     Traceback (most recent call last):

[03344] 2015/01/12 14:27:36.148       File "C:\ncpa\agent\ncpa_windows.py", line 20, in <module>

[03344] 2015/01/12 14:27:36.148       File "C:\Program Files (x86)\Nagios\NCPA\passive\nrds.py", line 4, in <module>
    from passive.nagioshandler import NagiosHandler

[03344] 2015/01/12 14:27:36.148       File "C:\Program Files (x86)\Nagios\NCPA\passive\nagioshandler.py", line 3, in <module>
    import ncpacheck

[03344] 2015/01/12 14:27:36.148       File "C:\Program Files (x86)\Nagios\NCPA\passive\ncpacheck.py", line 5, in <module>
    import listener.server

[03344] 2015/01/12 14:27:36.148       File "C:\ncpa\agent\listener\server.py", line 8, in <module>

[03344] 2015/01/12 14:27:36.148       File "C:\ncpa\agent\listener\psapi.py", line 156, in <module>

[03344] 2015/01/12 14:27:36.148       File "C:\ncpa\agent\listener\psapi.py", line 129, in get_root_node

[03344] 2015/01/12 14:27:36.148       File "C:\ncpa\agent\listener\psapi.py", line 96, in get_disk_node

[03344] 2015/01/12 14:27:36.148       File "C:\Python27\lib\site-packages\psutil\__init__.py", line 1726, in disk_io_counters

[03344] 2015/01/12 14:27:36.148     RuntimeError: couldn't find any physical disk

[03344] 2015/01/12 14:27:36.148 ending logging

Re: NCPA Listener - Windows Service Failure

Posted: Mon Jan 12, 2015 3:39 pm
by vAJ
Forgot that you need to run diskperf from a CLI launched as admin...

Re: NCPA Listener - Windows Service Failure

Posted: Mon Jan 12, 2015 5:34 pm
by lmiltchev
Forgot that you need to run diskperf from a CLI launched as admin...
Any updates? Is your issue resolved now?

Re: NCPA Listener - Windows Service Failure

Posted: Mon Jan 12, 2015 9:50 pm
by vAJ
Yes. For anyone still having problems with this error after trying "diskperf -y", make sure they run CMD as administrator and it should take effect.

Looking forward to the fix in 1.8

-Andrew

Re: NCPA Listener - Windows Service Failure

Posted: Tue Jan 13, 2015 9:53 am
by vAJ
But I'm not the OP.

Re: NCPA Listener - Windows Service Failure

Posted: Tue Jan 13, 2015 11:53 am
by sreinhardt
Thanks vAJ! glad diskperf is working!