Page 1 of 2
NRDS download or wget not working
Posted: Thu Jan 19, 2017 6:31 am
by garethwithers
Hello
We are currently working with a proof of concept build of Nagios XI 5.4.0 and on trying to configure NRDS we cannot download the tar from the GUI by clicking on the download button as nothing seems to happen and no download occurs. Also when running the wget from the remote host we get connected but end up getting a 404 and when copying the command into the browser we get a similar issue.
NRDS is configured correctly and I can from my browser submit test checks and they hit the unconfigured objects section.
Would this be because we are on an enterprise trial license? I wouldnt have thought so but may affect something.
Below are the details of the command that I am making:
wget -O NRDS-Linux.tar.gz "http://<hostname>/nrdp/?cmd=nrdsgetclient&token=Af8MLkkPd7vG&configname=NRDS-Linux"
I have checked the XI host for the above file and cannot find it anywhere its like its not being produced.
Your help would be much appreciated.
Re: NRDS download or wget not working
Posted: Thu Jan 19, 2017 5:21 pm
by rkennedy
Odd - with a 404 we might be able to find more information. Can you post these files for us to look at?
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 Jan 20, 2017 7:01 am
by garethwithers
Thanks for the quick reply please find the attached files.
Re: NRDS download or wget not working
Posted: Fri Jan 20, 2017 2:22 pm
by rkennedy
It looks like the problem is permission related, was anything changed on the XI machine, or any hardening applied?
Code: Select all
mkdir: cannot create directory `/nrdsconfig_7487200': Permission denied
cp: cannot create directory `/nrdsconfig_7487200': Permission denied
chmod: cannot access `/nrdsconfig_7487200/clients/installnrds': No such file or directory
cp: cannot create regular file `/nrdsconfig_7487200/clients/nrds/nrds.cfg': No such file or directory
sh: line 0: cd: /nrdsconfig_7487200: No such file or directory
tar: clients: Cannot stat: No such file or directory
tar (child): /nrdsconfig_7487200/NRDS-Linux.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
Can you post a copy of your /etc/sudoers for us to review?
Re: NRDS download or wget not working
Posted: Mon Jan 23, 2017 4:35 am
by garethwithers
There should not have been any hardening applied to the install. I did not oversee the install im afraid but as far as I am being told it was followed as should be.
Have included the file for your attention:
Many thanks for your help
Re: NRDS download or wget not working
Posted: Mon Jan 23, 2017 5:25 pm
by tgriep
It could be a permission issue for the folder used to store the NRDS configurations, can you rin the following and post the /tmp/ls.txt file?
Code: Select all
ls -laR /usr/local/nrdp >/tmp/ls.txt
Can you run the following as root on the server and post the output as well?
Thanks
Re: NRDS download or wget not working
Posted: Tue Jan 24, 2017 3:47 am
by garethwithers
Thanks please find the commands and file as requested
Re: NRDS download or wget not working
Posted: Tue Jan 24, 2017 2:43 pm
by tgriep
There are some files missing from the following folder on your system
and that seems to be causing the error.
Lets update the NRDS Config Manager on your system and see if that puts the needed files in that folder and fixes the issue.
To update it, login to the XI GUI and go to the Admin > Manage Components menu.
Click on the Check for Updates button and after the list is updated, click on the Install Updates button.
Then go to the NRDS Config Manager and create a new config and see if you can download it.
Re: NRDS download or wget not working
Posted: Fri Feb 24, 2017 6:29 am
by garethwithers
Sorry tgreip for the late reply
Had to get some routes etc opened up to allow us to update server components and this has just been done.
Ran the update of the components and still no joy still getting 404 not founds when wget and the download is not working.
Gareth
Re: NRDS download or wget not working
Posted: Fri Feb 24, 2017 12:27 pm
by dwhitfield
I have attached the file for you. If you are not familiar with updating compoents, please see
https://assets.nagios.com/downloads/nag ... ios-XI.pdf