So I take it that Joe has to Paypal Henrik $64 now?<br><br>Please let me, and everyone else of course, know how the failover script works on Hobbit.  I'd be very interested in knowing the result to this!<br><br>Thanks to all three of you!
<br><br><div><span class="gmail_quote">On 11/2/07, <b class="gmail_sendername">Henrik Stoerner</b> <<a href="mailto:henrik@hswn.dk">henrik@hswn.dk</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;">
Hi Joe,<br><br>On Thu, Nov 01, 2007 at 03:20:12PM -0700, Sloan wrote:<br>> So, the $64 question: Is there anything in hobbit, or on the horizon,<br>> which will allow hobbit to serve as a drop-in replacement for bb,
<br>> including the failover capability?<br><br>The BB "failover" script does two things: It makes the network tests<br>run on the failover server if the primary BBNET server cannot be<br>ping'ed; and it enables alerts being sent from the failover server
<br>if there is no connection from the failover server to the primary<br>BBPAGER server.<br><br><br>The network-test failover is fairly simple to do. I've attached two<br>scripts here, both of which must run on the backup/standby/failover
<br>server:<br><br>1) failover.sh - goes in ~hobbit/server/ext/<br>   Add a section to hobbitlaunch.cfg with<br><br>      [failovercheck]<br>        ENVFILE /usr/lib/hobbit/server/etc/hobbitserver.cfg<br>        NEEDS hobbitd
<br>        CMD $BBHOME/ext/failover.sh <a href="http://10.0.0.1">10.0.0.1</a> <a href="http://hobbitnet.mydom.com">hobbitnet.mydom.com</a><br><br>   "<a href="http://10.0.0.1">10.0.0.1</a>" is the IP of your primary Hobbit server,
<br>   "<a href="http://hobbitnet.mydom.com">hobbitnet.mydom.com</a>" is the hostname (in the bb-hosts file) of the<br>   primary network test machine.<br><br>   What this does is that it queries the primary Hobbit server for how
<br>   long ago the network tests were updated. If more than 7 minutes ago<br>   it deems the primary network test node to be DOWN, and flags this via<br>   the file $BBTMP/primarynetDOWN. If the network test update was less
<br>   than 7 minutes ago, it removes the file.<br><br>   This is then used by the other script, which replaces the CMD in the<br>   "[bbnet]" section in hobbitlaunch.cfg.<br><br>2) failovernet.sh - goes in ~hobbit/server/ext/
<br>   When this runs to do the normal network tests, it will check for the<br>   presence of the $BBTMP/primarynetDOWN file. If this file exists, it<br>   picks up the IP of the primary Hobbit server from the file, and<br>
   modifies the settings to report data to both the normal (local)<br>   Hobbit server, and to the primary server. If the file does not exist,<br>   it will just run the network tests the normal way.<br>   So to run this, modify the [bbnet] section in 
hobbitlaunch.cfg and<br>   change the CMD setting to "$BBHOME/server/ext/failovernet.sh"<br><br><br>The alert failover is different, because Hobbit doesn't have a separate<br>BBPAGER server - alerts are sent from the same host that handles the
<br>Hobbit data collection and webpages. A solution to this has been<br>implemented for the next release, where the alerting module can be<br>distributed onto multiple servers, but only one of them will send alerts<br>at any given time.
<br><br><br>Regards,<br>Henrik<br><br><br>To unsubscribe from the hobbit list, send an e-mail to<br><a href="mailto:hobbit-unsubscribe@hswn.dk">hobbit-unsubscribe@hswn.dk</a><br><br><br></blockquote></div><br><br clear="all">
<br>-- <br>Josh Luthman<br>Office: 937-552-2340<br>Direct: 937-552-2343<br>1100 Wayne St<br>Suite 1337<br>Troy, OH 45373<br><br>Those who don't understand UNIX are condemned to reinvent it, poorly.<br>--- Henry Spencer