NRDS unable to connnect to NRDP server after upgrade

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
skynardo
Posts: 136
Joined: Tue Sep 18, 2012 8:59 am
Location: St. Louis, MO

Re: NRDS unable to connnect to NRDP server after upgrade

Post by skynardo »

This did not work.
[nagios@dsa528 ~]$ /usr/local/nrdp/clients/nrds/nrds.pl -H 'dsa528'
ERROR: could not connect to NRDP server at https://nagiosxi/nrdp/

If I change my nrds.cfg to http, I now get:
[nagios@dsa528 ~]$ /usr/local/nrdp/clients/nrds/nrds.pl -H 'dsa528'
ERROR: The NRDP Server said HTTPS REQUIRED
ERROR: NRDP Server said - HTTPS REQUIRED at /usr/local/nrdp/clients/nrds/nrds_updater.pl line 163, <CONFIG> line 20.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: NRDS unable to connnect to NRDP server after upgrade

Post by rkennedy »

From the client, can you run a nmap against the Nagios XI server and post the result?
Former Nagios Employee
skynardo
Posts: 136
Joined: Tue Sep 18, 2012 8:59 am
Location: St. Louis, MO

Re: NRDS unable to connnect to NRDP server after upgrade

Post by skynardo »

# nmap nagiosxi

Starting Nmap 5.51 ( http://nmap.org ) at 2016-02-11 10:37 CST
Nmap scan report for nagiosxi (10.204.240.199)
Host is up (0.00041s latency).
rDNS record for 10.204.240.199: nagiosxi.unigroupinc.com
Not shown: 997 filtered ports
PORT STATE SERVICE
22/tcp open ssh
80/tcp open http
443/tcp open https
MAC Address: 00:50:56:B7:1F:CB (VMware)

Nmap done: 1 IP address (1 host up) scanned in 5.22 seconds
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: NRDS unable to connnect to NRDP server after upgrade

Post by tgriep »

Can you post the files from this folder so we can review them?

Code: Select all

/usr/local/nrdp/clients/nrds
Be sure to check out our Knowledgebase for helpful articles and solutions!
skynardo
Posts: 136
Joined: Tue Sep 18, 2012 8:59 am
Location: St. Louis, MO

Re: NRDS unable to connnect to NRDP server after upgrade

Post by skynardo »

[root@dsa528 nrds]# pwd
/usr/local/nrdp/clients/nrds
[root@dsa528 nrds]# ls -al
total 28
drwxrwxr-x 2 nagios nagios 4096 Feb 10 16:28 .
drwxrwxr-x 3 nagios nagios 4096 Jan 29 08:36 ..
-rwxrwxr-x 1 nagios nagios 751 Feb 10 16:28 nrds.cfg
-rwxrwxr-x 1 nagios nagios 1628 Jan 29 08:36 nrds_common.pl
-rwxrwxr-- 1 nagios nagios 2834 Jan 29 08:36 nrds.pl
-rwxrwxr-- 1 nagios nagios 6330 Jan 29 08:36 nrds_updater.pl
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: NRDS unable to connnect to NRDP server after upgrade

Post by rkennedy »

Can you zip up those 4 files and attach them to this post?
Former Nagios Employee
skynardo
Posts: 136
Joined: Tue Sep 18, 2012 8:59 am
Location: St. Louis, MO

Re: NRDS unable to connnect to NRDP server after upgrade

Post by skynardo »

Here they are.
Last edited by skynardo on Fri Feb 12, 2016 3:21 pm, edited 1 time in total.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: NRDS unable to connnect to NRDP server after upgrade

Post by tgriep »

Can you edit the send_nrdp.sh file and change the following 2 lines from

Code: Select all

rslt=`curl -f --silent -d "$pdata" "$url/"`
rslt=`wget -q -O - --post-data="$pdata" "$url/"`
to

Code: Select all

rslt=`curl -k -f --silent --insecure -d "$pdata" "$url/"`
rslt=`wget --no-check-certificate -q -O - --post-data="$pdata" "$url/"`
Save the file out and see if this fixes it for you.

Can you verify the version if XI you are running?
Be sure to check out our Knowledgebase for helpful articles and solutions!
skynardo
Posts: 136
Joined: Tue Sep 18, 2012 8:59 am
Location: St. Louis, MO

Re: NRDS unable to connnect to NRDP server after upgrade

Post by skynardo »

Yes, this works around the problem, but I already have been using a work around by changing my nrds.cfg URL from https to http on any new clients that I install. This works fine unless an updated cfg gets pushed out and breaks it again. I am trying to find out what changed to cause this to break for new nrds clients. I am running Nagios XI 5.2.0
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: NRDS unable to connnect to NRDP server after upgrade

Post by tgriep »

If I remember correctly, that version (5.2.0) , the send_nrdp.sh file was released and it was missing those settings by mistake.
In the newer version of XI, they were added back.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked