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 ?
how can run cacti by root?
Moderators: Developers, Moderators
how can run cacti by root?
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
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
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
*/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
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
Who is online
Users browsing this forum: No registered users and 5 guests