permission denied for /cacti/remote_agent.php,but folder has permission

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
ponnuchelvam
Posts: 23
Joined: Fri Sep 28, 2018 6:59 am
Contact:

permission denied for /cacti/remote_agent.php,but folder has permission

Post by ponnuchelvam »

Hi Team,

I am getting the below error on device addition page. But i have enough folder permission for this file. This is happening in last two week. this is showing for only one remote poller. I have another remote poller. I dont see for that remote poller.

Code: Select all

Forbidden
You don't have permission to access /cacti/remote_agent.php on this server.
File access on Remote poller

-rw-rw-r--. 1 cacti apache 13764 Apr 16 2018 remote_agent.php

-rw-rw-r--. 1 cacti apache 13764 Apr 16 2018 cacti/remote_agent.php

File access on Primary Poller
-rw-rw-r--. 1 cacti apache 13764 Apr 16 2018 cacti/remote_agent.php

Please help to fix the issue.

Thanks and Regards
Ponnuchelvam.V
Thanks and Regards
Ponnuchelvam.V
Infra Monitoring tool expert
ponnuchelvam
Posts: 23
Joined: Fri Sep 28, 2018 6:59 am
Contact:

Re: permission denied for /cacti/remote_agent.php,but folder has permission

Post by ponnuchelvam »

Capture1.PNG
Capture1.PNG (15.01 KiB) Viewed 559 times
Thanks and Regards
Ponnuchelvam.V
Infra Monitoring tool expert
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: permission denied for /cacti/remote_agent.php,but folder has permission

Post by cigamit »

Check SELinux, and also check your apache error logs, as they typically give more information.
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: permission denied for /cacti/remote_agent.php,but folder has permission

Post by netniV »

Also, make sure your configuration matches on both servers as url_path which is by default set to '/cacti/' should match what URL your apache/nginx/iis configuration is using. And, check the permissions of the cacti folder itself, just because the file has the right permissions doesn't mean the folder it's in does.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
ponnuchelvam
Posts: 23
Joined: Fri Sep 28, 2018 6:59 am
Contact:

Re: permission denied for /cacti/remote_agent.php,but folder has permission

Post by ponnuchelvam »

Please find the Selinux status. I check folder and file permission. both are fine. The same verified with working remote poller as well. I am running two remote poller. I am getting this error only for one poller.

[root@xxxyyy01 mibs]# sestatus
SELinux status: enabled
SELinuxfs mount: /sys/fs/selinux
SELinux root directory: /etc/selinux
Loaded policy name: targeted
Current mode: enforcing
Mode from config file: enforcing
Policy MLS status: enabled
Policy deny_unknown status: allowed
Max kernel policy version: 31

Thanks and Regards
Ponnuchelvam.V
Thanks and Regards
Ponnuchelvam.V
Infra Monitoring tool expert
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests