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
NCPA and Windows Server 2012 R2
Re: NCPA and Windows Server 2012 R2
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
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!
Re: NCPA and Windows Server 2012 R2
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?
Any other ideas?
Re: NCPA and Windows Server 2012 R2
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
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!
Re: NCPA and Windows Server 2012 R2
Sounds good, thanks. I'll wait till 1.7.2 comes out to do more testing.
Re: NCPA and Windows Server 2012 R2
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.
[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.
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: NCPA and Windows Server 2012 R2
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
Just installed 1.7.2 and everything seems to be working. Thanks!
Re: NCPA and Windows Server 2012 R2
Correction:jkadin wrote:Just installed 1.7.2 and everything seems to be working. Thanks!
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!