Ad Widget

Collapse

In/Out connection speed measurement

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jancs
    Member
    • Jul 2014
    • 30

    #1

    In/Out connection speed measurement

    Hi!

    Is it possible to monitor connection speed parameters using zabbix, not involving web-scenarios?

    It is intended to run such test once or twice a day at time when no one uses internet.

    Janis
  • aib
    Senior Member
    • Jan 2014
    • 1615

    #2
    Do you mind to use External Checks?
    Sincerely yours,
    Aleksey

    Comment

    • jancs
      Member
      • Jul 2014
      • 30

      #3
      I thought about external scripts, but as far as I currently can imagine, the measurement will require creation of some out-of-zabbix-framework test data flow. The only secure enough I can imagine is scp/sftp data transfer, but that will create some enc/dec overhead, influencing results considerable in case of low profile clients. It could be neglected, but it also requires some dedicated test user on both server and agent systems.

      Janis

      Comment

      • jancs
        Member
        • Jul 2014
        • 30

        #4
        Hi!

        Finally I got it done.

        The solution involves iperf3 and Zabbix trapper type items.

        The resulting script for running from crontab - attached.

        Janis
        Attached Files

        Comment

        • aib
          Senior Member
          • Jan 2014
          • 1615

          #5
          Originally posted by jancs
          Hi!

          Finally I got it done.

          The solution involves iperf3 and Zabbix trapper type items.

          The resulting script for running from crontab - attached.

          Janis
          Thank you for your script!
          Is it correct that you are using iperf3 server, installed outside of your perimeter (somewhere in Internet-space) ?
          Sincerely yours,
          Aleksey

          Comment

          • jancs
            Member
            • Jul 2014
            • 30

            #6
            Originally posted by aib
            Thank you for your script!
            Is it correct that you are using iperf3 server, installed outside of your perimeter (somewhere in Internet-space) ?
            Actually, in my case iperf3 server resides on the Zabbix server as I have only two problematic connections to monitor. On both the script is scheduled so that their execution time does not overlap. I am absolutely sure that the traffic to my "reference" server will never be congested even if the measurements will overlap by some accident.

            From the iperf3 page I got the info that there are some public iperf3 servers, which can be also be used, but in such case you never can be sure in the results you get due to the unknown concurrent measurements.

            If thinking about monitoring larger infrastructure, I think iperf3 server has to be placed on dedicated computer, it has not to be powerful (I do not observe high CPU load), just the high quality internet connection is important.

            Janis

            Comment

            • jancs
              Member
              • Jul 2014
              • 30

              #7
              Originally posted by aib
              Thank you for your script!
              Is it correct that you are using iperf3 server, installed outside of your perimeter (somewhere in Internet-space) ?
              as to the perimeter - my "perimeter" is Latvia as my Zabbix agents reside in many internet providers' networks

              Comment

              • aib
                Senior Member
                • Jan 2014
                • 1615

                #8
                OK, I see what you meant.
                Anyway, I configured your script to work with "public" iperf server.
                It works and I have one more tool to check the bandwidth.
                Sincerely yours,
                Aleksey

                Comment

                • jancs
                  Member
                  • Jul 2014
                  • 30

                  #9
                  Hi!

                  I made a version including optional UDP bandwidth measurement.

                  Janis
                  Attached Files

                  Comment

                  Working...