Page 2 of 2
Re: NRDS download or wget not working
Posted: Wed Mar 08, 2017 9:39 am
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
Re: NRDS download or wget not working
Posted: Wed Mar 08, 2017 5:50 pm
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?
Re: NRDS download or wget not working
Posted: Thu Mar 09, 2017 7:14 am
by garethwithers
Hi dwhitfield
There certainly looks more files there than before
Heres the file as requested:
Re: NRDS download or wget not working
Posted: Thu Mar 09, 2017 5:59 pm
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
Re: NRDS download or wget not working
Posted: Fri Mar 10, 2017 3:35 am
by garethwithers
As requested please find the attached
Appreciate all the help
Re: NRDS download or wget not working
Posted: Fri Mar 10, 2017 2:44 pm
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
Re: NRDS download or wget not working
Posted: Tue Mar 14, 2017 9:31 am
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
Re: NRDS download or wget not working
Posted: Tue Mar 14, 2017 10:59 am
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?
Re: NRDS download or wget not working
Posted: Wed Mar 15, 2017 3:15 am
by garethwithers
Hi mcapra
No problem at all thanks a lot for the help and assistance.
Yes you can close the ticket off.
Gareth