Discussion:
[Check_mk (english)] Adding nagios check to OMD installation of Check_MK
Ronald Prague
2015-04-30 08:47:42 UTC
Permalink
Hi all;

I'm using the OMD installation of check_mk and so far its working
fantastic, but I'm a little lost as to how to add machine specific checks
for my extreme switches (https://github.com/barryo/nagios-plugins for
example) which were written for nagios.

I'd assume the plugins would be installed in
/opt/omd/sites/<sitename>/lib/nagios/plugins Is this correct?

If so, once they're installed how would I add those specific service checks
to check_mk?

I found documentation here (
https://mathias-kettner.de/checkmk_legacy_checks.html ) about adding legacy
checks, I'm assuming this would be done in
/opt/omd/sites/<sitename>/etc/check_mk/main.mk?
Tusz, Jakub
2015-04-30 09:17:17 UTC
Permalink
I'd assume the plugins would be installed in /opt/omd/sites/<sitename>/lib/nagios/plugins Is this correct?
Yes, but why do you not use the buildin scripts in Check_MK? They can solve the most of your problems. But if there is no buildin solution:

1. „Host & Service Parameters“

2. „Active Checks“

3. „Classical active and passive Monitoring checks“

4. Create a new rule -> name in „Service description“ and check command in „Command Line“ (+ the normal config for host/service matching)

Then it should work.
But try the Inventory on your switches (set the host properties to „Network Device“ and make a full scan on it)

Mit freundlichen GrÌßen

i.A. Jakub Tusz
---------------------------------------------------------------------------------------------------------------------------
Jakub Tusz
Abt.:

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
***@vbk.karlsruhe.de <mailto:***@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
---------------------------------------------------------------------------------------------------------------------------

[cid:***@01D08336.B999A030]


Von: checkmk-en-***@lists.mathias-kettner.de [mailto:checkmk-en-***@lists.mathias-kettner.de] Im Auftrag von Ronald Prague
Gesendet: Donnerstag, 30. April 2015 10:48
An: checkmk-***@lists.mathias-kettner.de
Betreff: [Check_mk (english)] Adding nagios check to OMD installation of Check_MK

Hi all;

I'm using the OMD installation of check_mk and so far its working fantastic, but I'm a little lost as to how to add machine specific checks for my extreme switches (https://github.com/barryo/nagios-plugins for example) which were written for nagios.

I'd assume the plugins would be installed in /opt/omd/sites/<sitename>/lib/nagios/plugins Is this correct?

If so, once they're installed how would I add those specific service checks to check_mk?

I found documentation here ( https://mathias-kettner.de/checkmk_legacy_checks.html ) about adding legacy checks, I'm assuming this would be done in /opt/omd/sites/<sitename>/etc/check_mk/main.mk<http://main.mk>?

________________________________
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.
Eismann Dominik
2015-04-30 10:21:38 UTC
Permalink
Hi Ronald,

you should place the Nagios plugins in the ~/local directory structure under /opt/omd/sites/<sitename>/local/lib/nagios/plugins. That way they won't be lost when updating the underlying OMD version. The ~/local directory is the general place to put local changes to the system, like your own notification scripts, self-written check_mk checks etc. The directory /opt/omd/sites/<sitename>/lib/nagios/plugins holds the built-in Nagios plugins that come with OMD.

You can use those plungins like Jakub wrote in a "Classical active and passive Nagios checks" rule. There you have two variables for the plugin paths which you can use in the "Command line" field:
$USER1$ = /opt/omd/sites/<sitename>/lib/nagios/plugins
$USER2$ = /opt/omd/sites/<sitename>/local/lib/nagios/plugins

So, for example, my NTP check looks like this (without the quotes):
Service description: "NTP connect"
Command line: "$USER1$/check_ntp -H $HOSTADDRESS$"
Internal command name: "check_ntp_time"


Have fun!


Kind Regards,
Dominik Eismann


Wieland Electric GmbH
Brennerstraße 10-14
96052 Bamberg

Tel: +49 951 9324564
Fax: +49 951 9326564
mail: ***@wieland-electric.com

http://www.wieland-electric.de



Wieland Electric GmbH
Sitz: Brennerstrasse 10-14, D-96052 Bamberg
Geschaeftsfuehrer: Dr. Oliver Eitrich, Dr. Ulrich Schaarschmidt
Registergericht: AG Bamberg HRB 105


Der Inhalt dieser Mail enthaelt moeglicherweise vertrauliche Informationen und ist ausschliesslich fuer den bezeichneten Adressaten bestimmt.
Wenn Sie nicht der richtige Adressat sind, teilen Sie dem Absender bitte den Erhalt der Mail mit und loeschen Sie die Mail.

The content of this mail may contain confidential information and is intended solely for the designated addressee.
If you are not the intended addressee, then please inform the sender the receipt of this mail and delete the E-Mail.

Von: checkmk-en-***@lists.mathias-kettner.de [mailto:checkmk-en-***@lists.mathias-kettner.de] Im Auftrag von Ronald Prague
Gesendet: Donnerstag, 30. April 2015 10:48
An: checkmk-***@lists.mathias-kettner.de
Betreff: [Check_mk (english)] Adding nagios check to OMD installation of Check_MK

Hi all;

I'm using the OMD installation of check_mk and so far its working fantastic, but I'm a little lost as to how to add machine specific checks for my extreme switches (https://github.com/barryo/nagios-plugins for example) which were written for nagios.

I'd assume the plugins would be installed in /opt/omd/sites/<sitename>/lib/nagios/plugins Is this correct?

If so, once they're installed how would I add those specific service checks to check_mk?

I found documentation here ( https://mathias-kettner.de/checkmk_legacy_checks.html ) about adding legacy checks, I'm assuming this would be done in /opt/omd/sites/<sitename>/etc/check_mk/main.mk?

_______________________________________________
checkmk-en mailing list
checkmk-***@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

Well meet in Munich for the 2nd Check_MK Conference!
Book your place now and be part of it.
October 18th-20th, 2015
http://math

Loading...