I have next problem.
I installed plugin Boost, and now has problem with graphs update.
Graphs which have permission 777 is updated normally but poller.php create rrd with 644 permission by default.
Can I change this and force poller to create rrd with access rights 777 in rra directory?
I try set umask 011 before when poller starts but this nothing change
Boost and graph permission
Moderators: Developers, Moderators
Re: Boost and graph permission
Babel wrote:I have next problem.
I installed plugin Boost, and now has problem with graphs update.
Graphs which have permission 777 is updated normally but poller.php create rrd with 644 permission by default.
Can I change this and force poller to create rrd with access rights 777 in rra directory?
I try set umask 011 before when poller starts but this nothing change
I have in view of I can automatically force poller to create files with the rights 0777?
- TheWitness
- Developer
- Posts: 17062
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Edit your poller_boost.php and use the umask("0222"); command there. I believe that should do it. I addition, can you log a bug on this to http://bugs.cacti.net
TheWitness
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Where i can place this command reference?TheWitness wrote:Edit your poller_boost.php and use the umask("0222"); command there. I believe that should do it. I addition, can you log a bug on this to http://bugs.cacti.net
TheWitness
I place it in the beginning of poller_boost.php, but this not helps to me
- TheWitness
- Developer
- Posts: 17062
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
I think you need to do some research on how *NIX works.
This is a fundamental concept. I suggest you do some googling on this concept.
Commands to search for include:
umask
chown
chmod
As I say in the README, if you don't know what you are doing, best leave it alone.
TheWitness
This is a fundamental concept. I suggest you do some googling on this concept.
Commands to search for include:
umask
chown
chmod
As I say in the README, if you don't know what you are doing, best leave it alone.
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
thank you, but may be we not understand each other correctly.
I know how commands chmod, chgrm, and umask works in *NIX
If i understood you correctly, you offer to insert php's command umask("0222") in poller_boost.php. So what i ask you -- where i can put this command in this file?
I already use the command "chmod 666" in crontab for files in rra directory every 5 minutes, but I think this decision is not very good
For understanding
1. I set my umask to 22 in the shell (as root). I start Apache. I create a graph , and its permissions are 'rw-r--r--' after polling.
2. I stopped Apache. I set my umask to 11 in the shell (as root). I start Apache. I create a graph , and its permissions are 'rw-r--r--' again.
I know how commands chmod, chgrm, and umask works in *NIX
If i understood you correctly, you offer to insert php's command umask("0222") in poller_boost.php. So what i ask you -- where i can put this command in this file?
I already use the command "chmod 666" in crontab for files in rra directory every 5 minutes, but I think this decision is not very good
For understanding
1. I set my umask to 22 in the shell (as root). I start Apache. I create a graph , and its permissions are 'rw-r--r--' after polling.
2. I stopped Apache. I set my umask to 11 in the shell (as root). I start Apache. I create a graph , and its permissions are 'rw-r--r--' again.
Who is online
Users browsing this forum: No registered users and 4 guests