NRDS download or wget not working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
garethwithers
Posts: 22
Joined: Tue Jan 17, 2017 6:50 am

Re: NRDS download or wget not working

Post by garethwithers »

I have tried to do this with no joy.

Did it on a clean build with a new install of XI, everything else seems to be working as well.

Gareth
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: NRDS download or wget not working

Post by dwhitfield »

On the new one, what's the output of ls -laR /usr/local/nrdp >/tmp/ls.txt?

Does everything look the same between the two servers?
garethwithers
Posts: 22
Joined: Tue Jan 17, 2017 6:50 am

Re: NRDS download or wget not working

Post by garethwithers »

Hi dwhitfield

There certainly looks more files there than before

Heres the file as requested:
You do not have the required permissions to view the files attached to this post.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: NRDS download or wget not working

Post by mcapra »

Can we get a fresh set of your apache logs? The ones we currently have are a bit old and don't reflect the new changes:

Code: Select all

/var/log/httpd/error_log
/var/log/httpd/ssl_error_log
/var/log/httpd/access_log
/var/log/httpd/ssl_access_log
Former Nagios employee
https://www.mcapra.com/
garethwithers
Posts: 22
Joined: Tue Jan 17, 2017 6:50 am

Re: NRDS download or wget not working

Post by garethwithers »

As requested please find the attached

Appreciate all the help
You do not have the required permissions to view the files attached to this post.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: NRDS download or wget not working

Post by mcapra »

This definitely stands out:

Code: Select all

172.29.130.22 - - [06/Mar/2017:14:20:31 +0000] "GET /nrdp/?cmd=nrdsgetclient&token=<token>&configname=<config_name>HTTP/1.1" 404 - "http://vapngoa101/nagiosxi/includes/components/nrdsconfigmanager/nrdsconfigmanager.php" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.76 Safari/537.36"
That probably shouldn't be returning a 404. I was able to replicate this on my Nagios XI machine.

Just to verify I understand exactly what's going on, can you share the outputs of the following commands:

Code: Select all

ls -d -1 /usr/local/nrdp/** | xargs ls -al
cat config.inc.php | grep tmp
And afterwards, run this command and see if it fixes the problem:

Code: Select all

sed -i "2i\$cfg['tmp_dir'] = '/tmp';" /usr/local/nrdp/server/config.inc.php
Former Nagios employee
https://www.mcapra.com/
garethwithers
Posts: 22
Joined: Tue Jan 17, 2017 6:50 am

Re: NRDS download or wget not working

Post by garethwithers »

Afternoon

That has worked and i have included the file for you to look at:

Thanks a lot for the help, if you could let me know the issue that would be great! just so i can know the cause if it was something we did wrong.
Regards
Gareth
You do not have the required permissions to view the files attached to this post.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: NRDS download or wget not working

Post by mcapra »

The issue is a known bug with NRDP that will be fixed in a future version. Sorry for the confusion it may have caused!

Did you have additional questions regarding this issue, or can we close this thread and mark it as resolved?
Former Nagios employee
https://www.mcapra.com/
garethwithers
Posts: 22
Joined: Tue Jan 17, 2017 6:50 am

Re: NRDS download or wget not working

Post by garethwithers »

Hi mcapra

No problem at all thanks a lot for the help and assistance.

Yes you can close the ticket off.

Gareth
Locked