Hi guys
A really odd one for you.
We have a Nagios box feeding Xi.
The box is sending alerts for Hosts and Services via NRDP.
We can take a packet capture and see both Hosts and Service alerts going to the XI box (setting the transfer as HTTP so we can see them)
On the XI side, the remote hosts and services are configured - nothing in Unconfigured objects - everything looks great....
The checkresults folder is being parsed and taken .. but we don't see any service alerts there.
The Nagios.log file doesn't show the services either .. .but they are getting to the XI box.
If we do a manual submission of a Service check using the nrdp webservice page, the manual services are seen!
anyone seen this behaviour? I've read all the articles about permissions and other potential fixes but nothing seels to apply - We just end up with all the passive alerts as :
No check results for service yet...
If anyone has any perls of wisdom, we'd really like to know.
thanks!!
NRDP receives Host checks but not Services
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: NRDP receives Host checks but not Services
Is it possible for you to share the command that is sending the checks that are not seen?
And response from the command?
And response from the command?
Re: NRDP receives Host checks but not Services
Hi Scott
Thanks for the reply...
We found a funny with Nagios
We're checking Firewall sync. The returned value from oid is "Active" - with the inverted commas.
NRDP is sending this as
<output>SNMP OK - FW Sync "Active"|</output></checkresult>
However, the XI box returns "BAD XML"
If we suppress any Services that return a pair of inverted commas then everything works.
Thanks for your help. I actually read all the way down the packet capture
HTTP/1.1 200 OK
Date: Tue, 22 Aug 2017 13:15:06 GMT
Server: Apache/2.2.15 (CentOS)
X-Powered-By: PHP/5.3.3
Content-Length: 119
Connection: close
Content-Type: text/xml
Array
(
)
<?xml version="1.0" encoding="utf-8"?>
<result>
<status>-1</status>
<message>BAD XML</message>
</result>
Thanks for the reply...
We found a funny with Nagios
We're checking Firewall sync. The returned value from oid is "Active" - with the inverted commas.
NRDP is sending this as
<output>SNMP OK - FW Sync "Active"|</output></checkresult>
However, the XI box returns "BAD XML"
If we suppress any Services that return a pair of inverted commas then everything works.
Thanks for your help. I actually read all the way down the packet capture
HTTP/1.1 200 OK
Date: Tue, 22 Aug 2017 13:15:06 GMT
Server: Apache/2.2.15 (CentOS)
X-Powered-By: PHP/5.3.3
Content-Length: 119
Connection: close
Content-Type: text/xml
Array
(
)
<?xml version="1.0" encoding="utf-8"?>
<result>
<status>-1</status>
<message>BAD XML</message>
</result>
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: NRDP receives Host checks but not Services
Glad you got it figured out! The XML needs to be valid, and all chars escaped...