Ad Widget

Collapse

!!! How to setup a monitor to see a connection status between two servers!!!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wr283625
    Junior Member
    • Jul 2015
    • 1

    #1

    !!! How to setup a monitor to see a connection status between two servers!!!

    ************************************************** *****
    I'm new to zabbix and very interested in using zabbix as our main monitoring tool. This morning I found a problem about connection between two servers.

    ************************************************** ******
    As the simple check items, we can monitor any server from the zabbix server with the icmpping command. But that just from our zabbix server. So how to see the connection status between two other servers or between servers and firewall or any equipment on the dash boarb of the zabbix server

    ********************************************
    Thanks so much and looking forward to hear the solution

    Cheers,
    Warangkhana
  • batchenr
    Senior Member
    • Sep 2016
    • 440

    #2
    Originally posted by wr283625
    ************************************************** *****
    I'm new to zabbix and very interested in using zabbix as our main monitoring tool. This morning I found a problem about connection between two servers.

    ************************************************** ******
    As the simple check items, we can monitor any server from the zabbix server with the icmpping command. But that just from our zabbix server. So how to see the connection status between two other servers or between servers and firewall or any equipment on the dash boarb of the zabbix server

    ********************************************
    Thanks so much and looking forward to hear the solution

    Cheers,
    Warangkhana
    You can make bash scripts to whatever you need or make ping check btween servers\fw what ever u need.

    Comment

    • ovas
      Senior Member
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Apr 2017
      • 138

      #3
      Hello!

      As an example, I added an SSH agent text item with key ssh.run[fping.adjastent,,22,] and executed script like
      /usr/sbin/fping 192.168.3.227
      Returned value is text and displays like: "192.168.3.227 is alive".

      It does display connection status between the Zabbix server and remote host as you require, but holds little value. If we adjust the executed script to:
      /usr/bin/ping 192.168.3.227 -c4 -q | grep rtt
      The returned value is text and displays like: "rtt min/avg/max/mdev = 0.420/0.645/0.897/0.215 ms"

      Which actually gives more data. But it is only text, so in order to extract only numeric value (and build graphs) you would need to append sed/awk on top of the executed command. to extract the average value. For example (I'm pretty sure this can be shortened, but that's my level, sorry):
      /usr/bin/ping 192.168.3.227 -c4 -q | grep rtt | awk '{print $4}' | grep -Po "(?<=/)[^/]*(?=/)" | awk 'NR==1'
      The returned value is numeric float and displays like: 0.751

      Now that this item is numeric type of information it actually may do some good at visualizing connectivity between two hosts.

      Comment

      Working...