shell or php script: unable to create temporary file

Templates, scripts for templates, scripts and requests for templates.

Moderators: Moderators, Developers

Post Reply
Posts: 3
Joined: Tue Aug 17, 2010 1:42 pm

shell or php script: unable to create temporary file

#1 Post by oliver0513 » Wed Aug 18, 2010 4:22 pm

Hi all,

I need to make some change in a file get from a remote ftp server in order to handle custom data.

But I've got problem with cacti and write permissions.

For example, if I try to run this script with data input method in cacti:

Code: Select all

echo 14 >> test.txt

This simple code won't work on my cacti server, the file "test.txt" is not created or updated as well even with absolute path paste in the code or with similar php code.
I have also try many set of permissions (root, www-data, guest).

So, I can't download my custom file from the remote server in order to handle it localy.

Is somebody can help me ? :)

User avatar
Posts: 22375
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany

#2 Post by gandalf » Wed Aug 18, 2010 4:27 pm

The poller should be run under "cactiuser" permissions. So you need a place in your filesystem, where "cactiuser" is allowed to write. From the cacti standpoint, that's either ./rra or ./log, nothing else

Post Reply