Ad Widget

Collapse

Win32 Agent Host To Host Ping Test

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • claytronic
    Member
    • Nov 2006
    • 52

    #1

    Win32 Agent Host To Host Ping Test

    Hello Fellow Zabbix Users,

    I've created a PingTest.exe in .Net 2.0 that will allow the Zabbix Agent to ping remote hosts. It returns a 1 for successful pings. This way you can monitor a host's connectivity to other machines. The source code is included for anyone the wants to help improve it.

    Note For those of you running 1.1.6 like me, you'll need to switch to jlh's patched Win32 Zabbix Agent. This will allow you to use wildcards.

    1. Add the following line with the correct path to your zabbix_agentd.conf.
    Code:
    UserParameter = localPing[*],C:\Zabbix\pingTest.exe $1
    2. Create an item with target to ping from the monitored server.
    localPing[target_host]

    3. Then create a trigger to monitor that ping.
    {FM1-WEB-A:localPing[target_host].last(0)}=0
    Attached Files
  • bluelinq
    Member
    • Feb 2008
    • 44

    #2
    I just found this link yesterday and it is working perfectly for our needs. At times though, it seems that it creates some false positives. You can do a testping servera and it fails and if you do it again it works so it cannot be the vpn tunnels going down and up that quickly.

    Is there a way to add a small retry delay or a way to do this with a regular ping command?

    Regards,

    Comment

    Working...