I was able to create a true failover (hot-spare) setup using Linux-HA and DRBD. The two machines use a primary/secondary DRBD drive setup for /usr/local/nagios, /var/spool/mqueue, and /var/spool/clientmqueue. Linux-HA manages the virtual IP for nagios as well as bringing nagios and sendmail services up and down during a failover. This works very well, and because the mail spools are sync'ed not even unsent notifications are lost.<br>
<br>I believe there are some previous threads about this setup, but if not I'd be happy to write up a HOW-TO. <br><br>-Scott<br><br><div><span class="gmail_quote">On 1/29/08, <b class="gmail_sendername">magic_rooter</b> <<a href="mailto:magic.rooter@gmail.com">magic.rooter@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello everybody. I need to have nagios reserve server which will<br>replace the main server when it dies. I installed nagios on another<br>machine, copied all directory /usr/local/nagios and start reserve<br>service Nagios.<br>
I have thound that statistics differs very much! Of course, nagios was<br>installed in different time on each server. But when I copy status.dat<br>file from the main server, availibility statistics on the reserve<br>server became the same! But AFTER RESTART it returnes to  its previos<br>
state:(.<br><br>So, I can't solve this problem, because I can't understand what files<br>I need to copy in order to make  the full copy:(.<br><br>I must mention that reserve server must not work all time. It has  to<br>
be turn on ONLY when main server dies. So, what about availibility<br>statistics?<br>How to make statistics on reserve server STRONGLY the same as on the<br>main server?<br><br>With the great respect to everybody, Kristine<br>
Linux System Administrator<br><br>-------------------------------------------------------------------------<br>This SF.net email is sponsored by: Microsoft<br>Defy all challenges. Microsoft(R) Visual Studio 2008.<br><a href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/">http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</a><br>
_______________________________________________<br>Nagios-users mailing list<br><a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>::: Messages without supporting info will risk being sent to /dev/null<br></blockquote></div><br>