problem changing the user (because of php permission ??)

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
spoofiz
Posts: 42
Joined: Tue Feb 28, 2006 5:37 am
Location: Koeln - D

problem changing the user (because of php permission ??)

Post by spoofiz »

I used to be "root" to execute php poller.php in the crontab, I changed to cactiuser

--> */5 * * * * cactiuser php /var/www/html/cacti/poller.php > /dev/null 2>&1

(also did chown -R cactiuser rra/ log/) ... but cacti is not working anymore since (no graphing + all host DOWN)


Executing php poller.php with cactiuser give me those errors :

Code: Select all

PHP Warning:  socket_create(): Unable to create socket [1]: Operation not permitted in /var/www/html/cactiThold/lib/ping.php on line 117
PHP Warning:  socket_set_block() expects parameter 1 to be resource, boolean given in /var/www/html/cactiThold/lib/ping.php on line 119
PHP Warning:  socket_create(): Unable to create socket [1]: Operation not permitted in /var/www/html/cactiThold/lib/ping.php on line 117
PHP Warning:  socket_set_block() expects parameter 1 to be resource, boolean given in /var/www/html/cactiThold/lib/ping.php on line 119
PHP Warning:  socket_create(): Unable to create socket [1]: Operation not permitted in /var/www/html/cactiThold/lib/ping.php on line 117
PHP Warning:  socket_set_block() expects parameter 1 to be resource, boolean given in /var/www/html/cactiThold/lib/ping.php on line 119

could it be caused by the plugin Thold ? ..


Please could someone help me to solve this little prob..
cacti 0.8.6i | cmd.php / Plugin arch + Thold
mysql 5.0.18 | net-snmp 5.1.2-11 | rrdtool 1.2.13 | apache 2.2.0 | php 5.1.4 | RH4EL
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Yea, looks like a thold error. Moving to that forum.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests