<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

      <title>Comments on: Open source site monitoring software</title>
      <link>http://ask.metafilter.com/23746/Open-source-site-monitoring-software/</link>
      <description>Comments on Ask MetaFilter post Open source site monitoring software</description>
	  	  <pubDate>Thu, 08 Sep 2005 01:43:12 -0800</pubDate>
      <lastBuildDate>Thu, 08 Sep 2005 01:43:12 -0800</lastBuildDate>
      <language>en-us</language>
	  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
	  <ttl>60</ttl>

<item>
  	<title>Question: Open source site monitoring software</title>
  	<link>http://ask.metafilter.com/23746/Open-source-site-monitoring-software</link>	
  	<description>Can anybody recommend an open source &apos;external&apos; site monitoring utility for *nix? By external, I mean the tool should sit on a server that&apos;s separate to the one the site being monitored is sitting on. The tool should make regular requests to the monitored site and should send an alert if the page is not returned within a specified time.</description>
  	<guid isPermaLink="false">post:ask.metafilter.com,2008:site.23746</guid>
  	<pubDate>Thu, 08 Sep 2005 01:39:21 -0800</pubDate>
  	<dc:creator>jedro</dc:creator>
	
	<category>site</category>
	
	<category>monitoring</category>
	
	<category>open</category>
	
	<category>source</category>
	
</item>
<item>
  	<title>By: handee</title>
  	<link>http://ask.metafilter.com/23746/Open-source-site-monitoring-software#377562</link>	
  	<description>You mean like &amp;quot;uptime&amp;quot;? &lt;a href=&quot;http://uptime.openacs.org/uptime/&quot;&gt;http://uptime.openacs.org/uptime/&lt;/a&gt;</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.23746-377562</guid>
  	<pubDate>Thu, 08 Sep 2005 01:43:12 -0800</pubDate>
  	<dc:creator>handee</dc:creator>
</item>
<item>
  	<title>By: jedro</title>
  	<link>http://ask.metafilter.com/23746/Open-source-site-monitoring-software#377563</link>	
  	<description>Something like that, except preferably a bit more flexible.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.23746-377563</guid>
  	<pubDate>Thu, 08 Sep 2005 01:47:40 -0800</pubDate>
  	<dc:creator>jedro</dc:creator>
</item>
<item>
  	<title>By: NinjaPirate</title>
  	<link>http://ask.metafilter.com/23746/Open-source-site-monitoring-software#377569</link>	
  	<description>&lt;a href=&quot;http://www.nagios.org/about/&quot;&gt;Nagios&lt;/a&gt;?</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.23746-377569</guid>
  	<pubDate>Thu, 08 Sep 2005 02:14:54 -0800</pubDate>
  	<dc:creator>NinjaPirate</dc:creator>
</item>
<item>
  	<title>By: mrbill</title>
  	<link>http://ask.metafilter.com/23746/Open-source-site-monitoring-software#377581</link>	
  	<description>Another vote for nagios here.  I have it in production at four sites of a large oil and gas firm and it works wonderfully.&lt;br&gt;
&lt;br&gt;
There&apos;s also &lt;a href=&quot;http://www.bb4.com&quot;&gt;Big Brother&lt;/a&gt; and &lt;a href=&quot;http://www.opennms.org/wiki/&quot;&gt;OpenNMS&lt;/a&gt;.  Before I discovered Nagios, I used &lt;a href=&quot;http://www.netplex-tech.com/software/nocol/&quot;&gt;NOCOL&lt;/a&gt;.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.23746-377581</guid>
  	<pubDate>Thu, 08 Sep 2005 02:48:24 -0800</pubDate>
  	<dc:creator>mrbill</dc:creator>
</item>
<item>
  	<title>By: mrbill</title>
  	<link>http://ask.metafilter.com/23746/Open-source-site-monitoring-software#377582</link>	
  	<description>Whoops, NOCOL has been superseded by &lt;a href=&quot;http://www.netplex-tech.com/snips/&quot;&gt;SNIPS&lt;/a&gt;.  I&apos;d forgotten since its been a few years since I&apos;ve used it.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.23746-377582</guid>
  	<pubDate>Thu, 08 Sep 2005 02:49:55 -0800</pubDate>
  	<dc:creator>mrbill</dc:creator>
</item>
<item>
  	<title>By: ajbattrick</title>
  	<link>http://ask.metafilter.com/23746/Open-source-site-monitoring-software#377612</link>	
  	<description>Nagios can be a beatch to setup, but is great</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.23746-377612</guid>
  	<pubDate>Thu, 08 Sep 2005 04:22:52 -0800</pubDate>
  	<dc:creator>ajbattrick</dc:creator>
