[omd-users] Skript to manually check nagios configuration

Mathias Kettner mk at mathias-kettner.de
Thu Nov 4 13:58:47 CET 2010


Dear Time,

the site is always available as $OMD_SITE.
The site directory is available as $OMD_ROOT.

For verifying the nagios config - though - better
use etc/init.d/nagios configcheck. The nagios.cfg
will by dynamically merged in version 0.44

Mathias


Am 04.11.2010 13:44, schrieb Timo Scheller:
> Dear list,
>
> we had the ability to check the configuration of each omd-site
> from the site itself, bevor doing a reload or restart of nagios itself.
> So I write a simple, but usefull skript:
>
> cat n-verify
>
> #!/bin/bash
> # Make manually an verfiy of your actual nagios omd-site configuration
> #
> # Author: Timo Scheller
> # Date: November 2010
> ######################################################################
> # Define your actual omd-site name
> SITE=`omd status |cut -d ":" -f 1`
>
> # Check your configuration
> nagios -v /omd/sites/$SITE/etc/nagios/nagios.cfg
>
> Place the skript there:
> /omd/versions/default/bin
>
> Then it can be used in every omd-site.
>
> By the way, thx a lot for the great work of omd!
> We used it with SLES11 SP1 and it works great, out of the box!
>
>
>
>
> _______________________________________________
> omd-users mailing list
> omd-users at lists.mathias-kettner.de
> http://lists.mathias-kettner.de/mailman/listinfo/omd-users


-- 
                        __  __ _  __
Mathias Kettner       |  \/  | |/ /   M A T H I A S   K E T T N E R
Preysingstr. 74       | |\/| | ' /
81667 München         | |  | | . \        Linux Beratung & Schulung
089 / 18 90 42 10     |_|  |_|_|\_\       http://mathias-kettner.de


More information about the omd-users mailing list