<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>System Monitoring on Wimpy's World</title><link>https://blog.wimpys.world/tags/system-monitoring/</link><description>Recent content in System Monitoring on Wimpy's World</description><generator>Hugo -- gohugo.io</generator><language>en-gb</language><managingEditor>martin@wimpress.com (Martin Wimpress)</managingEditor><webMaster>martin@wimpress.com (Martin Wimpress)</webMaster><lastBuildDate>Sat, 19 Jul 2014 12:00:00 +0000</lastBuildDate><atom:link href="https://blog.wimpys.world/tags/system-monitoring/rss.xml" rel="self" type="application/rss+xml"/><item><title>Monitorix on Debian</title><link>https://blog.wimpys.world/posts/monitorix-on-debian/</link><pubDate>Sat, 19 Jul 2014 12:00:00 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/monitorix-on-debian/</guid><description>&lt;p&gt;I have a few Debian servers that run at home and on VPSs. I wanted to add some
basic systems monitoring to them, but didn&amp;rsquo;t want anything too complicated to
look after. I found &lt;a href="http://www.monitorix.org/"&gt;Monitorix&lt;/a&gt;.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Monitorix is a free, open source, lightweight system monitoring tool
designed to monitor as many services and system resources as possible.
It has been created to be used under production Linux/UNIX servers,
but due to its simplicity and small size can be used on embedded devices
as well.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h1 id="install-monitorix"&gt;Install Monitorix&lt;/h1&gt;
&lt;p&gt;This install has been tested on Debian Squeeze and Wheezy. First install
the dependencies.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo apt-get install rrdtool perl libwww-perl libmailtools-perl &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;libmime-lite-perl librrds-perl libdbi-perl libxml-simple-perl &lt;span class="se"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;libhttp-server-simple-perl libconfig-general-perl libio-socket-ssl-perl
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Now Monitorix itself.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;wget -c &lt;span class="s2"&gt;&amp;#34;http://apt.izzysoft.de/ubuntu/dists/generic/index.php?file=monitorix_3.5.1-izzy1_all.deb&amp;#34;&lt;/span&gt; -O monitorix_3.5.1-izzy1_all.deb
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo dpkg -i monitorix_3.5.1-izzy1_all.deb
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;At this point Monitorix is installed and running. Point your browser to
&lt;code&gt;http://example.org:8080/monitorix/&lt;/code&gt; and enjoy!&lt;/p&gt;
&lt;h1 id="configuring-monitorix"&gt;Configuring Monitorix&lt;/h1&gt;
&lt;p&gt;Everything in &lt;code&gt;/etc/monitorix/monitorix.conf&lt;/code&gt; is comprehensively documented,
just get tweaking.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.monitorix.org/documentation.html"&gt;http://www.monitorix.org/documentation.html&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Each time you update the configuration Monitorix will require a restart.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo service monitorix restart
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="nginx-status"&gt;nginx status&lt;/h2&gt;
&lt;p&gt;If you run &lt;a href="http://wiki.nginx.org/Main"&gt;nginx&lt;/a&gt; then you&amp;rsquo;ll want to drop the
following into &lt;code&gt;/etc/nginx/conf.d/status.conf&lt;/code&gt; so that Monitorix can monitor
nginx.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-nginx" data-lang="nginx"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;server&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="kn"&gt;listen&lt;/span&gt; &lt;span class="n"&gt;localhost&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;80&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="kn"&gt;location&lt;/span&gt; &lt;span class="s"&gt;/nginx_status&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="kn"&gt;stub_status&lt;/span&gt; &lt;span class="no"&gt;on&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="kn"&gt;access_log&lt;/span&gt; &lt;span class="no"&gt;off&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="kn"&gt;allow&lt;/span&gt; &lt;span class="n"&gt;127.0.0.1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="kn"&gt;deny&lt;/span&gt; &lt;span class="s"&gt;all&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h4 id="references"&gt;References&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.monitorix.org/doc-debian.html"&gt;http://www.monitorix.org/doc-debian.html&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><summary>Setting up Monitorix on Debian Squeeze &amp;amp; Wheezy</summary></item></channel></rss>