Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Tue Jun 18, 2019 12:14 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: shell or php script: unable to create temporary file
PostPosted: Wed Aug 18, 2010 4:22 pm 
Offline

Joined: Tue Aug 17, 2010 1:42 pm
Posts: 3
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:
#!/bin/sh
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 ? :)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 18, 2010 4:27 pm 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22376
Location: Muenster, Germany
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
R.

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group