Ad Widget

Collapse

Ping always returns 0

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alexanderfoti
    Junior Member
    • Aug 2011
    • 17

    #1

    Ping always returns 0

    Zabbix server 1.8.6

    Hi all

    I cannot monitor hosts using simple ping.

    IT always returns 0

    my logs show

    /usr/sbin/fping -q -C3 8.8.8.8 2>&1 </tmp/zabbix_server_21951.pinger

    But when running this from the command line I get:

    /tmp/zabbix_server_21951.pinger: No such file or directory

    How is that possible, it is meant to create the file!

    Larger snippet:


    21951:20120823:120653.573 In get_pinger_hosts()
    21951:20120823:120653.573 In substitute_simple_macros (data:'icmpping[8.8.8.8]')
    21951:20120823:120653.573 In add_icmpping_item() addr=8.8.8.8 count=3 interval=0 size=0 timeout=0
    21951:20120823:120653.573 End of get_pinger_hosts():1
    21951:20120823:120653.573 In process_pinger_hosts()
    21951:20120823:120653.573 In add_pinger_host() addr=8.8.8.8
    21951:20120823:120653.573 In do_ping(hosts_count:1)
    21951:20120823:120653.573 In process_ping() [hosts_count:1]
    21951:20120823:120653.573 /tmp/zabbix_server_21951.pinger
    21951:20120823:120653.574 /usr/sbin/fping -q -C3 2>&1 </tmp/zabbix_server_21951.pinger
    21951:20120823:120653.577 End of process_ping()
    21951:20120823:120653.577 End of do_ping():SUCCEED


    Any ideas, this is such a simple thing and its driving me mental!
    Last edited by alexanderfoti; 23-08-2012, 13:21.
  • alexanderfoti
    Junior Member
    • Aug 2011
    • 17

    #2
    Also, watching the /tmp folder, no pinger files are created.

    Comment

    • dafyre
      Member
      • Sep 2008
      • 44

      #3
      Pinger Files

      Hey Alexander,

      I just noticed that I am having this problem as well.
      I have several hosts that are showing as being "Down"
      however, if I fping them by hand everything works.

      I just noticed on my server that the pinger files *are*
      created, but they are deleted rather quickly as well
      (a matter of seconds). I'm running 2.0.2.

      See Yas!

      Comment

      Working...