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

NRDS download or wget not working

Post 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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: NRDS download or wget not working

Post 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
Former Nagios Employee
garethwithers
Posts: 22
Joined: Tue Jan 17, 2017 6:50 am

Re: NRDS download or wget not working

Post by garethwithers »

Thanks for the quick reply please find the attached files.
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: NRDS download or wget not working

Post 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?
Former Nagios Employee
garethwithers
Posts: 22
Joined: Tue Jan 17, 2017 6:50 am

Re: NRDS download or wget not working

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: NRDS download or wget not working

Post 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?

Code: Select all

df -h
df -i
chage -l nagios
Thanks
Be sure to check out our Knowledgebase for helpful articles and solutions!
garethwithers
Posts: 22
Joined: Tue Jan 17, 2017 6:50 am

Re: NRDS download or wget not working

Post by garethwithers »

Thanks please find the commands and file as requested
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: NRDS download or wget not working

Post by tgriep »

There are some files missing from the following folder on your system

Code: Select all

/usr/local/nrdp/clients
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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
garethwithers
Posts: 22
Joined: Tue Jan 17, 2017 6:50 am

Re: NRDS download or wget not working

Post 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
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 »

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
You do not have the required permissions to view the files attached to this post.
Locked