NCPA 1.7.2 Agent, check_ncpa.py, and Wizard problems
Posted: Fri Apr 03, 2015 10:50 am
I'm attempting to test the functionality of the NCPA agent. I am using the 1.7.2 agent on a Windows 2012 server. On my Nagios XI 2014R1.5 server, I have the NSCA Agent configuration installed.
I have read the documentation regarding "active" monitoring of Windows servers via the NCPA agent. The documentation shows the first step in the wizard which should have four options
Address: The IP address or FQDNS name of the NCPA Agent.
Port: Defaults to port 5693.
Token: Authentication token used to connect to the NCPA Agent.
Authorization Mode: HTTP or HTTPS
I do not see "Authorization Mode" in my GUI.
The problem here is that upon installation of the NCPA agent on the Windows server, it generated a self-signed certificate which I assume the Nagios XI server has no idea how to accept. Because the option to switch to insecure (HTTP) authorization is not present, the wizard fails every time.
If I open the NCPA agent web page on the Windows server, I have to accept the insecure SSL certficate as an exception. Once that is done, I can see all of the pages (including the very cool realtime monitors), so I know the agent can respond.
I have executed curl commands from the Nagios server using the "-k" option and the agent responds as expected.
I have attempted to use the check_ncpa.py plugin (latest version from GitHub), but I always get the following:
I also note that there are no default plugins installed with the NCPA 1.7.2 agent and there's really no reference to where they can be found. Should we use plugins from the NSClient++? Where are the equivalent of the NRPE plugins?
Thanks.
I have read the documentation regarding "active" monitoring of Windows servers via the NCPA agent. The documentation shows the first step in the wizard which should have four options
Address: The IP address or FQDNS name of the NCPA Agent.
Port: Defaults to port 5693.
Token: Authentication token used to connect to the NCPA Agent.
Authorization Mode: HTTP or HTTPS
I do not see "Authorization Mode" in my GUI.
The problem here is that upon installation of the NCPA agent on the Windows server, it generated a self-signed certificate which I assume the Nagios XI server has no idea how to accept. Because the option to switch to insecure (HTTP) authorization is not present, the wizard fails every time.
If I open the NCPA agent web page on the Windows server, I have to accept the insecure SSL certficate as an exception. Once that is done, I can see all of the pages (including the very cool realtime monitors), so I know the agent can respond.
I have executed curl commands from the Nagios server using the "-k" option and the agent responds as expected.
I have attempted to use the check_ncpa.py plugin (latest version from GitHub), but I always get the following:
Code: Select all
nagios01:/usr/local/nagios/libexec# ./check_ncpa.py -s -H labws2012.domain.com -P 5693 -t token -M 'disk/logical/C:\|/used_percent' -w 85 -c 95
The stack trace:Traceback (most recent call last):
File "./check_ncpa.py", line 263, in main
info_json = get_json(options)
File "./check_ncpa.py", line 207, in get_json
url = get_url_from_options(options)
File "./check_ncpa.py", line 133, in get_url_from_options
arguments = get_arguments_from_options(options)
File "./check_ncpa.py", line 193, in get_arguments_from_options
if options.query_args:
AttributeError: Values instance has no attribute 'query_args'Thanks.