NOT ABLE TO DOWNLOAD FILE

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
abhi321jay
Posts: 69
Joined: Mon May 01, 2017 1:23 am

NOT ABLE TO DOWNLOAD FILE

Post by abhi321jay »

HI NOT ABLE DOWNLOAD ANY REPORTS FORM MY NAGIOS XI SERVER.
You do not have the required permissions to view the files attached to this post.
User avatar
tacolover101
Posts: 432
Joined: Mon Apr 10, 2017 11:55 am

Re: NOT ABLE TO DOWNLOAD FILE

Post by tacolover101 »

you have a sticky bit on the t folder, which could be cause issues depending what Nagios is trying to do.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: NOT ABLE TO DOWNLOAD FILE

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
abhi321jay
Posts: 69
Joined: Mon May 01, 2017 1:23 am

Re: NOT ABLE TO DOWNLOAD FILE

Post by abhi321jay »

i have tried that permission also
User avatar
tacolover101
Posts: 432
Joined: Mon Apr 10, 2017 11:55 am

Re: NOT ABLE TO DOWNLOAD FILE

Post by tacolover101 »

can the user running your web server write to /tmp/?
abhi321jay
Posts: 69
Joined: Mon May 01, 2017 1:23 am

Re: NOT ABLE TO DOWNLOAD FILE

Post by abhi321jay »

yes it can .. al reports are able to download only pnp graph is not downloading in .CSV format
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: NOT ABLE TO DOWNLOAD FILE

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
abhi321jay
Posts: 69
Joined: Mon May 01, 2017 1:23 am

Re: NOT ABLE TO DOWNLOAD FILE

Post by abhi321jay »

hi plz find alll the required data.
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: NOT ABLE TO DOWNLOAD FILE

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
abhi321jay
Posts: 69
Joined: Mon May 01, 2017 1:23 am

Re: NOT ABLE TO DOWNLOAD FILE

Post by abhi321jay »

i have done the entry and check the permission all is OK but still same problem.

Please help...
Locked