NCPA Listener - Windows Service Failure

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: NCPA Listener - Windows Service Failure

Post by slansing »

Interesting, thank you for letting us know. We'll keep this thread open in case you run into anything.
vAJ
Posts: 456
Joined: Thu Nov 08, 2012 5:09 pm
Location: Austin, TX

Re: NCPA Listener - Windows Service Failure

Post 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.
Andrew J. - Do you even grok?
vAJ
Posts: 456
Joined: Thu Nov 08, 2012 5:09 pm
Location: Austin, TX

Re: NCPA Listener - Windows Service Failure

Post 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
Andrew J. - Do you even grok?
vAJ
Posts: 456
Joined: Thu Nov 08, 2012 5:09 pm
Location: Austin, TX

Re: NCPA Listener - Windows Service Failure

Post by vAJ »

Forgot that you need to run diskperf from a CLI launched as admin...
Andrew J. - Do you even grok?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NCPA Listener - Windows Service Failure

Post by lmiltchev »

Forgot that you need to run diskperf from a CLI launched as admin...
Any updates? Is your issue resolved now?
Be sure to check out our Knowledgebase for helpful articles and solutions!
vAJ
Posts: 456
Joined: Thu Nov 08, 2012 5:09 pm
Location: Austin, TX

Re: NCPA Listener - Windows Service Failure

Post 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
Andrew J. - Do you even grok?
vAJ
Posts: 456
Joined: Thu Nov 08, 2012 5:09 pm
Location: Austin, TX

Re: NCPA Listener - Windows Service Failure

Post by vAJ »

But I'm not the OP.
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

Post by sreinhardt »

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