Discussion:
[Check_mk (deutsch)] Warnung bei "Notifications Off"?
Tom Tretbar
2018-10-12 08:34:20 UTC
Permalink
_______________________________________________
checkmk-de mailing list
checkmk-***@lists.mathias-kettner.de
Verwaltung & Abmeldung unter
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-de
Simon Müller
2018-10-12 09:27:51 UTC
Permalink
Hallo Tom,


der Service "OMD <sitename> performance" wird doch automatisch kritisch sobald die Notifications per Master control deaktiviert wurden.


Sieht dann in etwa so aus:

CRIT - Host Checks: 9.0/s, Service Checks: 15.7/s, Process Creations: 0.0/s, Livestatus Connects: 0.0/s, Livestatus Requests: 1.3/s, Log Messages: 0.0/s, Average check latency: 0.000s, Average Check_MK latency: 0.016s, Check helper usage: 0.0%, Check_MK helper usage: 2.0%, Livestatus usage: 25.0%, Livestatus overflow rate: 0.0/s, 50 Hosts, 1544 Services, Core version: Check_MK 1.4.0p35, Livestatus version: 1.4.0p35, Notifications are disabledCRIT

Viele Grüße
Simon Müller

PS: Natürlich musst du dafür den Monitoringhost auf einer Instanz monitoren, die noch Notifications schicken darf. ;)

________________________________
From: checkmk-de <checkmk-de-***@lists.mathias-kettner.de> on behalf of Tom Tretbar <***@gmx.de>
Sent: Friday, October 12, 2018 10:34 AM
To: checkmk-de
Subject: [Check_mk (deutsch)] Warnung bei "Notifications Off"?

Hallo,

vielleicht sehe ich den Wald vor lauter Bäumen nicht: Kann ich eine Warnung erzeugen, wenn Notifications ausgeschaltet sind (per Master Control)? Den Notification Spooler sehe ich, der läuft aber immer. Ich kriege es noch nicht mal hin, den Status auf der Kommandozeile oder per Webapi abzufragen, dann würde ich mir einen eigenen Check bauen. Hat jemand einen Tipp?


Danke schon mal.
So denn, Tom.


XMART IT Consulting GmbH
Gewerbepark Hardtwald 13
D-68723 Oftersheim
Germany
XMART Norway Offices
Karenslyst Allé 8B
N-0278 Oslo
Norway XMART Netherlands b.v.
Einsteinstraat 67
3316 GG Dordrecht
The Netherlands
XMART America Inc.
101 Hudson Street Suite 2100
Jersey City, NJ 07302
USA

XMART Asia
1 Fullerton Road
Singapore 049213
Singapore


XMART IT Consulting Sdn. Bhd.
A-17-3A, No.8, Jalan Kerinchi, Bangsar South,
59200 Kuala Lumpur, Federal Territory of Kuala Lumpur
Malaysia



Office: +49 6202 85 60 59 0
Mail: ***@xmart.de
Mobile: +49 151 14227541
Web: https://www.xmart.de


Court of Registry: Mannheim, HRB 422213
Managing Director: Thomas Martin

P Please consider the environment before printing this email.

The contents of the above mentioned e-mail are not legally binding. This e-mail contains confidential
and/or legally protected information. Please inform us if you have received this e-mail by mistake
and delete it in such a case. Each unauthorized reproduction, disclosure, alteration, distribution
and/or publication of this e-mail is strictly prohibited.
Tom Tretbar
2018-10-12 11:11:54 UTC
Permalink
_______________________________________________
checkmk-de mailing list
checkmk-***@lists.mathias-kettner.de
Verwaltung & Abmeldung unter
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-de
Simon Müller
2018-10-12 11:54:29 UTC
Permalink
Wie im Check Output sichtbar benutzen wir 1.4.0p35 (CEE), aber ich meine mich daran erinnern zu können, dass dieser Check auch schon bereits mit Nagioscore(CRE) existierte. Ich habe die entsprechende Passage aus dem Agent herausgesucht:


# Get stats about OMD monitoring cores running on this machine.
# Since cd is a shell builtin the check does not affect the performance
# on non-OMD machines.
if cd /omd/sites
then
echo '<<<livestatus_status:sep(59)>>>'
for site in *
do
if [ -S "/omd/sites/$site/tmp/run/live" ] ; then
echo "[$site]"
echo -e "GET status" | \
waitmax 3 /omd/sites/$site/bin/unixcat /omd/sites/$site/tmp/run/live
fi
done
echo '<<<mkeventd_status:sep(0)>>>'
for site in *
do
if [ -S "/omd/sites/$site/tmp/run/mkeventd/status" ] ; then
echo "[\"$site\"]"
echo -e "GET status\nOutputFormat: json" \
| waitmax 3 /omd/sites/$site/bin/unixcat /omd/sites/$site/tmp/run/mkeventd/status
fi
done
fi

Die Check Man sagt folgendes:

This checks retrieves various performance data of an OMD monitoring core by using MK Livestatus. This data tells you mainly about the performance of the core, the number of checks it executes per second and so on.
Its second task is to determine whether some settings have been disabled (e.g. notifications). Which disabled setting leads to which state can be configured via check parameters.


Viele Grüße

Simon Müller




