Page 1 of 1

NCPA and Windows Server 2012 R2

Posted: Fri Aug 22, 2014 6:25 pm
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

Re: NCPA and Windows Server 2012 R2

Posted: Mon Aug 25, 2014 10:47 am
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

Re: NCPA and Windows Server 2012 R2

Posted: Tue Aug 26, 2014 11:37 am
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?

Re: NCPA and Windows Server 2012 R2

Posted: Tue Aug 26, 2014 11:48 am
by jkadin
I've also tried 1.7 and 1.5 just to make sure they didn't help, and had similar issues.

Re: NCPA and Windows Server 2012 R2

Posted: Tue Aug 26, 2014 5:02 pm
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.

Re: NCPA and Windows Server 2012 R2

Posted: Tue Aug 26, 2014 5:24 pm
by jkadin
Sounds good, thanks. I'll wait till 1.7.2 comes out to do more testing.

Re: NCPA and Windows Server 2012 R2

Posted: Wed Aug 27, 2014 10:16 am
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.

Re: NCPA and Windows Server 2012 R2

Posted: Wed Aug 27, 2014 11:55 am
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.

Re: NCPA and Windows Server 2012 R2

Posted: Wed Aug 27, 2014 12:28 pm
by jkadin
Just installed 1.7.2 and everything seems to be working. Thanks!

Re: NCPA and Windows Server 2012 R2

Posted: Wed Aug 27, 2014 10:06 pm
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!