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