Page 3 of 3

Re: NRDP Nagios XI receiving info from nagios core

Posted: Fri Apr 03, 2020 1:38 pm
by scottwilkerson
So we can see the results are reaching the Nagios XI server from the logs.

What isn't working?

also, Out of curiosity, does it work without using https?

Code: Select all

./send_nrdp.php --url=http://10.202.1.69/nrdp/ --token=MbJMjUTeWMES --host="SGS-SANTOS-HP-RACK-SERVIDORES" --state=0 --output="PING OK - Packet loss = 0%, RTA = 13.24 ms"

Re: NRDP Nagios XI receiving info from nagios core

Posted: Mon Apr 06, 2020 8:44 am
by paulo.ferreira
What isn't working?
RE: when I go to the unconfigured objects, don't show the itens for this client.



also, Out of curiosity, does it work without using https?
RE: I try to use HTTP, but don't work as well.

Re: NRDP Nagios XI receiving info from nagios core

Posted: Mon Apr 06, 2020 1:22 pm
by scottwilkerson
paulo.ferreira wrote:RE: when I go to the unconfigured objects, don't show the itens for this client.
Is there any chance you already have a host named SGS-SANTOS-HP-RACK-SERVIDORES configured? (maybe sent from the other server)

Re: NRDP Nagios XI receiving info from nagios core

Posted: Tue Apr 07, 2020 6:40 am
by paulo.ferreira
Is there any chance you already have a host named SGS-SANTOS-HP-RACK-SERVIDORES configured? (maybe sent from the other server)
R: No chance.

This is geeting me crazy, because should working.

Re: NRDP Nagios XI receiving info from nagios core

Posted: Tue Apr 07, 2020 2:39 pm
by scottwilkerson
paulo.ferreira wrote:Output:

/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:20:24 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:20:24 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:20:24 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:20:24 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:20:24 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:20:24 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:20:24 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:20:24 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:20:24 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:20:24 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:20:43 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:20:47 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:21:44 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:21:55 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:22:04 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:22:08 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:22:09 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:22:09 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:22:09 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:22:09 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:22:09 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:22:11 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:22:55 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:23:01 -0300] "POST /nrdp// HTTP/1.1" 200 109
/var/log/httpd/ssl_access_log:10.202.1.70 - - [02/Apr/2020:18:24:32 -0300] "POST /nrdp// HTTP/1.1" 200 109

Alot a this
So, looking back through the thread, I noticed in this response, I only see results coming from 10.202.1.70 but in your OP you mentioned you have 2 servers setup and the other one is working. I'm a bit confused how it is working and yet there were no result from the other IP.

Additionally, I noted above it appears that the POST is going to a URL with a double slash at the end, are the commands for both of these exactly the same?

Code: Select all

POST /nrdp//
Also, do both Nagios Core server have the exact same version of send_nrdp.php

Re: NRDP Nagios XI receiving info from nagios core

Posted: Wed Apr 08, 2020 8:28 am
by paulo.ferreira
Sorry i forget to mention, but i filter to show only the client with problems.

And the strange is the working one, shows the same log:

10.202.1.36 - - [06/Apr/2020:23:40:30 -0300] "POST /nrdp// HTTP/1.1" 200 170
10.202.1.36 - - [06/Apr/2020:23:40:30 -0300] "POST /nrdp// HTTP/1.1" 200 170
10.202.1.36 - - [06/Apr/2020:23:40:30 -0300] "POST /nrdp// HTTP/1.1" 200 170
10.202.1.36 - - [06/Apr/2020:23:40:30 -0300] "POST /nrdp// HTTP/1.1" 200 170
10.202.1.36 - - [06/Apr/2020:23:40:30 -0300] "POST /nrdp// HTTP/1.1" 200 170
10.202.1.36 - - [06/Apr/2020:23:40:30 -0300] "POST /nrdp// HTTP/1.1" 200 170
10.202.1.36 - - [06/Apr/2020:23:40:31 -0300] "POST /nrdp// HTTP/1.1" 200 170
10.202.1.36 - - [06/Apr/2020:23:40:31 -0300] "POST /nrdp// HTTP/1.1" 200 170
10.202.1.36 - - [06/Apr/2020:23:40:31 -0300] "POST /nrdp// HTTP/1.1" 200 170
10.202.1.36 - - [06/Apr/2020:23:40:31 -0300] "POST /nrdp// HTTP/1.1" 200 170
10.202.1.36 - - [06/Apr/2020:23:40:31 -0300] "POST /nrdp// HTTP/1.1" 200 170
10.202.1.36 - - [06/Apr/2020:23:40:31 -0300] "POST /nrdp// HTTP/1.1" 200 170

And both as using the same version, i just follow the instructions of the procedure below:
https://assets.nagios.com/downloads/nag ... h-NRDP.pdf

Re: NRDP Nagios XI receiving info from nagios core

Posted: Wed Apr 08, 2020 11:29 am
by paulo.ferreira
Changing the script to the .sh option worked well,instead using send_nrdp.php, i try the send_nrdp.sh and now everything is fine.


Thank you for your support

Re: NRDP Nagios XI receiving info from nagios core

Posted: Wed Apr 08, 2020 3:45 pm
by lmiltchev
@paulo.ferreira, is it safe to lock this thread, and mark it as resolved? Thanks!