hi,
i configured zabbix_agentd.conf to extend agent possibilities for my system.
i made a /shell/php script toto.sh:
--------------------------
#!/usr/bin/php -q
<?
echo "1";
?>
---------------------------
in zabbix_agentd.conf:
UserParameter=toto.test,/zabbix/toto.sh
and i get a timeout in the log file when the script is called.
all runs ok if i run zabbix_agentd -t toto.test
still ok if i call the script as user zabbix from command line
i tried to set UserParameter=toto.test,php /zabbix/toto.php
and toto.php :
------------
<?echo "1";?>
------------
i even tried to call php from the script toto.sh :
/usr/bin/php -q /zabbix/toto.php
but still the same problem
it only works when toto.sh is a real shell, not using php
is there anything i can do ?
i configured zabbix_agentd.conf to extend agent possibilities for my system.
i made a /shell/php script toto.sh:
--------------------------
#!/usr/bin/php -q
<?
echo "1";
?>
---------------------------
in zabbix_agentd.conf:
UserParameter=toto.test,/zabbix/toto.sh
and i get a timeout in the log file when the script is called.
all runs ok if i run zabbix_agentd -t toto.test
still ok if i call the script as user zabbix from command line
i tried to set UserParameter=toto.test,php /zabbix/toto.php
and toto.php :
------------
<?echo "1";?>
------------
i even tried to call php from the script toto.sh :
/usr/bin/php -q /zabbix/toto.php
but still the same problem
it only works when toto.sh is a real shell, not using php
is there anything i can do ?
Comment