multiple nagios instances on one machine

Gerhard Lausser Gerhard.Lausser at consol.de
Wed Sep 3 15:48:03 CEST 2008


> ) BUT it has the ability to update each individual instance of Nagios, 
> Nagios Plugins, and 'configuration changes'

If you are a friend of symbolic links, you can do this with my method too:

normally, the instances share a common installation of nagios, plugins,...

nagios at nsrv:~> ls -l instances/instance_os_solaris total 12
lrwxrwxrwx  1 nagios nagios   31 2008-03-06 20:41 bin ->
/opt/nagios/core/nagios/bin
drwxr-xr-x  2 nagios nagios 4096 2008-06-11 21:15 etc
lrwxrwxrwx  1 nagios nagios   43 2008-03-06 20:41 libexec ->
/opt/nagios/core/nagios-plugins/libexec
lrwxrwxrwx  1 nagios nagios   47 2008-03-06 20:41 locallibexec ->
/opt/nagios/core/local-plugins/locallibexec
drwxr-xr-x  3 nagios nagios 4096 2008-03-06 20:41 ndoutils
lrwxrwxrwx  1 nagios nagios   32 2008-03-06 20:41 sbin ->
/opt/nagios/core/nagios/sbin
lrwxrwxrwx  1 nagios nagios   33 2008-03-06 20:41 share ->
/opt/nagios/core/nagios/share
drwxr-xr-x  4 nagios nagios 4096 2008-03-06 20:41 var

nagios at nsrv:~> ls -l instances/instance_os_linux total 12
lrwxrwxrwx  1 nagios nagios   31 2008-03-06 20:56 bin ->
/opt/nagios/core/nagios/bin
drwxr-xr-x  2 nagios nagios 4096 2008-08-26 02:38 etc
lrwxrwxrwx  1 nagios nagios   43 2008-03-06 20:56 libexec ->
/opt/nagios/core/nagios-plugins/libexec
lrwxrwxrwx  1 nagios nagios   47 2008-03-06 20:56 locallibexec ->
/opt/nagios/core/local-plugins/locallibexec
drwxr-xr-x  3 nagios nagios 4096 2008-03-06 20:56 ndoutils
lrwxrwxrwx  1 nagios nagios   32 2008-03-06 20:56 sbin ->
/opt/nagios/core/nagios/sbin
lrwxrwxrwx  1 nagios nagios   33 2008-03-06 20:56 share ->
/opt/nagios/core/nagios/share
drwxr-xr-x  4 nagios nagios 4096 2008-03-06 20:56 var

nagios at nsrv:~> ls -l core
total 36
lrwxrwxrwx  1 nagios nagios   17 2007-07-10 10:30 local-plugins ->
local-plugins-1.0
drwxr-xr-x  3 nagios nagios 4096 2006-02-28 12:34 local-plugins-1.0
lrwxrwxrwx  1 nagios nagios   11 2008-01-18 21:08 nagios -> nagios-3.0.3
drwxrwxr-x  6 nagios nagios 4096 2008-08-23 13:44 nagios-4.0a drwxrwxr-x  7
nagios nagios 4096 2008-01-18 21:08 nagios-3.0.3
lrwxrwxrwx  1 nagios nagios   21 2008-01-21 16:35 nagios-plugins ->
nagios-plugins-1.4.12
drwxr-xr-x  3 nagios nagios 4096 2008-01-21 16:35 nagios-plugins-1.4.11
drwxr-xr-x  4 nagios nagios 4096 2005-12-28 20:21 nagios-plugins-1.4.12 ....
nagios at nsrv:~> 

As you see, the sbin of the two instances point to ~/core/nagios/sbin which
in fact is ~/core/nagios-3.0.3/sbin. The core/nagios always points to the
"default" release.

Now if you want to upgrade the instance_os_linux to use the brandnew
Nagios-4.0 Alpha, you would directly link from the instance directory to the
new release.

nagios at nsrv:~> ls -l instances/instance_os_linux total 12 .....
lrwxrwxrwx  1 nagios nagios   32 2008-03-06 20:56 sbin ->
/opt/nagios/core/nagios-4.0a/sbin
lrwxrwxrwx  1 nagios nagios   33 2008-03-06 20:56 share ->
/opt/nagios/core/nagios-4.0a/share
.....

But if you plan to change releases often and play around a lot, then i would
also prefer to compile a nagios installation for each instance.

Gerhard




-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list