<?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>Thomas Pelletier &#187; server</title>
	<atom:link href="http://thomas.pelletier.im/tag/server/feed/" rel="self" type="application/rss+xml" />
	<link>http://thomas.pelletier.im</link>
	<description>A student&#039;s thoughts on IT</description>
	<lastBuildDate>Mon, 30 Aug 2010 21:57:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1-alpha</generator>
		<item>
		<title>Simple mail server report</title>
		<link>http://thomas.pelletier.im/2010/01/simple-mail-server-report/</link>
		<comments>http://thomas.pelletier.im/2010/01/simple-mail-server-report/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 18:21:47 +0000</pubDate>
		<dc:creator>Thomas Pelletier</dc:creator>
				<category><![CDATA[None]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[bsd]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://thomas.pelletier.im/?p=479</guid>
		<description><![CDATA[Here is a small script I wrote a few minutes ago. It gather some informations from the local machine and send them by email to the administrator (me). I plays nice with a @weekly rule in Cron. It is easily &#8230; <a href="http://thomas.pelletier.im/2010/01/simple-mail-server-report/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here is a small script I wrote a few minutes ago. It gather some informations from the local machine and send them by email to the administrator (me). I plays nice with a @weekly rule in Cron.</p>

<p>It is easily customizable without further explanation. However, I think some enhancements should be added (multiple recipients, generic information addition etc.)</p>

<pre><code>#!/bin/bash

# Configuration
SUBJECT="Server repport of `date +%m.%d.%y`"
EMAIL="root@domain.tld"
MSG="/tmp/weekreport"
touch $MSG

# Uptime
echo "Uptime" &gt;&gt; $MSG
echo "`uptime`" &gt;&gt; $MSG
echo "" &gt;&gt; $MSG

# Disk usage
echo "Disk usage" &gt;&gt; $MSG
echo "==========" &gt;&gt; $MSG
echo "" &gt;&gt; $MSG
echo "`df -h`" &gt;&gt; $MSG
echo "" &gt;&gt; $MSG

# Lighty status
echo "Lighttpd" &gt;&gt; $MSG
echo "========" &gt;&gt; $MSG
echo "`/usr/local/etc/rc.d/lighttpd status`" &gt;&gt; $MSG
echo "" &gt;&gt; $MSG

/usr/bin/mail -s "$SUBJECT" "$EMAIL" &lt; $MSG
rm $MSG
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://thomas.pelletier.im/2010/01/simple-mail-server-report/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD, ça le fait</title>
		<link>http://thomas.pelletier.im/2009/10/freebsd-ca-le-fait/</link>
		<comments>http://thomas.pelletier.im/2009/10/freebsd-ca-le-fait/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 09:54:00 +0000</pubDate>
		<dc:creator>Thomas Pelletier</dc:creator>
				<category><![CDATA[None]]></category>
		<category><![CDATA[bsd]]></category>
		<category><![CDATA[life]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://kiznet.fr/?p=352</guid>
		<description><![CDATA[Un petit message rapide pour annoncer deux choses : J&#8217;ai enfin fini de mettre en place les serveurs HTTP, DNS, IMAP, SMTP (entre autres) sur mon serveur perso sous FreeBSD. Si il y en a qui sont intéressés, je peux &#8230; <a href="http://thomas.pelletier.im/2009/10/freebsd-ca-le-fait/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Un petit message rapide pour annoncer deux choses :</p>

<ol>
    <li>J&#8217;ai enfin fini de mettre en place les serveurs HTTP, DNS, IMAP, SMTP (entre autres) sur mon serveur perso sous FreeBSD. Si il y en a qui sont intéressés, je peux sans soucis écrire un howto et le diffuser ici.</li>
    <li>J&#8217;en profiter pour annoncer mon changement d&#8217;adresse email (cf <a href="http://kiznet.fr/a-propos/#me-contacter">A propos</a>).</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://thomas.pelletier.im/2009/10/freebsd-ca-le-fait/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
