NCAP 2.0.0 installation issues on Windows
Posted: Thu Dec 29, 2016 4:18 pm
If ncpa.cfg is not modified then the services start but the listener does not listen on port 5693. The log contains the error
2016-12-29 20:28:42,148:INFO:ncpa_windows:Parsed config from: ['C:\\Program Files (x86)\\Nagios\\NCPA\\etc\\ncpa.cfg', 'C:\\Program Files (x86)\\Nagios\\NCPA\\etc\\ncpa.cfg.d\\nrdp.cfg']
2016-12-29 20:28:42,148:INFO:ncpa_windows:Looking for plugins at: C:\Program Files (x86)\Nagios\NCPA\plugins
2016-12-29 20:28:42,148:ERROR:ncpa_windows:invalid literal for int() with base 10: ''
Traceback (most recent call last):
File "C:\ncpa\agent\ncpa_windows.py", line 139, in start
File "C:\Python27\lib\ConfigParser.py", line 359, in getint
File "C:\Python27\lib\ConfigParser.py", line 356, in _get
ValueError: invalid literal for int() with base 10: ''
The comment in the ncpa.cfg says
# Default: port = 5963
I assume this is a typo. I checked port 5963 and the listener is NOT listening on that port either. When I manually specify port = 5693 then everything works fine.
2016-12-29 20:28:42,148:INFO:ncpa_windows:Parsed config from: ['C:\\Program Files (x86)\\Nagios\\NCPA\\etc\\ncpa.cfg', 'C:\\Program Files (x86)\\Nagios\\NCPA\\etc\\ncpa.cfg.d\\nrdp.cfg']
2016-12-29 20:28:42,148:INFO:ncpa_windows:Looking for plugins at: C:\Program Files (x86)\Nagios\NCPA\plugins
2016-12-29 20:28:42,148:ERROR:ncpa_windows:invalid literal for int() with base 10: ''
Traceback (most recent call last):
File "C:\ncpa\agent\ncpa_windows.py", line 139, in start
File "C:\Python27\lib\ConfigParser.py", line 359, in getint
File "C:\Python27\lib\ConfigParser.py", line 356, in _get
ValueError: invalid literal for int() with base 10: ''
The comment in the ncpa.cfg says
# Default: port = 5963
I assume this is a typo. I checked port 5963 and the listener is NOT listening on that port either. When I manually specify port = 5693 then everything works fine.