Ad Widget

Collapse

ping command fails from right click - ping in 4.0?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tserreyn
    Junior Member
    • Jun 2012
    • 26

    #1

    ping command fails from right click - ping in 4.0?

    When I right click on a host and run the ping command it says it couldn't execute script, but obviously did as it has the output?
    • PING 50.254.118.93 (50.254.118.93) 56(84) bytes of data.
    • --- 50.254.118.93 ping statistics ---
    • 3 packets transmitted, 0 received, 100% packet loss, time 2015ms
    • Cannot execute script
    • /bin/ping -c 3 50.254.118.93 2>&1

    This is an upgraded 3.4.12 -> 4.0.0 zabbix server.

    Worked before, doesn't with 4.0.

    Is anyone else seeing this?
  • vso
    Zabbix developer
    • Aug 2016
    • 190

    #2
    This means that ping returned exit code other than 1, it should be fixed in default zabbix installation.
    It should be:
    Code:
    ping -c 3 {HOST.CONN}; case $? in [01]) true;; *) false;; esac
    Last edited by vso; 09-10-2018, 15:17.

    Comment

    Working...