excuse me my poor English...
I tried to find out here something about how to do Windows hosts send passive checks to a nrdp server, but all posts consulted didn't help me. I have some Windows hosts and I need to check if these hosts are alive or not; as theses hosts can't be accessed directly by nrdp server, it's necessary to use passive checks. With the send_nrdp script to Linux is easy (with Linux hosts), but with Windows hosts is more hard. I tried to use NCPA (ncpa-1.8.1.exe) following the tutorial that I found searching in the forum. I think that I configured all parameters correctly but I could not make it work. I created a host in the localhost Nagios config file and I Installed the NCPA in Windows but it isn't working. The NCSA passive log file is:
In the log the NRDP server responded OK but seems that the server doesn't "understand" the passive check sent by NCSA. What I need is just show to nrdp server that a host is alive or not, I don't need any informations like disk capacities, swap and memory usage, exactly what happens with send_nrdp script by Linux.ParseError: junk after document element: line 1, column 40
2016-06-20 13:29:14,686:INFO:__init__:Establishing passive handler: Handler
2016-06-20 13:29:14,686:INFO:__init__:Running check: /cpu/percent --warning 20 --critical 30
2016-06-20 13:29:15,690:INFO:__init__:Running check: /memory/swap/percent --warning 40 --critical 80
2016-06-20 13:29:15,690:INFO:__init__:Running check: /memory/virtual/percent --warning 60 --critical 80
2016-06-20 13:29:15,690:INFO:connectionpool:Starting new HTTP connection (1): NRDP_IP_SERVER
2016-06-20 13:29:16,257:INFO:__init__:Message from NRDP server: OK
2016-06-20 13:29:16,257:INFO:__init__:Meta output from NRDP server: 3 checks processed.
2016-06-20 13:34:16,286:INFO:__init__:Establishing passive handler: Handler
2016-06-20 13:34:16,288:INFO:connectionpool:Starting new HTTP connection (1): NRDP_IP_SERVER
2016-06-20 13:34:16,855:ERROR:__init__:junk after document element: line 1, column 40
Traceback (most recent call last):
File "C:\ncpa\agent\ncpa_windows.py", line 192, in run_all_handlers
File "C:\Program Files (x86)\Nagios\NCPA\passive\nrds.py", line 37, in run
if self.config_update_is_required(nrds_url, nrds_token, nrds_config, nrds_config_version):
File "C:\Program Files (x86)\Nagios\NCPA\passive\nrds.py", line 137, in config_update_is_required
response_xml = ET.fromstring(url_request)
File "C:\Python27\lib\xml\etree\ElementTree.py", line 1300, in XML
File "C:\Python27\lib\xml\etree\ElementTree.py", line 1642, in feed
File "C:\Python27\lib\xml\etree\ElementTree.py", line 1506, in _raiseerror
ParseError: junk after document element: line 1, column 40
2016-06-20 13:34:16,855:INFO:__init__:Establishing passive handler: Handler
2016-06-20 13:34:16,855:INFO:__init__:Running check: /cpu/percent --warning 20 --critical 30
2016-06-20 13:34:17,871:INFO:__init__:Running check: /memory/swap/percent --warning 40 --critical 80
2016-06-20 13:34:17,871:INFO:__init__:Running check: /memory/virtual/percent --warning 60 --critical 80
2016-06-20 13:34:17,871:INFO:connectionpool:Starting new HTTP connection (1): NRDP_IP_SERVER
2016-06-20 13:34:18,401:INFO:__init__:Message from NRDP server: OK
2016-06-20 13:34:18,401:INFO:__init__:Meta output from NRDP server: 3 checks processed.
Any help?