Nagios Core Reporting to Nagios XI

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Christopheric1
Posts: 16
Joined: Wed May 02, 2018 6:06 pm

Nagios Core Reporting to Nagios XI

Post 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,
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Nagios Core Reporting to Nagios XI

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Christopheric1
Posts: 16
Joined: Wed May 02, 2018 6:06 pm

Re: Nagios Core Reporting to Nagios XI

Post 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?
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Nagios Core Reporting to Nagios XI

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Christopheric1
Posts: 16
Joined: Wed May 02, 2018 6:06 pm

Re: Nagios Core Reporting to Nagios XI

Post 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)
Christopheric1
Posts: 16
Joined: Wed May 02, 2018 6:06 pm

Re: Nagios Core Reporting to Nagios XI

Post 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!
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Nagios Core Reporting to Nagios XI

Post by cdienger »

Glad to hear! :)
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked