Ad Widget

Collapse

External check

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mike13
    Member
    • Apr 2010
    • 30

    #16
    Originally posted by ruswold
    Are you set in zabbix_server.conf timeout = 30 seconds?
    And restart zabbix_server after changes in config file

    This script work in my zabbix

    If it's not help for you try set value type of item as text and say any changes.
    Which one is working on your zabbix? your script or the modified script with open(PIPE,"/usr/sbin/fping -I " . $ARGV[1]. " ".$ARGV[0]. " 2>&1|"); ?

    Yes, i set the timeout = 29, and i restarted zabbix server.

    For your information your script [with open(PIPE,"/usr/sbin/fping $ARGV[1] 2>&1|");] is working fine. The problem occurs only when i integrete the option fping -I




    Do you have any idea?

    Many thaks,
    Mike

    Comment

    • ruswold
      Senior Member
      • Mar 2010
      • 210

      #17
      if you directly write in that script:
      open(PIPE,"/usr/sbin/fping -I eth1.155 192.168.49.124 2>&1|");

      that you see in log?

      My version of zabbix is pre 1.8.3

      I read http://www.digipedia.pl/man/doc/view/fping.8/ and don't see option -I interface.
      Last edited by ruswold; 28-06-2010, 18:30.

      Comment

      • mike13
        Member
        • Apr 2010
        • 30

        #18
        Originally posted by ruswold
        if you directly write in that script:
        open(PIPE,"/usr/sbin/fping -I eth1.155 192.168.49.124 2>&1|");

        that you see in log?

        My version of zabbix is pre 1.8.3

        I read http://www.digipedia.pl/man/doc/view/fping.8/ and don't see option -I interface.
        Hi ruswold,

        Finally, I found out that it's simply the option -I is buggy! You were right, the official fping source code hasn't got the option -I. However the debian developers have added this option to their distro. See:http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=439014

        i've just changed my initial bash script as follows:

        Code:
        #!/bin/bash
        /bin/ping -c3 -I $2 $1 > /dev/null 2>&1
        if [ $? == 0 ]; then
        	echo 1;
        	exit 1;
        	
        else
        	echo 0;
        	exit 0;
        	
        
        fi
        Now it is working fine. The only thing is that the ping is very slower than fping. I've got nearly 2000 hosts to monitor using external check, my question : Does zabbix handle large number of hosts? And is there a better way to reduce the latency?

        Anyhow, I appreciate your help efforts. Many thanks for your time!
        Mike

        Comment

        • ruswold
          Senior Member
          • Mar 2010
          • 210

          #19
          Does zabbix handle large number of hosts? And is there a better way to reduce the latency?
          Yes, support.
          See http://www.zabbix.com/documentation/...ted_monitoring

          Comment

          Working...