Ad Widget

Collapse

ping external host from agent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • newmoon
    Junior Member
    • Sep 2014
    • 2

    #1

    ping external host from agent

    Hi,

    We are running a typical zabbix server setup. A zabbix server and a couple linux servers that has zabbix agent installed and monitored by the zabbix server. However, my problem is there a way to check ping (icmppingsec maybe? ) in between linux_host A to linux_host B and output the result to the zabbix server coming from host A??

    I have tried simple check icmppingsec[<target>,<packets>,<interval>,<size>,<timeout>,<mo de>] but I found out that the ping is executed by the zabbix server itself and not the host A.


    Thanks for the help!
  • newmoon
    Junior Member
    • Sep 2014
    • 2

    #2
    graphing userparameters zabbix

    I have found a way to get the ping latency from the zabbix agent in order to ping an external host. I declared this parameter to the zabbix_agentd.conf

    Code:
    UserParameter=key_name[*],fping -e x.x.x.x | awk '{ print $4 }' | tr -d '('
    It outputs the response time, numeric value only. My next problem is how to make this command readable by zabbix server so that it will be viewable thru graph. On zabbix server the output is "no data" but under Hosts > Items, it is green and enabled.


    Thanks for help!

    Comment

    Working...