NRDS unable to connnect to NRDP server after upgrade
Re: NRDS unable to connnect to NRDP server after upgrade
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.
[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.
Re: NRDS unable to connnect to NRDP server after upgrade
From the client, can you run a nmap against the Nagios XI server and post the result?
Former Nagios Employee
Re: NRDS unable to connnect to NRDP server after upgrade
# 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
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
Re: NRDS unable to connnect to NRDP server after upgrade
Can you post the files from this folder so we can review them?
Code: Select all
/usr/local/nrdp/clients/nrdsBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: NRDS unable to connnect to NRDP server after upgrade
[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
/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
Re: NRDS unable to connnect to NRDP server after upgrade
Can you zip up those 4 files and attach them to this post?
Former Nagios Employee
Re: NRDS unable to connnect to NRDP server after upgrade
Here they are.
Last edited by skynardo on Fri Feb 12, 2016 3:21 pm, edited 1 time in total.
Re: NRDS unable to connnect to NRDP server after upgrade
Can you edit the send_nrdp.sh file and change the following 2 lines from
to
Save the file out and see if this fixes it for you.
Can you verify the version if XI you are running?
Code: Select all
rslt=`curl -f --silent -d "$pdata" "$url/"`
rslt=`wget -q -O - --post-data="$pdata" "$url/"`Code: Select all
rslt=`curl -k -f --silent --insecure -d "$pdata" "$url/"`
rslt=`wget --no-check-certificate -q -O - --post-data="$pdata" "$url/"`Can you verify the version if XI you are running?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: NRDS unable to connnect to NRDP server after upgrade
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
Re: NRDS unable to connnect to NRDP server after upgrade
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.
In the newer version of XI, they were added back.
Be sure to check out our Knowledgebase for helpful articles and solutions!