how can run cacti by root?

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
looc
Cacti User
Posts: 110
Joined: Mon Aug 13, 2007 3:40 am

how can run cacti by root?

Post by looc »

i install cacti 0.8.7a according as official doc.
*/5 * * * * cactiuser /..../php /..../poller.php > /dev/null 2>&1
but i can't run ICMP ping script by cacti.
i want use sudo to ravel out it.but sudo can be run by CLI.
how can run cacti by root to used ICMP ping script?
or how change root to do it ?
Cacti Version - 0.8.7 & spine
Plugin Architecture - 1.3
Server Info - Windows 2003 EP
Web Server -IIS6.0
PHP - 5.2.3
MySQL - 4.1.10
RRDTool - 1.2.15
SNMP - 5.4.1
--------------------------
plugins:
reportit 0.5.1|monitor 0.8.1|thold 0.3.8
sigey
Posts: 25
Joined: Mon Feb 14, 2005 9:17 am
Location: MV
Contact:

Post by sigey »

switch to root user and put a cron there.
looc
Cacti User
Posts: 110
Joined: Mon Aug 13, 2007 3:40 am

Post by looc »

i rewrite crontab:
*/5 * * * * root /..../php /...../poller.php .......
reboot system.
but problem havn't ravel out
Warning: socket_create() [function.socket-create]: Unable to create socket [1]: Operation not permitted in /www/htdocs/cacti/lib/ping.php on line 148

Warning: socket_set_block() expects parameter 1 to be resource, boolean given in /www/htdocs/cacti/lib/ping.php on line 150
Cacti Version - 0.8.7 & spine
Plugin Architecture - 1.3
Server Info - Windows 2003 EP
Web Server -IIS6.0
PHP - 5.2.3
MySQL - 4.1.10
RRDTool - 1.2.15
SNMP - 5.4.1
--------------------------
plugins:
reportit 0.5.1|monitor 0.8.1|thold 0.3.8
sigey
Posts: 25
Joined: Mon Feb 14, 2005 9:17 am
Location: MV
Contact:

Post by sigey »

please take a look at this:

http://forums.cacti.net/about15639.html
looc
Cacti User
Posts: 110
Joined: Mon Aug 13, 2007 3:40 am

Post by looc »

sigey wrote:please take a look at this:

http://forums.cacti.net/about15639.html
thanks.
but i used cmd.php mod.
i need chmod cmd.php ?
Cacti Version - 0.8.7 & spine
Plugin Architecture - 1.3
Server Info - Windows 2003 EP
Web Server -IIS6.0
PHP - 5.2.3
MySQL - 4.1.10
RRDTool - 1.2.15
SNMP - 5.4.1
--------------------------
plugins:
reportit 0.5.1|monitor 0.8.1|thold 0.3.8
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests