Page 1 of 1
NRDP - Nagios integration
Posted: Wed Dec 07, 2016 3:43 pm
by izghitu
Hi,
I want to use the NRDP nagios plugin in order to get data from clients that nagios can't connect to due to NAT/firewall issues.
I checked documentation and I have the NRDP server running and I am sending NRDP data from clients to the NRDP server.
The problem that I now have is how to display the actual data in Nagios core for each of the monitored clients. I can't find any howtos about nagios core config files on a per host basis related to this. Or am I getting it wrong about how NRDP works?
Please let me know
Thanks in advance
Re: NRDP - Nagios integration
Posted: Wed Dec 07, 2016 4:07 pm
by dwhitfield
How are you trying to graph? I ask primarily because there are a lot of third party tools for graphing. The starting place for us would be
https://assets.nagios.com/downloads/nag ... raphs.html but that may not be how you are doing it.
Could you also post the output of
tail -100 /usr/local/nagios/var/nagios.log (and wrapping it in code tags would be awesome)
Can you PM me your /usr/local/nagios/var/objects.cache? After you PM the objects.cache, please update this thread. Updating this thread is the only way for it to show back up on our dashboard. (of course, if you answer my other questions in the thread, that works too)
Re: NRDP - Nagios integration
Posted: Wed Dec 07, 2016 4:15 pm
by izghitu
Hi,
I do not want to graph anything actually.
For example I have HOST 1.2.3.4:
It has the /usr/local/nrdp/clients/send_nrdp.php command running with args that checks for disk space and based on result it sends the state and data to the NRDP server
My question is how do I make the nagios core .cfg file that will display the state of the check for that particular host 1.2.3.4? How do I make Nagios core read the data from the NRDP server?
Re: NRDP - Nagios integration
Posted: Wed Dec 07, 2016 4:20 pm
by tmcdonald
All Nagios needs is the existing
hostname and
service_description fields which match whatever you are sending with
send_nrdp.php. So in that regard, you only need to follow our object definitions:
https://assets.nagios.com/downloads/nag ... tions.html
and set these up like any other host and service. The big difference is making sure
active_checks_enabled=0 and
passive_checks_enabled=1 since NRDP is a passive check method.
Re: NRDP - Nagios integration
Posted: Wed Dec 07, 2016 4:26 pm
by izghitu
Thanks for the input
I will give it a try and come back with results
Re: NRDP - Nagios integration
Posted: Wed Dec 07, 2016 4:31 pm
by dwhitfield
Sorry, I misunderstood what you meant by display!
If you still have trouble after the information from
@tmcdonald, that nagios.log and /usr/local/nagios/var/objects.cache are likely to still come in handy. Can you also send a screenshot of what http://<ipaddress>/nrdp looks like? Basically, any config files you think might be useful that I have asked for, PM it my way or post in the thread.
A few more specific questions: Is port 443 open? Is selinux disabled? Have you tested it without using ssl? What version of Core are you using? Did you compile from source or install from distro repos? On what OS/version are you running Core?
Also, you say you checked documentation, but just so we are on the same page, are you talking about
https://assets.nagios.com/downloads/nrd ... erview.pdf?
This might be overkill at this point, but if the above questions don't solve the issue...
Are we sure the NRDP results are even reaching the Nagios server? Try running a tcpdump then send the NRDP results from the remote machine.
Nagios server:
tcpdump port 80
Remote server:
send_nrdp.sh -u http://nagiosadmin:*******@mynagiosserver.com/nrdp/ -t *********** -f files/myfile.ping.xml
Again, PM or scrub as needed.
Re: NRDP - Nagios integration
Posted: Fri Dec 09, 2016 11:58 am
by izghitu
Hi guys,
Just getting back with results.
Thanks for all the help and explanations. It worked like a charm. I can now push check results to my nagios server.
Nagios is indeed magical.
Re: NRDP - Nagios integration
Posted: Fri Dec 09, 2016 12:00 pm
by dwhitfield
That is great news! To help others in the future, could you let us know exactly which step resolved things for you? Thanks!
Re: NRDP - Nagios integration
Posted: Fri Dec 09, 2016 12:10 pm
by izghitu
dwhitfield wrote:That is great news! To help others in the future, could you let us know exactly which step resolved things for you? Thanks!
I did not know how exactly to define the object to monitor to work with nrdp passive checks so the normal definition + active_checks_enabled=0 and passive_checks_enabled=1 did the trick for me.
Thanks again