</item>
<item>
  	<title>By: poppo</title>
  	<link>http://ask.metafilter.com/23746/Open-source-site-monitoring-software#377617</link>	
  	<description>&lt;a href=&quot;http://www.kernel.org/software/mon/&quot;&gt;Mon&lt;/a&gt; is excellent.  It&apos;s totally free, people write all kinds of custom monitors for it, it can page, send email or whatever else you can think up for it.&lt;br&gt;
&lt;br&gt;
Simplest use of course would be for it to ping something for you, but you could even use one of the wget monitors to look whether a specific page or pages are up.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.23746-377617</guid>
  	<pubDate>Thu, 08 Sep 2005 04:29:38 -0800</pubDate>
  	<dc:creator>poppo</dc:creator>
</item>
<item>
  	<title>By: poppo</title>
  	<link>http://ask.metafilter.com/23746/Open-source-site-monitoring-software#377619</link>	
  	<description>An &lt;a href=&quot;http://ftp.kernel.org/pub/software/admin/mon/contrib/monitors/http/http_integrity.monitor.README&quot;&gt;http&lt;/a&gt; monitor for Mon</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.23746-377619</guid>
  	<pubDate>Thu, 08 Sep 2005 04:32:43 -0800</pubDate>
  	<dc:creator>poppo</dc:creator>
</item>
<item>
  	<title>By: furtive</title>
  	<link>http://ask.metafilter.com/23746/Open-source-site-monitoring-software#377621</link>	
  	<description>Nagios for sure.  Along with Apache it&apos;s one of a handfull of open source apps that are considered enterprise stable.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.23746-377621</guid>
  	<pubDate>Thu, 08 Sep 2005 04:32:44 -0800</pubDate>
  	<dc:creator>furtive</dc:creator>
</item>
<item>
  	<title>By: jedro</title>
  	<link>http://ask.metafilter.com/23746/Open-source-site-monitoring-software#377652</link>	
  	<description>I was hoping there was something simpler to set up than Nagios. All I need it to do is load a page, check for a particular string, and send an alert if the string is not found.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.23746-377652</guid>
  	<pubDate>Thu, 08 Sep 2005 05:28:48 -0800</pubDate>
  	<dc:creator>jedro</dc:creator>
</item>
<item>
  	<title>By: sfenders</title>
  	<link>http://ask.metafilter.com/23746/Open-source-site-monitoring-software#377662</link>	
  	<description>I use Big Brother for serious use.&lt;br&gt;
&lt;br&gt;
You want simple to set up?  I use &apos;ping&apos; for various similar temporary uses, like so:&lt;br&gt;
&lt;br&gt;
while (true) ; do if ( ! ping -c 1 -i 10 fnord ) ; then echo fnord | mail sfenders ; sleep 60 ; fi ; done&lt;br&gt;
&lt;br&gt;
To monitor a website just replace ping with wget, and maybe add an elif clause to grep for page content.  wget returns an error code on 404 or whatever.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.23746-377662</guid>
  	<pubDate>Thu, 08 Sep 2005 05:44:25 -0800</pubDate>
  	<dc:creator>sfenders</dc:creator>
</item>
<item>
  	<title>By: sfenders</title>
  	<link>http://ask.metafilter.com/23746/Open-source-site-monitoring-software#377665</link>	
  	<description>&lt;small&gt;(... err, I forgot the other &apos;sleep 10&apos; before &apos;done&apos; above.)&lt;/small&gt;</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.23746-377665</guid>
  	<pubDate>Thu, 08 Sep 2005 05:47:47 -0800</pubDate>
  	<dc:creator>sfenders</dc:creator>
</item>
<item>
  	<title>By: jjj606</title>
  	<link>http://ask.metafilter.com/23746/Open-source-site-monitoring-software#377669</link>	
  	<description>this works in linux, probably in unix, too.&lt;br&gt;
&lt;br&gt;
(this is one long line)&lt;br&gt;
wget  -o /dev/null  -O -  google.com | grep -q &amp;quot;Feeling Lucky&amp;quot;  || echo &amp;quot;not found&amp;quot;&lt;br&gt;
&lt;br&gt;
The &amp;quot;not found&amp;quot; message displays if it can&apos;t load the page or if the text is not on the page.&lt;br&gt;
&lt;br&gt;
Change the echo to an email command once it&apos;s working correctly, then add it to cron, or run in a loop by adding &lt;br&gt;
&lt;br&gt;
while true ; do&lt;br&gt;
wget...&lt;br&gt;
sleep 60&lt;br&gt;
done</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.23746-377669</guid>
  	<pubDate>Thu, 08 Sep 2005 05:53:57 -0800</pubDate>
  	<dc:creator>jjj606</dc:creator>
