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
NRDP - Nagios integration
NRDP - Nagios integration
Last edited by dwhitfield on Fri Dec 09, 2016 12:15 pm, edited 1 time in total.
Reason: marking with green check mark
Reason: marking with green check mark
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: NRDP - Nagios integration
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)
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
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?
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
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.
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.
Former Nagios employee
Re: NRDP - Nagios integration
Thanks for the input
I will give it a try and come back with results
I will give it a try and come back with results
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: NRDP - Nagios integration
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.
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
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.
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.
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: NRDP - Nagios integration
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
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.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!
Thanks again