Page 1 of 1

NRDP / NSCA not working

Posted: Mon Oct 29, 2018 5:26 am
by jcrespo
Hi all,

We've already set up all the config to let it work, but still no retrieving data from our deployed Nagios.
There's any restriction about versions to work together?

Thanks!

Re: NRDP / NSCA not working

Posted: Mon Oct 29, 2018 1:30 pm
by cdienger
Anything that isn't ancient should work. What versions of everything are you running?

Also, is this related to https://support.nagios.com/forum/viewto ... 55#p265755 ? Can we close one thread to avoid duplication?

Re: NRDP / NSCA not working

Posted: Tue Oct 30, 2018 3:14 am
by jcrespo
Yes please close the other topic, I duplicated by mistake.
I'll check the versions and post it here ASAP.
Thanks!

Re: NRDP / NSCA not working

Posted: Tue Oct 30, 2018 4:41 am
by jcrespo
Nagios deployed version 5.4.1
Nagios Central 5.5.5

I've already followed the tutorial and still not retrieving data.
Server restarted several times with no luck.

Re: NRDP / NSCA not working

Posted: Tue Oct 30, 2018 6:52 am
by jcrespo
I've already updated the deployed Nagios to the latest version 5.5.5 and still not working.

Thanks

Re: NRDP / NSCA not working

Posted: Tue Oct 30, 2018 4:18 pm
by cdienger
Both machines are now at 5.5.5, correct? Make sure that the remote machine can communicate with the central machine by running the following on the remote machine's command line:

curl https://central_xi_ip/nrdp -kv

Have you configured any hosts besides localhost so far? The Global outbound options(Admin > Check Transfers > Outbound Transfers) on the remote server will filter these out.

Also, you would be seeing new hosts and services come in under Admin > Monitoring Config > Unconfigured Objects) and in the /usr/local/nagios/var/nagios.log on the central server you would see entries like "Error: Got host checkresult for 'test', but no such host can be found". Make sure you're checking both of these locations.

Re: NRDP / NSCA not working

Posted: Tue Oct 30, 2018 4:26 pm
by ssax
In addition to what cdienger posted:

You're not seeing them in Admin > Unconfigured Objects?

Please post your /etc/xinetd.d/nsca file.

Did you restart xinetd after making the changes (if you updated it)?

Code: Select all

service xinetd restart
What is the output of these commands (some of the commands may fail, send me the working ones):

Code: Select all

ss -nlp | grep 5667
netstat -ano | grep 5667
iptables -L
firewall-cmd --list-ports
sestatus
Can you go to http://YOURXISERVER/nrdp/ or https://YOURXISERVER/nrdp/ just fine through a web browser?

Re: NRDP / NSCA not working

Posted: Wed Oct 31, 2018 4:08 am
by jcrespo
Thanks for your replies!

I've already made it work, and now I'm feeling so dumb :lol:
On remote machines, all the hosts were correctly set up.
I also tried with the direct IP just to check if it was a DNS problem - Not solved
Then Googleing a little I've found the same issue with another user, finish the URL with a simple / :oops:

Thanks for your time and patience and hope this helps another user.

Re: NRDP / NSCA not working

Posted: Wed Oct 31, 2018 1:19 pm
by cdienger
Thanks for the update :) Glad to hear you found the problem!