NCPA Listener - Windows Service Failure
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: NCPA Listener - Windows Service Failure
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
I'm getting this on a Win2008R2 box. 'diskperf -Y' has been run, box rebooted. Still no service creation and the logs show:
I'll install Python client and see what happens.
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):Andrew J. - Do you even grok?
Re: NCPA Listener - Windows Service Failure
Nope, still no dice after Python 2.7.8 install.
Why is it looking for c:\ncpa -- that path does not exist.
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 loggingAndrew J. - Do you even grok?
Re: NCPA Listener - Windows Service Failure
Forgot that you need to run diskperf from a CLI launched as admin...
Andrew J. - Do you even grok?
Re: NCPA Listener - Windows Service Failure
Any updates? Is your issue resolved now?Forgot that you need to run diskperf from a CLI launched as admin...
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: NCPA Listener - Windows Service Failure
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
Looking forward to the fix in 1.8
-Andrew
Andrew J. - Do you even grok?
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: NCPA Listener - Windows Service Failure
Thanks vAJ! glad diskperf is working!
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.