Page 1 of 1

Nagios Core Reporting to Nagios XI

Posted: Wed May 30, 2018 2:13 pm
by Christopheric1
Hey All,

I am very new to linux programming and am trying to setup Nagios XI with nagios Core to submit checks. Currently, we have Nagios XI Enterprise and have other clients we are trying to view data from. In order to access their data it is on the other side of a firewall so we need to use, I believe, NSCA and NRDP to talk between the 2 servers. I have tried setting both up on both sides to no avail and I have no idea where to even begin as I wasn't even sure where to put the config files that were suggested in this document: https://support.nagios.com/forum/viewto ... 6&p=140693

I just want to report status from the Nagios Core to the Nagios XI. I have setup the Nagios XI with the inbound transfer token and I have set the same one on the Nagios Core and I have opened all the ports on the firewalls needed based on this document: https://assets.nagios.com/downloads/nag ... ith_XI.pdf. I am just not that great with linux I'm afraid. I am running on Ubuntu 16.04LTS.

Thanks,

Re: Nagios Core Reporting to Nagios XI

Posted: Fri Jun 01, 2018 3:07 pm
by cdienger
Have a look at this document: https://assets.nagios.com/downloads/nag ... h-NRDP.pdf It steps through this exact config and I've helped customers set it up in the past with success. The ports that need to be opened would be port 80 and 443.

Re: Nagios Core Reporting to Nagios XI

Posted: Wed Jun 06, 2018 6:30 pm
by Christopheric1
I followed the document and I am getting a weird error in the Nagios Log:

[1528327724] wproc: early_timeout=1; exited_ok=0; wait_status=0; error_code=62;
[1528327724] Warning: OCHP command '/usr/local/nagios/libexec/send_nrdp.php --url=http://NAGIOSXISERVER/nrdp/ --token=secrettoken --host="hostdevice" --state=0 --output="PING OK - Packet loss = 0%, RTA = 1.24 ms"' for host 'hostdevice' timed out after 0.00 seconds
[1528327724] wproc: Core Worker 1508: job 34 (pid=1731): Dormant child reaped

Any ideas?

Re: Nagios Core Reporting to Nagios XI

Posted: Thu Jun 07, 2018 2:46 pm
by cdienger
What happens when you run the command directly on the command line:

/usr/local/nagios/libexec/send_nrdp.php --url=http://NAGIOSXISERVER/nrdp/ --token=secrettoken --host="hostdevice" --state=0 --output="PING OK - Packet loss = 0%, RTA = 1.24 ms

?

Are you using and IP or hostname in place of NAGIOSXISERVER? Do you access the UI using http or https? If https, try changing the command slightly:

/usr/local/nagios/libexec/send_nrdp.php --url=https://NAGIOSXISERVER/nrdp/ --token=secrettoken --host="hostdevice" --state=0 --output="PING OK - Packet loss = 0%, RTA = 1.24 ms

Re: Nagios Core Reporting to Nagios XI

Posted: Thu Jun 07, 2018 3:56 pm
by Christopheric1
When I enter the command you suggested with the correct information (I redacted from putting out here), it just sat. It never completed or gave an error.

It is accessible by http:// and we have ports 80, 443, and 5667 open on the other side. I have tested from this Nagios Core box to that IP with those ports and they all respond. I am accessing it by IP though. (http://xxx.xxx.xx.xx/nrdp)

Re: Nagios Core Reporting to Nagios XI

Posted: Thu Jun 07, 2018 5:03 pm
by Christopheric1
I just figured it out...I put the external dns name in and it worked perfectly. Apparently it did not like the NAT'd address or something.

Thanks!

Re: Nagios Core Reporting to Nagios XI

Posted: Fri Jun 08, 2018 10:33 am
by cdienger
Glad to hear! :)