Page 1 of 1

NCAP 2.0.0 installation issues on Windows

Posted: Thu Dec 29, 2016 4:18 pm
by corkyman
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.

Re: NCAP 2.0.0 installation issues on Windows

Posted: Fri Dec 30, 2016 9:18 am
by rkennedy
For reference, could you post your exact, and entire NCPA configuration file for us to review?

Re: NCAP 2.0.0 installation issues on Windows

Posted: Tue Jan 03, 2017 1:01 pm
by jomann
You're right, that is not an actual default - if you do not specify anything ... it will error out. I can add this to the list of bugs to be fixed for the next release.

(https://github.com/NagiosEnterprises/ncpa/issues/291)