Discussion:
[Check_mk (deutsch)] Host custom variables in Notification Email ausgeben
Christoph Weidmann via checkmk-de
2018-10-24 06:43:40 UTC
Permalink
Hallo Liste,

wir haben unseren Hosts im Wato benutzerdefinierte Parameter gegeben, z.B. ein Feld namens „MainOperator“ in dem das NamenskÃŒrzel der Kollegin/des Kollegen steht, damit wir den Client schneller zuordnen können (die Hostnamen sind aus anderen GrÃŒnden nicht sprechend).



In der Notification Rule haben wir fÃŒr die Email Betreffzeile so etwas wie:



ALARM CHECK_MK: $HOSTALIAS$ (Service:$SERVICEDESC$)



konfiguriert. Dort wÃŒrden wir jetzt gerne auch die Custom Variable mit ausgeben (also sowas wie $HOST_CUSTOM_VARIABLE_VALUES$).

Weiß jemand wie man das macht?

Ginge das auch gezielt fÃŒr den Wert einer einzigen Variable (falls man mehrere Custom Variablen hat)?

Im Internetz wird auf die painter.py im web/plugin/display Verzeichnis verwiesen, ich werde da aber nicht wirklich schlau draus, was ich da genau konfigurieren muss.



Im CPU – Inventory haben wir die Spalte „Host custom variables“ eingeblendet, dort sehen wir dann so einen Eintrag wie: „MAINOPERATOR Christoph Weidmann“.



Ich hoffe, dass ich mich verstÀndlich ausgedrÃŒckt habe 😉 



Bescht Gréiss | Meilleures salutations | Mit freundlichen GrÌssen | Best Regards

Christoph WEIDMANN

Leiter IT

25, rue G-D Charlotte | L-7520 Mersch | Luxembourg

Tel.: +352 32 00 72 – 32 | Fax.: +352 32 00 72 – 35

<http://www.electris.lu/>



ELECTRIS par Hoffmann FrÚres; S.à r.l. et Cie s.e.c.s. au capital de 206.220 €

Matr. TVA 1981 2100 036

Ident. TVA LU 10280712

R.C. B 8262

Internet communications are not secure and therefore Hoffmann FrÚres S.à.r.l. et Cie s.e.c.s does not accept legal responsibility for the contents of this message. The information contained in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Nothing in the message is capable or intended to create any legally binding obligations on either party and it is not intended to provide legal advice.
Loading...