From owner-freebsd-questions@FreeBSD.ORG Sat May 14 11:43:42 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B8BDE16A4CE for ; Sat, 14 May 2005 11:43:42 +0000 (GMT) Received: from geofront.co.uk (port-179.dolphin.c4l.co.uk [80.253.114.179]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7590343D6D for ; Sat, 14 May 2005 11:43:39 +0000 (GMT) (envelope-from Mike@the-rubber-chicken-network.co.uk) Received: from [192.168.0.2] (82-35-254-12.cable.ubr04.enfi.blueyonder.co.uk [82.35.254.12]) by geofront.co.uk (8.12.9/8.12.6) with ESMTP id j4EBvEih064850; Sat, 14 May 2005 12:57:15 +0100 (BST) (envelope-from Mike@the-rubber-chicken-network.co.uk) Message-ID: <4285E4A9.1040604@the-rubber-chicken-network.co.uk> Date: Sat, 14 May 2005 12:44:41 +0100 From: Mike Woods User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050406) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Warren Block References: <428394B2.20409@att.net> <20050512141024.U37797@wonkity.com> In-Reply-To: <20050512141024.U37797@wonkity.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new cc: FreeBSD - Questions cc: Duane Winner Subject: Re: monitoring and alerting software ???? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 May 2005 11:43:42 -0000 Warren Block wrote: > On Thu, 12 May 2005, Duane Winner wrote: > >> Does anybody have recommendations for a good solution to alert me >> while I am not at work if something goes wrong with my >> infrastucture/network/servers? >> In other words, if I am at home, I need to be alerted if one of my >> FreeBSD servers go down, but also if the router, firewall or switches >> go haywire. > > > Here's something I wrote recently on setting up Nagios on FreeBSD: > > http://www.wonkity.com/~wblock/nagios.pdf Nagios is a good choice indeed, i've recently implemented a monitoring system for our rack at redbus using Nagios and i'm rather impressed with how well it all works! I've picked up a couple of "tricks" while doing this, the first one is simply to make very good use of service templates, most of the services we monitor in our rack are websites (using check_http) so that becomes a somewhat repeating entry in the config, to minimize this i have a template defined for website checks containing all of the static values which looks an awful lot like this define service{ use generic-service name website-service is_volatile 0 check_period 24x7 max_check_attempts 5 normal_check_interval 1 retry_check_interval 1 contact_groups admins notification_interval 240 notification_period 24x7 notification_options w,u,c,r register 0 } since the check command will be different for each site since the site address to query is included that gets specified in the site description resulting in an entry that looks a lot like this define service{ use website-service host_name service_description (I use sitename) check_command check_site!http:// } which greatly reduces the size of my config files and makes them a whole lot easier to maintain! The other trick i've picked up is split all my host definitions into individual files for each host then add an entry for them in the main Nagios config (much as i do with vhosts in apache), again this makes it far easier to maintain and has the bonus that removing a host is simply a matter of commenting out/deleting a line in the master config file. Last two things, firstly, nagios -v is your friend, it will give you concise and quite useful information on any errors in your config files and saves you loosing the system because of a typo, secondly, for remote checks nrpe is a godsend, it can be used to allow Nagios to check pretty much any local information on a remote machine and is quite easy to configure, for example I have it monitoring the capacity of the /usr mount our Solars machine (along with a few other bits). Hope that's helpful to someone :) --------------------- Mike Woods Systems Administrator