NRDP Nagios XI receiving info from nagios core

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NRDP Nagios XI receiving info from nagios core

Post 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"
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
paulo.ferreira
Posts: 32
Joined: Wed Feb 26, 2020 10:26 am

Re: NRDP Nagios XI receiving info from nagios core

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NRDP Nagios XI receiving info from nagios core

Post 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)
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
paulo.ferreira
Posts: 32
Joined: Wed Feb 26, 2020 10:26 am

Re: NRDP Nagios XI receiving info from nagios core

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NRDP Nagios XI receiving info from nagios core

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
paulo.ferreira
Posts: 32
Joined: Wed Feb 26, 2020 10:26 am

Re: NRDP Nagios XI receiving info from nagios core

Post 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
paulo.ferreira
Posts: 32
Joined: Wed Feb 26, 2020 10:26 am

Re: NRDP Nagios XI receiving info from nagios core

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NRDP Nagios XI receiving info from nagios core

Post by lmiltchev »

@paulo.ferreira, is it safe to lock this thread, and mark it as resolved? Thanks!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked