Failover with Nagios

Andreas Ericsson ae at op5.se
Fri Aug 13 21:07:14 CEST 2004


Frederico Faria wrote:
> Hi,
> 
>   I want to define an event handler to notify some  applications  of 
> failure in a service. These applications use this service and everything 
> is monitored by Nagios.
>   When the service failed, these applications will be notified and they 
> migrate to use other service ( a backup service ).
> 
>    Then I thought to define an event handler ( in the service 
> configuration )  to notify the applications in case of failure. It is 
> like a hot-swap schema.
> 
> 
>   My questions are :
> 
>      1-) Is it a good solution to model a failover schema in the 
> applications monitored by Nagios ?   Is there other options ?
> 

No, it most definitely is not. Unless you have a very strange setup, it 
will take some time for eventhandlers to execute, leaving you without a 
possibly business-critical (now or someday later) system. The proper way 
to do it would be to use some program designed to handle failovers. I'm 
not very familiar with them myself, but that's how it is.

>      2-) In this schema Which is the best way for the event handler know 
> the  affected applications:
>              a-) define an user macro with the address of applications
>              b-) hard-code the application addresses as parameters of 
> event handler ?
>                c-) other solution ?
> 

d-) Hire a consultant to do it for you. It's your network. If you don't 
know what's best for it, you can't very well expect us to answer 
questions like that properly, can you?

> 
>      3-) How could I compare this solution with the use of HeartBeat to 
> implement this.
>       .

Go with HeartBeat. Nagios was never designed to do failover handling of 
other applications, and you'll most likely find it a very poor solution.

> 
>  Thank you,
> 
> Frederico Faria
> 
> 

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
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