G 'Day Support,
While testing different configurations of the latest NCPA agent I have discovered an issue. Wasn't sure how to pass this along to the developers so I am hoping you can test/duplicate and then pass on.
If you configure the Web Gui to restrict the Admin tab by prompting for the admin password the initial screen after entering the correct password throws a 500 error but if you go back and then select the Admin tab again security is authorized and you get the Admin Home.
Sincerely,
Danny
i.e. ncpa.cfg
[general]
check_logging = 1
check_logging_time = 30
[listener]
uid = nagios
gid = nagios
ip = 0.0.0.0
port = 8080
ssl_version = TLSv1_2
certificate = adhoc
loglevel = error
logfile = var/log/ncpa_listener.log
pidfile = var/run/ncpa_listener.pid
admin_gui_access = 1
admin_password = myAdminPasswd
admin_auth_only = 0
[api]
community_string = mytoken
[passive]
handlers = None
uid = nagios
gid = nagios
sleep = 300
loglevel = error
logfile = var/log/ncpa_passive.log
pidfile = var/run/ncpa_passive.pid
[nrdp]
parent = https://my-nagios-server.domain.place.edu/nrdp
token = mytoken
hostname = my-nagios-server
[nrds]
url =
token =
config_name =
config_version =
update_config = 1
update_plugins = 1
[plugin directives]
plugin_path = plugins/
.sh = /bin/sh $plugin_name $plugin_args
.ps1 = powershell -ExecutionPolicy Bypass -File $plugin_name $plugin_args
.vbs = cscript $plugin_name $plugin_args //NoLogo
.py = python $plugin_name $plugin_args
The ncpa_listener.log also displays the following error:
2017-03-20 11:03:27,969 21581 ERROR Exception on /gui/admin/config [GET]
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
File "/root/ncpa/agent/listener/server.py", line 201, in admin_auth_decoration
File "/root/ncpa/agent/listener/server.py", line 496, in admin_config
File "/usr/local/lib/python2.7/site-packages/flask/templating.py", line 127, in render_template
File "/usr/local/lib/python2.7/site-packages/jinja2/environment.py", line 851, in get_or_select_template
File "/usr/local/lib/python2.7/site-packages/jinja2/environment.py", line 812, in get_template
File "/usr/local/lib/python2.7/site-packages/jinja2/environment.py", line 774, in _load_template
File "/usr/local/lib/python2.7/site-packages/flask/templating.py", line 64, in get_source
TemplateNotFound: admin/config.html
NCPA Config Error
NCPA Config Error
Last edited by onegative on Mon Mar 20, 2017 4:01 pm, edited 1 time in total.
Re: NCPA Config Error
Thank you for reporting this issue! I believe it's been fixed already:
https://github.com/NagiosEnterprises/nc ... 87fbc257aa
https://github.com/NagiosEnterprises/nc ... 87fbc257aa
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: NCPA Config Error
Thanks for the reply...that helps...close thread.
Danny
Danny