</item>
<item>
  	<title>By: eriko</title>
  	<link>http://ask.metafilter.com/23746/Open-source-site-monitoring-software#377687</link>	
  	<description>Big Brother has gone commercial, and the free version isn&apos;t supported much (and can&apos;t handle large loads.) Henrik Stoerner rewrote the core as BBGen, then went on to rewrite the rest as the &lt;a href=&quot;http://hobbitmon.sourceforge.net/&quot;&gt;Hobbit Monitor.&lt;/a&gt; (As to the name, he says &amp;quot;Names are hard.&amp;quot;)&lt;br&gt;
&lt;br&gt;
I&apos;m quite happy with it, even as a work in progress. It has a bunch of tests built in, some which run on the client, some across the network. The Big Brother client works with it, and the protocol is the same, so many Big Brother extensions, the Hobbit client is new, and not quite ready for primetime. Writing your own tests isn&apos;t hard, we&apos;ve started monitoring our internal processes with it, using a homerolled program that sends messages to the monitor server, which then alerts as needed.&lt;br&gt;
&lt;br&gt;
For monitoring one site, it might look like overkill -- but it answers lots of problems, and with the RRD graphs built in, you can get trends you wouldn&apos;t see from just &amp;quot;hit page, does it work?&amp;quot; testing. &lt;br&gt;
&lt;br&gt;
Otherwise, I&apos;d modify jjj606&apos;s script to....&lt;br&gt;
&lt;pre&gt;&lt;br&gt;
TEST=`wget -o /dev/null -O - google.com | grep -q &amp;quot;Feeling Lucky&amp;quot; || echo &amp;quot;oops&amp;quot;`&lt;br&gt;
if [ &amp;quot;$TEST&amp;quot; = &amp;quot;oops&amp;quot; ]&lt;br&gt;
then&lt;br&gt;
     wget -o ~/brokenpage -O - google.com&lt;br&gt;
     echo &amp;quot;Webpage Not responding, wget reported $?&amp;quot; | mail -s &amp;quot;Ruh-ro, Shaggy!&amp;quot; youremail@example.com&lt;br&gt;
fi&lt;br&gt;
&lt;/pre&gt;&lt;br&gt;
&lt;br&gt;
That way, you get a copy of any errors that are presented, and the actual error code from wget, if any. This can make debugging much easier. Fancier versions will look at the result code and mail out appropriate messages. (Using curl, it returns a 6, I&apos;ll echo out &amp;quot;Host not found&amp;quot; -- which tells me I need to check DNS and the hostname first, then find out if the remote host is up.)&lt;br&gt;
&lt;br&gt;
Further complications ensue. Or, you can run Hobbit, which already takes much of this into account -- plus, if you can install the client, will also warn you of upcoming problems, like running out of disk space or overloading the CPU.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.23746-377687</guid>
  	<pubDate>Thu, 08 Sep 2005 06:17:16 -0800</pubDate>
  	<dc:creator>eriko</dc:creator>
</item>
<item>
  	<title>By: jlstitt</title>
  	<link>http://ask.metafilter.com/23746/Open-source-site-monitoring-software#377762</link>	
  	<description>Sometimes the method above doesn&apos;t work if you&apos;re having to use a web site that requires a login.  In that case, you can use &amp;quot;curl&amp;quot; instead of &amp;quot;wget&amp;quot; (even supports SSL)</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.23746-377762</guid>
  	<pubDate>Thu, 08 Sep 2005 07:47:42 -0800</pubDate>
  	<dc:creator>jlstitt</dc:creator>
</item>
<item>
  	<title>By: bachelor#3</title>
  	<link>http://ask.metafilter.com/23746/Open-source-site-monitoring-software#378080</link>	
  	<description>You should still be able to use wget, jlstitt. Just use the --http-user and --http-passwd options.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.23746-378080</guid>
  	<pubDate>Thu, 08 Sep 2005 14:06:03 -0800</pubDate>
  	<dc:creator>bachelor#3</dc:creator>
</item>
<item>
  	<title>By: darkness</title>
  	<link>http://ask.metafilter.com/23746/Open-source-site-monitoring-software#378133</link>	
  	<description>You can just use the check_http plugin from Nagios directly, without having to run the whole thing.  The script exits with a 0,1,2 or 3 depending on the condition of the service you are checking.  Should make it easy to wrap it into other scripts to send email or something...</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.23746-378133</guid>
  	<pubDate>Thu, 08 Sep 2005 15:23:21 -0800</pubDate>
  	<dc:creator>darkness</dc:creator>
</item>
<item>
  	<title>By: darkness</title>
  	<link>http://ask.metafilter.com/23746/Open-source-site-monitoring-software#378135</link>	
  	<description>&amp;quot;whole thing&amp;quot; meaning the whole Nagios infrastructure.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.23746-378135</guid>
  	<pubDate>Thu, 08 Sep 2005 15:23:49 -0800</pubDate>
  	<dc:creator>darkness</dc:creator>
</item>

    </channel>
</rss>
