Ad Widget

Collapse

Function icmppingsec. need to use fping -c3 not just -c1

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fableman
    Member
    • Oct 2007
    • 78

    #16
    Originally posted by richlv
    not icmppingsec exactly, but you could add userparameter which would call a script.
    a script would return something like "fping -c 3 localhost 2>&1 | tail -n 1 | awk '{print $8}' | cut -d/ -f2".

    of course, this is far from optimal solution - maybe it is easier to modify sources for now to always use 3 pings instead of one.


    I would love todo it my self with a external script that run on my zabbix server but...

    Cos external script dont work I cant do it..

    Parameter [icmp_host_ping.sh[]] is not supported by agent on host [www.google.se] Old status [0]



    ...


    # Location of external scripts
    ExternalScripts=/etc/zabbix/externalscripts/
    ----------------------
    drwx---r-x 2 root zabbix 4096 Oct 24 11:40 externalscripts
    -rwxrwxrwx 1 root zabbix 59 Oct 24 11:40 icmp_host_ping.sh
    ----------------------
    Item:

    Type= External check

    Key = icmp_host_ping.sh[]

    --------------------------------
    Log file:

    Parameter [icmp_host_ping.sh[]] is not supported by agent on host [www.google.se] Old status [0]

    Comment

    • welkin
      Senior Member
      • Mar 2007
      • 132

      #17
      Originally posted by fableman
      Kinda hard to install agents in switches or other network stuff that dont run a OS that dont allow and installations.
      I ment installing an agent on the Server which then has a userparameter for pinging. this should work but is far from an elegant solution.

      mfg
      welkin

      Comment

      • fableman
        Member
        • Oct 2007
        • 78

        #18
        Originally posted by welkin
        I ment installing an agent on the Server which then has a userparameter for pinging. this should work but is far from an elegant solution.

        mfg
        welkin

        Dont I need External script to work todo that ?

        Comment

        • welkin
          Senior Member
          • Mar 2007
          • 132

          #19
          No you don“t. From what i understand "External Script" is a script/program which is executed by the ZabbixServer. In contrast "UserParameter" is a command which is executed by a zabbix_agent on the host. So you can easily install an agent on your zabbix server and have this agent ping the remote hosts. Actually this is just a workaround because "ExternalScripts" don't work!
          For a quick solution look around for "UserParameter" in the Documentation.

          mfg
          welkin

          Comment

          • Sasha
            Zabbix developer
            • Sep 2007
            • 60

            #20
            It has been improved in release 1.5 rev. 5511.
            ZABBIX Developer
            Riga, Latvia

            Comment

            • hughmcl
              Junior Member
              • Oct 2008
              • 20

              #21
              Not able to get icmppingsec or icmpping to work on proxy.

              1) CentOS 5.4 Linux with Zabbix agent 1.8.2
              2) fping installed with suid bit set
              3) fping verified working with zabbix user on proxy:-
              /usr/local/sbin/fping 192.168.254.66 -c3
              192.168.254.66 : [0], 84 bytes, 11.8 ms (11.8 avg, 0% loss)
              192.168.254.66 : [1], 84 bytes, 12.6 ms (12.2 avg, 0% loss)
              192.168.254.66 : [2], 84 bytes, 12.7 ms (12.4 avg, 0% loss)

              192.168.254.66 : xmt/rcv/%loss = 3/3/0%, min/avg/max = 11.8/12.4/12.7


              If I set up host with icmppingsec or icmpping i get "-" as response, don't get ping times!

              Comment

              Working...