Ad Widget

Collapse

agent scripts misbehaving

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bartonn
    Junior Member
    • Feb 2008
    • 7

    #1

    agent scripts misbehaving

    I am running 1.4.5 on the server.

    I have put some scripts for the agent (running on the server) to check at the end of the zabbix_agentd.conf file

    UserParameter=PINGnet1,php /var/www/html/zabbix/scripts/ping.php 137.203.xxx.xxx
    UserParameter=PINGnet2,php /var/www/html/zabbix/scripts/ping.php 72.248.xxx.xxx
    UserParameter=PINGnet3,php /var/www/html/zabbix/scripts/ping.php 72.248.xxx.xxx
    UserParameter=PINGnet4,php /var/www/html/zabbix/scripts/ping.php 69.26.xxx.xxx
    UserParameter=PINGnet5,php /var/www/html/zabbix/scripts/ping.php 69.26.xxx.xxx

    This one is a simple script that pings some network equipment, if it is up it returns a 1 if not a zero.

    For one of these zabbix is storing a zero (down) but when I run the script from the command line I get a one. The other instances are storing correct values.

    Is this a bug?

    -Barton
    Last edited by bartonn; 15-04-2008, 23:00.
  • bartonn
    Junior Member
    • Feb 2008
    • 7

    #2
    Nevermind. It had to do with non root user (zabbix) and icmp ping. This is non zabbix related.

    Comment

    Working...