Page 1 of 2

NOT ABLE TO DOWNLOAD FILE

Posted: Fri Jul 21, 2017 5:40 am
by abhi321jay
HI NOT ABLE DOWNLOAD ANY REPORTS FORM MY NAGIOS XI SERVER.

Re: NOT ABLE TO DOWNLOAD FILE

Posted: Fri Jul 21, 2017 9:21 am
by tacolover101
you have a sticky bit on the t folder, which could be cause issues depending what Nagios is trying to do.

Re: NOT ABLE TO DOWNLOAD FILE

Posted: Fri Jul 21, 2017 2:16 pm
by tgriep
Another folder to check if the permissions are correct is this folder

Code: Select all

/usr/local/nagiosxi/tmp/

Code: Select all

drwsrwsr-x   3 nagios nagios 12288 Jul 21 12:57 tmp

Re: NOT ABLE TO DOWNLOAD FILE

Posted: Sun Jul 23, 2017 11:05 pm
by abhi321jay
i have tried that permission also

Re: NOT ABLE TO DOWNLOAD FILE

Posted: Sun Jul 23, 2017 11:11 pm
by tacolover101
can the user running your web server write to /tmp/?

Re: NOT ABLE TO DOWNLOAD FILE

Posted: Mon Jul 24, 2017 6:14 am
by abhi321jay
yes it can .. al reports are able to download only pnp graph is not downloading in .CSV format

Re: NOT ABLE TO DOWNLOAD FILE

Posted: Mon Jul 24, 2017 11:52 am
by tgriep
Run this in a root shell on the Nagios server.

Code: Select all

tail -f /var/log/httpd/*_log
Then try and download a report that causes the error and then post the output of the tail command.
Also, run the following as root and post the output.

Code: Select all

chage -l nagios
grep nag /etc/passwd
grep nag /etc/group
cat /etc/sudoers

Re: NOT ABLE TO DOWNLOAD FILE

Posted: Mon Jul 24, 2017 10:15 pm
by abhi321jay
hi plz find alll the required data.

Re: NOT ABLE TO DOWNLOAD FILE

Posted: Tue Jul 25, 2017 11:12 am
by lmiltchev
You will need to add the following line to the sudoers file:

Code: Select all

Defaults:nagios !requiretty
Also, I know it says "tmp" in the error message, not "temp", but I've seen similar issues in the past when permissions of the "temp" directory were wrong. Please, verify that you have the same permissions on your system as the ones below:

Code: Select all

ls -lad /usr/local/nagiosxi/html/includes/components/highcharts/exporting-server/temp
drwxrwx--- 2 nagios nagios 18 Jan 12  2017 /usr/local/nagiosxi/html/includes/components/highcharts/exporting-server/temp

Re: NOT ABLE TO DOWNLOAD FILE

Posted: Tue Jul 25, 2017 11:18 pm
by abhi321jay
i have done the entry and check the permission all is OK but still same problem.

Please help...