Ad Widget

Collapse

Smokeping replacement?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    Smokeping replacement?

    So I have been trying to get rid of all our special-purpose monitoring tools and use zabbix instead.

    So far things have been going pretty well in replacing the functionality of nagios and cacti and smokeping, and things are typically better under zabbix than under a special purpose tool.

    One question I had was -- how do I replace smokeping's 'send a bunch of pings and graph both the latency *and* packet loss' probe in a single test? As far as I can tell, I need to send 6 packets to measure latency, then another 6 to measure packet loss.

    What am I missing?

    #2
    Hi
    Clarifying: you want to send ex. 6 pings and get average value of latency and packet loss?

    Ex.

    ping 10.0.0.1
    Avg latency: 52 m/s
    Packet loss: 0 %

    Is that what you want to measure?

    Bests,
    Grzegorz

    --
    Wdrożenia Zabbix - Warszawa
    www.mbs-it.pl

    Comment


      #3
      So ideally it would allow me to do things like send 6 large pings and 6 small pings, evenly distributed over 120 seconds -- and report latency and packet loss over that interval of time. As far as I can tell, I can send 6 large and 6 small, and record the latencies; then I can send another 6 large and 6 small and record the packet loss, but I can't observe both the latencies and losses from the same packets.

      So the graph would be something like
      6 large packets 17% packet loss, 200ms average latency, 140ms min and 250ms max
      6 small packets 0% packet loss, 100ms average latency, 60ms min and 110ms max

      And the zabbix server will have sent 12 packets total.
      Last edited by culrich; 25-09-2012, 01:57.

      Comment


        #4
        Hi
        I will prepare for you that config tiil tomorrow

        Best,
        Grzegorz
        www.mbs-it.pl

        Comment


          #5
          Super! Thanks!

          Comment


            #6
            OK, here you are.
            This is manual for 2.0.2 zabbix version.

            Go to /usr/local/share/zabbix/externalscripts/
            Put there attached script with the same name 'zbxsmokeping'

            Do shell command
            # chmod 755 zbxsmokeping

            Import attached template.
            Assign template to your hosts.
            Have fun.

            Script:
            http://www.mbs-it.pl/inne/zbxsmokeping

            Template:
            http://www.mbs-it.pl/inne/zbx_export..._smokeping.xml

            Attention: This external check will NOT work in 2.0.3 version because of some bug: https://support.zabbix.com/browse/ZBX-5521
            Wait for version 2.0.4 if you want use this external check.




            Bests,
            Grzegorz

            --
            Wdrożenia, usługi IT - Warszawa
            www.mbs-it.pl

            Comment


              #7
              Maybe some description:

              This procedure add External script with format:
              zbxsmokeping[{HOST.IP},6,1000,68,{HOST.HOST}]

              Where the parameter means:
              1 - IP host we want to ping (macro {HOST.IP}, we want to ping host, which has this template connected)
              2 - How many ping we want to send (6 times)
              3 - What is interval between pings (1000 ms = 1sec)
              4 - How big the ping is in bytes (standard ping have 69 bytes)
              5 - In my procedure it should be always macro: {HOST.HOST} (send to itself)

              Bests,
              Grzegorz

              --
              Wdrożenia, usługi IT - Warszawa
              www.mbs-it.pl

              Comment


                #8
                Thank you!!

                Hi Grzegorz,
                Very cool Template and very usefull!

                Many thanks for this it helps me to do better monitoring of "shaky links" with zabbix.

                Best regards from switzerland,
                Peter

                Comment


                  #9
                  I confirmed, this working with no problem on 2.0.4+ version.

                  Bests,
                  Grzegorz

                  --
                  Wdrożenia Zabbix - Warszawa
                  www.mbs-it.pl

                  Comment


                    #10
                    Hello, I'm pretty new to zabbix. I've tried to use your smokeping template, made all as it stated in your message. But I've see no data in graph.
                    Where should I look for errors, looking into /var/log/zabbix/zabbix-server.log didn't help

                    Comment


                      #11
                      Hi,
                      First
                      - check if the script has 755 mode

                      Next:
                      Go to /usr/local/share/zabbix/externalscripts/ and run the script with parameters:

                      ./zbxsmokeping 127.0.0.1 6 1000 68 localhost

                      and read the output (or put the output on the forum).

                      Bests,
                      Grzegorz

                      --
                      Wdrożenia Zabbix - Warszawa
                      www.mbs-it.pl

                      Comment


                        #12
                        One problem is solved, thanks. My Zabbix is installed on Debian, so zabbix_sender is not in the /usr/local/, I've changed path in script. Now it runs:

                        ./zbxsmokeping 127.0.0.1 6 1000 68 localhost
                        1

                        But again no data in graph...

                        Comment


                          #13
                          I have Zabbix 2.0.6 on Debian 7.1. I want to use this script but I cant find aby zabbix/externalscripts folder on my disk.

                          I have zabbix-server-mysql installed from repository and php frontend copied to nginx vhost.

                          Zabbix works just fine but I cant find this folder and add this script...

                          Comment


                            #14
                            OK

                            I have the same problem, when I run it from shell it gives me data in Zabbix, but Zabbix cant run it itself and get data.

                            How make it work?

                            Comment


                              #15
                              Set item type of information to Text then you will see the output (maybe some useful error message).

                              But, rememberer that, in this solution, zabbix_sender is used, so you have to have (in zabbix server configuration) zabbix traper active (more than 1).

                              Every time you use the script:
                              ./zbxsmokeping 127.0.0.1 6 1000 68 localhost
                              4 new values are send to server so should be visible on SmokeItems.

                              BR,
                              Grzegorz

                              Comment

                              Working...
                              X