[Check_mk (english)] Ping time

Hi,

I have a little problem. My boss wants to see the avg. ping time in Nagvis/Multisite.

Sounds not really spectacular, but:

if and if64 (+ if.include) don’t have it, so i need to code it myself

the easy way in python would include subprocess and fping as external tool (not really efficient)

the harder way would be working with timedelta (or something similar) and sockets (never worked with it before)

there is a pyping lib, but it doesn’t look good to me, so i would rather not install it

And now the big question:

What would be the least painfull way to accomplish this goal? Some ICMP lib?

I would rather not build stuff into the if checks, so the idea is to write a new check which is only able to return the avg. ping time and add it to nagvis as a additional service.

Mit freundlichen Grüßen

i.A. Jakub Tusz

image001.jpg

···

Telefon:
Fax:
E-Mail:

+49(721)6107 5905
+49(721)6107 5909
jakub.tusz@vbk.karlsruhe.de

Kfm. Geschäftsführer: Dr. Alexander Pischon, Techn. Geschäftsführer: Ascan Egerer

Vorsitzender des Aufsichtsrates: Oberbürgermeister Dr. Frank Mentrup

Amtsgericht Mannheim HRB 107847


Looks like the standard host check (ping) is already collecting the
data: (rta)

rta=7.988ms;2000.000;3000.000;0; pl=0%;80;100;; rtmax=9.730ms;;;; rtmin=5.992ms;;;;
···

On 7/7/2015 8:43 AM, Tusz, Jakub wrote:

Hi,

      I have a little problem. My boss wants to

see the avg. ping time in Nagvis/Multisite.

Sounds not really spectacular, but:

  1.        ������
       if and if64 (+ if.include) don�t
    

have it, so i need to code it myself

  1.        ������
       the easy way in python would
    

include subprocess and fping as external tool (not really
efficient)

  1.        ������
       the harder way would be working
    

with timedelta (or something similar) and sockets (never
worked with it before)

  1.        ������
       there is a pyping lib, but it
    

doesn�t look good to me, so i would rather not install it

And now the big question:

      What would be the least painfull way to

accomplish this goal? Some ICMP lib?

      I would rather not build stuff into the if

checks, so the idea is to write a new check which is only able
to return the avg. ping time and add it to nagvis as a
additional service.

        Mit freundlichen Gr��en

        i.A. Jakub Tusz

        Jakub Tusz
        Abt.: V5-IT - Verwaltung | Informationstechnologie

        VBK - Verkehrsbetriebe Karlsruhe GmbH
        Tullastra�e 71, D-76131 Karlsruhe
        Postfach 1140, D-76001 Karlsruhe
                Telefon:
                Fax:
                E-Mail:
                +49(721)6107 5905
                +49(721)6107 5909
                                      jakub.tusz@vbk.karlsruhe.de
        Kfm. Gesch�ftsf�hrer: Dr. Alexander Pischon, Techn.

Gesch�ftsf�hrer: Ascan Egerer

        Vorsitzender des Aufsichtsrates: Oberb�rgermeister Dr. Frank

Mentrup

        Amtsgericht Mannheim HRB 107847


    Diese E-Mail kann

vertrauliche und/oder rechtlich gesch�tzte Informationen
enthalten. Wenn Sie nicht der richtige Adressat sind, so bitten
wir Sie, sofort den Absender zu informieren und diese E-Mail
vollst�ndig zu l�schen. Das unerlaubte Kopieren, Weiterleiten,
Verbreiten oder Verwenden dieser E-Mail und deren Inhalte ist
nicht gestattet.




_______________________________________________
checkmk-en mailing list
We�ll meet in Munich for the 2nd Check_MK Conference!
Book your place now and be part of it.
October 18th-20th, 2015

checkmk-en@lists.mathias-kettner.dehttp://lists.mathias-kettner.de/mailman/listinfo/checkmk-enhttp://mathias-kettner.com/conference