NCPA and Windows Server 2012 R2

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
jkadin
Posts: 6
Joined: Fri Aug 22, 2014 5:58 pm

NCPA and Windows Server 2012 R2

Post by jkadin »

I'm trying to install NCPA on Windows Server 2012 R2. It doesn't seem to be working. The only other post I could find on the forum with the same issue ended with the user switching to another agent. Anyone know how to fix this, or if Windows Server 2012 R2 is even supported in NCPA? This is a new install, have not touched or changed the cfg file.

[00968] 2014/08/22 16:22:11.514 starting logging at level ERROR
[00968] 2014/08/22 16:22:11.733 Python exception encountered:
[00968] 2014/08/22 16:22:11.733 Internal Message: cannot import service module
[00968] 2014/08/22 16:22:11.733 Type => <type 'exceptions.RuntimeError'>
[00968] 2014/08/22 16:22:11.733 Value => couldn't find any physical disk
[00968] 2014/08/22 16:22:11.733 Traceback (most recent call last):

[00968] 2014/08/22 16:22:11.733 File "C:\ncpa\agent\ncpa_windows.py", line 20, in <module>
[00968] 2014/08/22 16:22:11.733 File "C:\Program Files (x86)\Nagios\NCPA\passive\nrds.py", line 4, in <module>
from passive.nagioshandler import NagiosHandler
[00968] 2014/08/22 16:22:11.733 File "C:\Program Files (x86)\Nagios\NCPA\passive\nagioshandler.py", line 3, in <module>
import ncpacheck
[00968] 2014/08/22 16:22:11.733 File "C:\Program Files (x86)\Nagios\NCPA\passive\ncpacheck.py", line 5, in <module>
import listener.server
[00968] 2014/08/22 16:22:11.733 File "C:\ncpa\agent\listener\server.py", line 8, in <module>
[00968] 2014/08/22 16:22:11.733 File "C:\ncpa\agent\listener\psapi.py", line 156, in <module>
[00968] 2014/08/22 16:22:11.733 File "C:\ncpa\agent\listener\psapi.py", line 129, in get_root_node
[00968] 2014/08/22 16:22:11.733 File "C:\ncpa\agent\listener\psapi.py", line 96, in get_disk_node
[00968] 2014/08/22 16:22:11.733 File "C:\Python27\lib\site-packages\psutil\__init__.py", line 1726, in disk_io_counters
[00968] 2014/08/22 16:22:11.733 RuntimeError: couldn't find any physical disk
[00968] 2014/08/22 16:22:11.733 ending logging
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: NCPA and Windows Server 2012 R2

Post by lmiltchev »

What is the NCPA version that you are currently using? I believe you need to run: "diskperf -y" command to on the Windows box to fix this problem. In any case, the issue has been fixed in NCAP ver. 1.7.1. See the change log:

https://github.com/NagiosEnterprises/nc ... CHANGES.md

You can download it from here:

http://assets.nagios.com/downloads/ncpa/download.php
Be sure to check out our Knowledgebase for helpful articles and solutions!
jkadin
Posts: 6
Joined: Fri Aug 22, 2014 5:58 pm

Re: NCPA and Windows Server 2012 R2

Post by jkadin »

Using 1.7.1. Just in case, tried to run 'diskperf -y' anyway, and got a notice that "Disk performance counters are permanently enabled on systems beyond Windows 2000."

Any other ideas?
jkadin
Posts: 6
Joined: Fri Aug 22, 2014 5:58 pm

Re: NCPA and Windows Server 2012 R2

Post by jkadin »

I've also tried 1.7 and 1.5 just to make sure they didn't help, and had similar issues.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: NCPA and Windows Server 2012 R2

Post by lmiltchev »

Just to give you heads up - I was told by our developers that they will be releasing NCPA ver. 1.7.2 very soon - most probably tomorrow. These issues *should* be fixed in 1.7.2.
Be sure to check out our Knowledgebase for helpful articles and solutions!
jkadin
Posts: 6
Joined: Fri Aug 22, 2014 5:58 pm

Re: NCPA and Windows Server 2012 R2

Post by jkadin »

Sounds good, thanks. I'll wait till 1.7.2 comes out to do more testing.
2020media
Posts: 1
Joined: Wed Aug 27, 2014 9:48 am

Re: NCPA and Windows Server 2012 R2

Post by 2020media »

I also was getting this error and figured there was a clue in the output
[00968] 2014/08/22 16:22:11.733 File "C:\Python27\lib\site-packages\psutil\__init__.py", line 1726, in disk_io_counters
[00968] 2014/08/22 16:22:11.733 RuntimeError: couldn't find any physical disk

So I went and downloaded Python 2.7 (from https://www.python.org/download/releases/2.7.8/) and installed it into the folder suggested.

Is Python a prerequisite?

Then I reinstalled, and it went through ok.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: NCPA and Windows Server 2012 R2

Post by slansing »

Yes, NCPA is driven by python, though the installer should take care or the pre-reqs for you which I believe is the issue here.
jkadin
Posts: 6
Joined: Fri Aug 22, 2014 5:58 pm

Re: NCPA and Windows Server 2012 R2

Post by jkadin »

Just installed 1.7.2 and everything seems to be working. Thanks!
jkadin
Posts: 6
Joined: Fri Aug 22, 2014 5:58 pm

Re: NCPA and Windows Server 2012 R2

Post by jkadin »

jkadin wrote:Just installed 1.7.2 and everything seems to be working. Thanks!
Correction:
1.7.2 only works if I first run 'diskperf -y', and then run the installer. Otherwise the service doesn't install correctly and I still get the disk error. It's working enough for me to use though. Thanks!
Locked