NCPA 2.1.8 Server 2008 R2 service not installing

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
wafox
Posts: 5
Joined: Fri Feb 08, 2019 1:52 pm

NCPA 2.1.8 Server 2008 R2 service not installing

Post by wafox »

Having some issues installing the NCPA agent on a server 2008 R2 machine as administraor (and right-clicking and using the "run as administrator"). Hoping I can find some help. The installer finishes with no errors but service is not installed and this error is recorded when trying to run manually:

starting logging at level ERROR
Python exception encountered:
Internal Message: cannot import service module
Type => <type 'exceptions.NameError'>
Value => name 'DEFAULT_REUSE_ADDR' is not defined
Traceback (most recent call last):
File "C:\ncpa\agent\ncpa_windows.py", line 13, in <module>
File "C:\Python27\lib\site-packages\gevent\pywsgi.py", line 30, in <module>
File "C:\Python27\lib\site-packages\gevent\server.py", line 11, in <module>
File "C:\Python27\lib\site-packages\gevent\server.py", line 79, in StreamServer
NameError: name 'DEFAULT_REUSE_ADDR' is not defined
ending logging

Working fine on 2016 servers. Have not tested 2012 Servers.


Linux Distribution and version?
Using the most current VMware OVA downloaded VM

VMware Image or Manual Install of XI?
Vmware Image

Are there special configurations on your system, ie; is Gnome installed? Are you using a proxy? Are you using SSL?
No special configs, but yes using SSL.

Any suggestions/help appreciated. Thanks!
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: NCPA 2.1.8 Server 2008 R2 service not installing

Post by tgriep »

Can you post yopur C:\Program Files (x86)\Nagios\NCPA\etc\ncpa.cfg file here so we can view the settings?
Does the Windows server have multiple Ethernet cards or IP addresses assigned to it?
Be sure to check out our Knowledgebase for helpful articles and solutions!
wafox
Posts: 5
Joined: Fri Feb 08, 2019 1:52 pm

Re: NCPA 2.1.8 Server 2008 R2 service not installing

Post by wafox »

The server only has one NIC with one IP Address.

[general]
check_logging = 1
check_logging_time = 30
exclude_fs_types = aufs,autofs,binfmt_misc,cifs,cgroup,configfs,debugfs,devpts,devtmpfs,encryptfs,efivarfs,fuse,fusectl,hugetlbfs,mqueue,nfs,overlayfs,proc,pstore,rpc_pipefs,securityfs,selinuxfs,smb,sysfs,tmpfs,tracefs
default_units = Gi

[listener]
uid = nagios
gid = nagios
ip =0.0.0.0
port =5693
ssl_version =TLSv1_2
certificate = adhoc
loglevel =warning
logfile = var/log/ncpa_listener.log
pidfile = var/run/ncpa_listener.pid
admin_gui_access = 1
admin_password = None
admin_auth_only = 0

[api]
community_string =REMOVED

[passive]
handlers =nrdp
uid = nagios
gid = nagios
sleep =300
loglevel =warning
logfile = var/log/ncpa_passive.log
pidfile = var/run/ncpa_passive.pid

[nrdp]
parent =REMOVED
token =REMOVED
hostname =hil-vs-ad01.REMOVED.REMOVED

[nrds]
url =
token =
config_name =
config_version =
update_config = 1
update_plugins = 1

[kafkaproducer]
hostname = None
servers = localhost:9092
clientname = NCPA-Kafka
topic = ncpa

[plugin directives]
plugin_path = plugins/
.sh = /bin/sh $plugin_name $plugin_args
.py = python $plugin_name $plugin_args
.ps1 = powershell -ExecutionPolicy Bypass -File $plugin_name $plugin_args
.vbs = cscript $plugin_name $plugin_args //NoLogo
.wsf = cscript $plugin_name $plugin_args //NoLogo
.bat = cmd /c $plugin_name $plugin_args
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NCPA 2.1.8 Server 2008 R2 service not installing

Post by lmiltchev »

I believe the built was broken for a short period of time. Most probably you have a corrupt exe. Remove NCPA, try re-downloading and re-installing the agent, and it should work. Let us know if this helped. Thank you!
Be sure to check out our Knowledgebase for helpful articles and solutions!
wafox
Posts: 5
Joined: Fri Feb 08, 2019 1:52 pm

Re: NCPA 2.1.8 Server 2008 R2 service not installing

Post by wafox »

This did fix the issue. Thank you!
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: NCPA 2.1.8 Server 2008 R2 service not installing

Post by mbellerue »

Glad to hear everything is working!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked