Ad Widget

Collapse

zabbix_agentd not work with php script on centos

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hollychen503
    Junior Member
    • Jul 2013
    • 1

    #1

    zabbix_agentd not work with php script on centos

    Hi,
    I want to use zabbix to monitor mysql with a php script.
    but no luck the zabbix_agentd always run into timeout.

    I traced the code and found zabbix_agentd just call execl to ask /bin/sh to invoke the command.

    then I try to run the command "/bin/sh -c php -v" in my linux ssh terminal and nothing return!

    I know it's not the zabbix_agentd's fault, but how can I fix it?

    OS: centos 6.3, 64bit + php 5.3.3 cli

    many thanks for your help!
  • vic
    Member
    • Jul 2013
    • 58

    #2
    Originally posted by hollychen503
    Hi,
    I want to use zabbix to monitor mysql with a php script.
    but no luck the zabbix_agentd always run into timeout.

    I traced the code and found zabbix_agentd just call execl to ask /bin/sh to invoke the command.

    then I try to run the command "/bin/sh -c php -v" in my linux ssh terminal and nothing return!

    I know it's not the zabbix_agentd's fault, but how can I fix it?

    OS: centos 6.3, 64bit + php 5.3.3 cli

    many thanks for your help!
    Not exactly sure what you are trying to do but if you want zabbix-agentd to run something on the remote machine have you set up sudoer?

    Comment

    Working...