Ok this has to just be something stupid and silly I'm missing. Every time I add a new device, the RRD files in RRA have the wrong permissions. They show up with Read being only available to cactiuser. In this way, apache can't read them. The only fix is to chmod or chown/grp the files.
I use spine. Poller.php is called from crontab via cactiuser.
[root:cacti]# ls -lad rra
drwxr-xr-x 2 cactiuser cacti 65536 Apr 17 15:25 rra
When I add a new device and the RRD's show up, this is how they show up:
-rw-r----- 1 cactiuser cacti 111208 Apr 17 23:25 some-device.rrd
-rw-r----- 1 cactiuser cacti 111208 Apr 17 23:25 some-device2.rrd
I fix this by doing chmod a+r to the directory -- then apache can read it.
Here is my crontab:
[root]# crontab -u cactiuser -l
*/5 * * * * php /var/www/html/cacti/poller.php > /dev/null 2>&1
What am I missing here? The permissions on the directory is right. How can I make it so the poller creates files with read permission to all? I must be missing something silly. Any assistance would be great!
Permissions in /rra director *after* new device added/polled
Moderators: Developers, Moderators
Re: Permissions in /rra director *after* new device added/po
No one knows how to fix this? I've basically added a cron job to chmod a+r to the RRA directory every 10 mins -- but that seems a little silly... what am I missing?
net-guy wrote:Ok this has to just be something stupid and silly I'm missing. Every time I add a new device, the RRD files in RRA have the wrong permissions. They show up with Read being only available to cactiuser. In this way, apache can't read them. The only fix is to chmod or chown/grp the files.
I use spine. Poller.php is called from crontab via cactiuser.
[root:cacti]# ls -lad rra
drwxr-xr-x 2 cactiuser cacti 65536 Apr 17 15:25 rra
When I add a new device and the RRD's show up, this is how they show up:
-rw-r----- 1 cactiuser cacti 111208 Apr 17 23:25 some-device.rrd
-rw-r----- 1 cactiuser cacti 111208 Apr 17 23:25 some-device2.rrd
I fix this by doing chmod a+r to the directory -- then apache can read it.
Here is my crontab:
[root]# crontab -u cactiuser -l
*/5 * * * * php /var/www/html/cacti/poller.php > /dev/null 2>&1
What am I missing here? The permissions on the directory is right. How can I make it so the poller creates files with read permission to all? I must be missing something silly. Any assistance would be great!
Who is online
Users browsing this forum: No registered users and 3 guests