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!
NCPA 2.1.8 Server 2008 R2 service not installing
Re: NCPA 2.1.8 Server 2008 R2 service not installing
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?
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!
Re: NCPA 2.1.8 Server 2008 R2 service not installing
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
[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
Re: NCPA 2.1.8 Server 2008 R2 service not installing
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!
Re: NCPA 2.1.8 Server 2008 R2 service not installing
This did fix the issue. Thank you!
Re: NCPA 2.1.8 Server 2008 R2 service not installing
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!