<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Monitoring Debian Servers Using Monit</title>
	<atom:link href="http://www.debianadmin.com/monitoring-debian-servers-using-monit.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.debianadmin.com/monitoring-debian-servers-using-monit.html</link>
	<description>Debian/Ubuntu Linux System Administration Tutorials,Howtos,Tips</description>
	<lastBuildDate>Mon, 06 Feb 2012 02:01:37 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Snaky</title>
		<link>http://www.debianadmin.com/monitoring-debian-servers-using-monit.html/comment-page-1#comment-4749</link>
		<dc:creator>Snaky</dc:creator>
		<pubDate>Mon, 29 Mar 2010 19:44:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/monitoring-debian-servers-using-monit.html#comment-4749</guid>
		<description>This is not a good example, because you are only testing localhost!!! 

This means that every service on your machine that listens to any exposed interface like e.g. 74.126.24.86 is NOT monitored by monit! So if you have a problem with your IP-setup or your firewall or you forgot to change ip addresses for virtual interfaces or anything else that happens in the real world, you will not get an alert! 

So everywhere in this config example where there is localhost you should use your IP!

Even more tricky: monit assumes localhost, if &quot;host&quot; is not used, so a stanza like

&lt;code&gt;if failed port 22 protocol ssh then restart&lt;/code&gt;

will just test if your ssh server runs on 127.0.0.1 - is this useful? Of course, if you are lucky, there is a good chance that if it runs on localhost it may also run on the IP you are connecting to your server. However, to be sure that it really does it should instead be written e.g.

&lt;code&gt;if failed host 74.126.24.86 port 22 protocol ssh then restart&lt;/code&gt;

Nearly every tutorial I saw about monit propagates the same errors which leads to a nearly useless monit configuration - people should really read the monit manual before just copy-n-pasting random stuff from the internet: http://mmonit.com/monit/documentation/monit.html</description>
		<content:encoded><![CDATA[<p>This is not a good example, because you are only testing localhost!!! </p>
<p>This means that every service on your machine that listens to any exposed interface like e.g. 74.126.24.86 is NOT monitored by monit! So if you have a problem with your IP-setup or your firewall or you forgot to change ip addresses for virtual interfaces or anything else that happens in the real world, you will not get an alert! </p>
<p>So everywhere in this config example where there is localhost you should use your IP!</p>
<p>Even more tricky: monit assumes localhost, if &#8220;host&#8221; is not used, so a stanza like</p>
<p><code>if failed port 22 protocol ssh then restart</code></p>
<p>will just test if your ssh server runs on 127.0.0.1 - is this useful? Of course, if you are lucky, there is a good chance that if it runs on localhost it may also run on the IP you are connecting to your server. However, to be sure that it really does it should instead be written e.g.</p>
<p><code>if failed host 74.126.24.86 port 22 protocol ssh then restart</code></p>
<p>Nearly every tutorial I saw about monit propagates the same errors which leads to a nearly useless monit configuration - people should really read the monit manual before just copy-n-pasting random stuff from the internet: <a href="http://mmonit.com/monit/documentation/monit.html" rel="nofollow">http://mmonit.com/monit/documentation/monit.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anon</title>
		<link>http://www.debianadmin.com/monitoring-debian-servers-using-monit.html/comment-page-1#comment-2867</link>
		<dc:creator>anon</dc:creator>
		<pubDate>Sat, 02 May 2009 14:05:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.debianadmin.com/monitoring-debian-servers-using-monit.html#comment-2867</guid>
		<description>Examples are now at http://mmonit.com/wiki/Monit/ConfigurationExamples</description>
		<content:encoded><![CDATA[<p>Examples are now at <a href="http://mmonit.com/wiki/Monit/ConfigurationExamples" rel="nofollow">http://mmonit.com/wiki/Monit/ConfigurationExamples</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

