<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>froztbyte.getBlog() &#187; alerts</title>
	<atom:link href="http://blog.froztbyte.net/tag/alerts/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.froztbyte.net</link>
	<description>returns the contents of froztbyte.blog</description>
	<lastBuildDate>Fri, 03 Apr 2020 21:58:55 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.0</generator>
	<item>
		<title>Smokeping slave noise</title>
		<link>http://blog.froztbyte.net/2012/07/smokeping-slave-noise/</link>
		<comments>http://blog.froztbyte.net/2012/07/smokeping-slave-noise/#comments</comments>
		<pubDate>Thu, 12 Jul 2012 09:47:51 +0000</pubDate>
		<dc:creator><![CDATA[froztbyte]]></dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[alerts]]></category>
		<category><![CDATA[noise]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[slave alerts]]></category>
		<category><![CDATA[smokeping]]></category>

		<guid isPermaLink="false">http://blog.froztbyte.net/?p=259</guid>
		<description><![CDATA[Being in Africa, not all the packet paths are that great. Some people steal copper, others sabotage fibre, somali pirates hijack repair ships, things like that. Slowly but surely the state of things is improving, but for now, loss is &#8230;<p class="read-more"><a href="http://blog.froztbyte.net/2012/07/smokeping-slave-noise/">Read more &#187;</a></p>]]></description>
				<content:encoded><![CDATA[<p>Being in Africa, not all the packet paths are that great. Some people steal copper, others sabotage fibre, somali pirates hijack repair ships, things like that. Slowly but surely the state of things is improving, but for now, loss is inevitable.</p>
<p>Combine this with using smokeping slave instances in far countries, and things can get <em>extremely noisy</em>. And I mean &#8220;I had 1200 mails from smokeping since 6am and it&#8217;s now 11h39&#8243; noisy. Thankfully, it&#8217;s pretty easy to fix, unlike what is said in <a href="https://lists.oetiker.ch/pipermail/smokeping-users/2007-December/002668.html">this post</a>.</p>
<p>Edit Smokeping.pm, jump to the <em>check_alerts</em> subroutine. Change this:</p>
<pre>                         sendmail $cfg-&gt;{Alerts}{from},$to, &lt;&lt;ALERT;
To: $to
From: $cfg-&gt;{Alerts}{from}
Date: $rfc2822stamp
$mail
ALERT
                       }</pre>
<p>To this:</p>
<pre>                       if ($slave !~ /slaveNameToMatch/) {
                         sendmail $cfg-&gt;{Alerts}{from},$to, &lt;&lt;ALERT;
To: $to
From: $cfg-&gt;{Alerts}{from}
Date: $rfc2822stamp
$mail
ALERT
                       }
                }</pre>
<p>And happiness is. If I feel like looking at more perl later, I&#8217;ll try make it a bit more formal (build it into the slave configs, allow it to be a generic check), but for now this&#8217;ll do.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.froztbyte.net/2012/07/smokeping-slave-noise/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