XMART IT Consulting GmbH
Gewerbepark Hardtwald 13
D-68723 Oftersheim
Germany
XMART Norway Offices
Karenslyst Allé 8B
N-0278 Oslo
Norway XMART Netherlands b.v.
Einsteinstraat 67
3316 GG Dordrecht
The Netherlands
XMART America Inc.
101 Hudson Street Suite 2100
Jersey City, NJ 07302
USA

XMART Asia
1 Fullerton Road
Singapore 049213
Singapore


XMART IT Consulting Sdn. Bhd.
A-17-3A, No.8, Jalan Kerinchi, Bangsar South,
59200 Kuala Lumpur, Federal Territory of Kuala Lumpur
Malaysia



Office: +49 6202 85 60 59 0
Mail: ***@xmart.de
Mobile: +49 151 14227541
Web: https://www.xmart.de


Court of Registry: Mannheim, HRB 422213
Managing Director: Thomas Martin

P Please consider the environment before printing this email.

The contents of the above mentioned e-mail are not legally binding. This e-mail contains confidential
and/or legally protected information. Please inform us if you have received this e-mail by mistake
and delete it in such a case. Each unauthorized reproduction, disclosure, alteration, distribution
and/or publication of this e-mail is strictly prohibited.
________________________________
From: Tom Tretbar <***@gmx.de>
Sent: Friday, October 12, 2018 1:11 PM
To: Simon Müller
Cc: checkmk-de
Subject: Aw: Re: [Check_mk (deutsch)] Warnung bei "Notifications Off"?

Hallo,

Danke für die Info. An sowas kann ich eben auch erinnern, sehe das aber nirgendwo:

$ cmk -L | grep omd
omd_apache tcp Apache access statistics of OMD sites
omd_status tcp Status of OMD sites

Das sind auch die Services, die ich bei meinen Instanzen (mehrere Dutzend) sehe. Das Performance-Teil scheint komplett zu fehlen.

Welche Version setzt Du ein?

So denn, Tom.




Gesendet: Freitag, 12. Oktober 2018 um 11:27 Uhr
Von: "Simon Müller" <***@xmart.de>
An: "Tom Tretbar" <***@gmx.de>, checkmk-de <checkmk-***@lists.mathias-kettner.de>
Betreff: Re: [Check_mk (deutsch)] Warnung bei "Notifications Off"?

Hallo Tom,



der Service "OMD <sitename> performance" wird doch automatisch kritisch sobald die Notifications per Master control deaktiviert wurden.



Sieht dann in etwa so aus:

CRIT - Host Checks: 9.0/s, Service Checks: 15.7/s, Process Creations: 0.0/s, Livestatus Connects: 0.0/s, Livestatus Requests: 1.3/s, Log Messages: 0.0/s, Average check latency: 0.000s, Average Check_MK latency: 0.016s, Check helper usage: 0.0%, Check_MK helper usage: 2.0%, Livestatus usage: 25.0%, Livestatus overflow rate: 0.0/s, 50 Hosts, 1544 Services, Core version: Check_MK 1.4.0p35, Livestatus version: 1.4.0p35, Notifications are disabledCRIT

Viele Grüße
Simon Müller

PS: Natürlich musst du dafür den Monitoringhost auf einer Instanz monitoren, die noch Notifications schicken darf. ;)

________________________________
From: checkmk-de <checkmk-de-***@lists.mathias-kettner.de> on behalf of Tom Tretbar <***@gmx.de>
Sent: Friday, October 12, 2018 10:34 AM
To: checkmk-de
Subject: [Check_mk (deutsch)] Warnung bei "Notifications Off"?

Hallo,

vielleicht sehe ich den Wald vor lauter Bäumen nicht: Kann ich eine Warnung erzeugen, wenn Notifications ausgeschaltet sind (per Master Control)? Den Notification Spooler sehe ich, der läuft aber immer. Ich kriege es noch nicht mal hin, den Status auf der Kommandozeile oder per Webapi abzufragen, dann würde ich mir einen eigenen Check bauen. Hat jemand einen Tipp?


Danke schon mal.
So denn, Tom.


XMART IT Consulting GmbH
Gewerbepark Hardtwald 13
D-68723 Oftersheim
Germany
XMART Norway Offices
Karenslyst Allé 8B
N-0278 Oslo
Norway XMART Netherlands b.v.
Einsteinstraat 67
3316 GG Dordrecht
The Netherlands
XMART America Inc.
101 Hudson Street Suite 2100
Jersey City, NJ 07302
USA

XMART Asia
1 Fullerton Road
Singapore 049213
Singapore


XMART IT Consulting Sdn. Bhd.
A-17-3A, No.8, Jalan Kerinchi, Bangsar South,
59200 Kuala Lumpur, Federal Territory of Kuala Lumpur
Malaysia






Office: +49 6202 85 60 59 0
Mail: ***@xmart.de
Mobile: +49 151 14227541
Web: https://www.xmart.de

Court of Registry: Mannheim, HRB 422213
Managing Director: Thomas Martin

P Please consider the environment before printing this email.

The contents of the above mentioned e-mail are not legally binding. This e-mail contains confidential
and/or legally protected information. Please inform us if you have received this e-mail by mistake
and delete it in such a case. Each unauthorized reproduction, disclosure, alteration, distribution
and/or publication of this e-mail is strictly prohibited.
Tom Tretbar
2018-10-12 13:30:01 UTC
Permalink
_______________________________________________
checkmk-de mailing list
checkmk-***@lists.mathias-kettner.de
Verwaltung & Abmeldung unter
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-de
Loading...