<?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>munin Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/munin/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Fri, 05 Feb 2021 15:50:04 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How to install the Munin agent on Ubuntu 20.04?</title>
		<link>https://www.osradar.com/install-the-munin-agent-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/install-the-munin-agent-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 09 Feb 2021 03:45:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[focal]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[munin]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=28359</guid>

					<description><![CDATA[<p>Hello, friends. In this post, you will learn how to install Munin Agent on Ubuntu 20.04. Of course, we will also add it to the server so that it can monitor it. In the previous post, you learned how to install Munin on Debian 10. That installation referred to the server-side. Note that Munin monitors [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-the-munin-agent-ubuntu-20-04/">How to install the Munin agent on Ubuntu 20.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello, friends. In this post, you will learn how to install <a href="http://munin-monitoring.org/" target="_blank" rel="noreferrer noopener">Munin</a> Agent on Ubuntu 20.04. Of course, we will also add it to the server so that it can monitor it.</p>



<p>In the previous post, you learned <a href="https://www.osradar.com/install-munin-debian-10/(opens in a new tab)" target="_blank" rel="noreferrer noopener">how to install Munin on Debian 10</a>. That installation referred to the server-side. Note that Munin monitors especially remote machines. Now I will show you how to install the agent or client on an Ubuntu 20.04 machine so that the client is handled by the server. The procedure is quite simple and practical.</p>



<h2 id="install-munin-agent-on-ubuntu-20.04"><a href="#install-munin-agent-on-ubuntu-20.04" name="install-munin-agent-on-ubuntu-20.04"></a>Install Munin Agent on Ubuntu 20.04</h2>



<p>Before we start, you have to know that we are working on two servers. The first one is where we have the Munin server which contains Debian 10. The other one is the client.</p>



<p>Have at hand the IP addresses and hostname of each of them and open the port 4949 on both.</p>



<p>So, on the client, open a terminal session and update Ubuntu.</p>



<pre class="wp-block-preformatted">sudo apt update
sudo apt upgrade</pre>



<p>After that, you need to install the munin-node package which is the package where the Munin client is embedded.</p>



<p>This package is available in the official Ubuntu repositories so the installation is not complex.</p>



<p>So, install the package by running:</p>



<pre class="wp-block-preformatted">sudo apt install munin-node</pre>



<p>this way it will be installed.</p>



<h3 id="adding-the-munin-client-to-the-server"><a href="#adding-the-munin-client-to-the-server" name="adding-the-munin-client-to-the-server"></a>Adding the Munin client to the server</h3>



<p>On the client-side, we now have to configure the machine to communicate with the server.</p>



<p>To do this, edit the munin configuration file</p>



<pre class="wp-block-preformatted">sudo nano /etc/munin/munin-node.conf</pre>



<p>And at the end of the file, add the following content:</p>



<pre class="wp-block-preformatted">host_name osradarclient
allow ^192.22.145.141$</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="320" height="116" src="https://www.osradar.com/wp-content/uploads/2021/02/1-2.png" alt="1.- Configuring Munin Agent on Ubuntu 20.04" class="wp-image-28375" srcset="https://www.osradar.com/wp-content/uploads/2021/02/1-2.png 320w, https://www.osradar.com/wp-content/uploads/2021/02/1-2-300x109.png 300w" sizes="(max-width: 320px) 100vw, 320px" /><figcaption>1.- Configuring Munin Agent on Ubuntu 20.04</figcaption></figure>



<p>Remember to change the hostname to the client’s hostname and the client’s IP address. Do not modify the symbols <code>^</code> or <code>\</code> which are necessary.</p>



<p>Save the file and close it.</p>



<p>Apply the changes by restarting the <code>munin-node</code> service.</p>



<pre class="wp-block-preformatted">sudo systemctl restart munin-node.service</pre>



<p>And check the status of the service:</p>



<pre class="wp-block-preformatted">sudo systemctl status munin-node.service</pre>



<h3 id="working-on-the-server"><a href="#working-on-the-server" name="working-on-the-server"></a>Working on the server</h3>



<p>We are almost ready, but we have to adjust some things on the server.</p>



<p>On the server, open the munin configuration file.</p>



<pre class="wp-block-preformatted">sudo nano /etc/munin/munin.conf</pre>



<p>And add the following information</p>



<pre class="wp-block-preformatted">[osradarclient]
    address 46.183.114.67
    use_node_name yes</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="641" height="159" src="https://www.osradar.com/wp-content/uploads/2021/02/2.png" alt="2.- Munin Agent" class="wp-image-28376" srcset="https://www.osradar.com/wp-content/uploads/2021/02/2.png 641w, https://www.osradar.com/wp-content/uploads/2021/02/2-300x74.png 300w" sizes="(max-width: 641px) 100vw, 641px" /><figcaption>2.- Munin Agent</figcaption></figure>



<p>Remember that you have to change the hostname and the IP address to the client’s one. This is done so that the program can monitor it.</p>



<p>Apply the changes by restarting the munin services.</p>



<pre class="wp-block-preformatted">sudo systemctl restart munin munin-node.service</pre>



<p>Now we are ready.</p>



<p>Now open a web browser and access the Munin server and you should see the client node already added.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-the-munin-agent-ubuntu-20-04/">How to install the Munin agent on Ubuntu 20.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-the-munin-agent-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Install Munin on Debian 10</title>
		<link>https://www.osradar.com/install-munin-debian-10/</link>
					<comments>https://www.osradar.com/install-munin-debian-10/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Mon, 08 Feb 2021 03:11:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Buster]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[munin]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[tools]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=28326</guid>

					<description><![CDATA[<p>Hello, friends. In this post, you will learn how to install Munin on DEbian 10. This is the first step before adding nodes to be monitored by this server that we will deploy. What is Munin? According to the Munin website: Munin is a networked resource monitoring tool that can help analyze resource trends and [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-munin-debian-10/">Install Munin on Debian 10</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello, friends. In this post, you will learn how to install Munin on DEbian 10. This is the first step before adding nodes to be monitored by this server that we will deploy.</p>



<h2 id="what-is-munin?"><a href="#what-is-munin?" name="what-is-munin?"></a>What is Munin?</h2>



<p>According to the Munin website:</p>



<blockquote class="wp-block-quote"><p>Munin is a networked resource monitoring tool that can help analyze resource trends and “what just happened to kill our performance?” problems. It is designed to be very plug and play. A default installation provides a lot of graphs with almost no work.</p></blockquote>



<p>Munin the monitoring tool surveys all your computers and remembers what it saw. It presents all the information in graphs through a web interface. Its emphasis is on plug and play capabilities. After completing a installation a high number of monitoring plugins will be playing with no more effort.</p>



<p>Using Munin you can easily monitor the performance of your computers, networks, SANs, applications, weather measurements and whatever comes to mind. It makes it easy to determine “what’s different today” when a performance problem crops up. It makes it easy to see how you’re doing capacity-wise on any resources.</p>



<p>So, let us get started.</p>



<h2 id="install-munin-on-debian-10"><a href="#install-munin-on-debian-10" name="install-munin-on-debian-10"></a>Install Munin on DEbian 10</h2>



<p>The first thing you have to do is to install some packages needed to run the Munin web client.</p>



<pre class="wp-block-preformatted">sudo apt update
sudo apt install apache2 apache2-utils libcgi-fast-perl libapache2-mod-fcgid</pre>



<p>Then enable the Apache <code>fcgid</code> module:</p>



<pre class="wp-block-preformatted">sudo a2enmod fcgid</pre>



<p>Now you can install munin and some additional packages such as those containing the plugins and for the node.</p>



<pre class="wp-block-preformatted">sudo apt install munin munin-node munin-plugins-extra</pre>



<p>As Muni is accessible from the web, it is convenient to request a username and password to make sure that not just anyone can log in and see the information.</p>



<pre class="wp-block-preformatted">htpasswd -c /etc/munin/munin-htpasswd admin
New password:
Re-type new password:
Adding password for user admin</pre>



<p>You can replace admin with the user of your choice.</p>



<p>Then, enable the default VirtualHost configuration for Munin:</p>



<pre class="wp-block-preformatted">sudo cp -p /etc/munin/apache24.conf /etc/apache2/sites-available/munin.conf</pre>



<p>Enable the new VirtualHost:</p>



<pre class="wp-block-preformatted">sudo a2ensite munin
sudo systemctl reload apache2</pre>



<p>Before using Munin, it is advisable to make some modifications to the virtualhost.</p>



<pre class="wp-block-preformatted">sudo nano /etc/apache2/sites-available/munin.conf</pre>



<p>And leave the file as follows:</p>



<pre class="wp-block-preformatted">ScriptAlias /munin-cgi/munin-cgi-graph /usr/lib/munin/cgi/munin-cgi-graph
Alias /munin/static/ /var/cache/munin/www/static/

&lt;Directory /var/cache/munin/www&gt;
AuthUserFile /etc/munin/munin-htpasswd
Authtype Basic
AuthName <span class="hljs-string">"Munin"</span>
Require valid-user
Options FollowSymLinks SymLinksIfOwnerMatch
Options None
&lt;/Directory&gt;

   <code class="bash" data-origin="<pre><code class=&quot;bash&quot;>ScriptAlias /munin-cgi/munin-cgi-graph /usr/lib/munin/cgi/munin-cgi-graph
Alias /munin/static/ /var/cache/munin/www/static/

<Directory /var/cache/munin/www>
    AuthUserFile /etc/munin/munin-htpasswd
    Authtype Basic
    AuthName &quot;Munin&quot;
    Require valid-user
    Options FollowSymLinks SymLinksIfOwnerMatch
    Options None
</Directory>

<Directory /usr/lib/munin/cgi>
    AuthUserFile /etc/munin/munin-htpasswd
    Authtype Basic
    AuthName &quot;Munin&quot;
    Require valid-user
    Options FollowSymLinks SymLinksIfOwnerMatch
    <IfModule mod_fcgid.c>
        SetHandler fcgid-script
    </IfModule>
    <IfModule !mod_fcgid.c>
        SetHandler cgi-script
    </IfModule>
</Directory>
</code></pre>
<p>">&lt;Directory /usr/lib/munin/cgi&gt;
    AuthUserFile /etc/munin/munin-htpasswd
    Authtype Basic
    AuthName <span class="hljs-string">"Munin"</span>
    Require valid-user
    Options FollowSymLinks SymLinksIfOwnerMatch
    </code>
   <code class="bash" data-origin="<pre><code class=&quot;bash&quot;>ScriptAlias /munin-cgi/munin-cgi-graph /usr/lib/munin/cgi/munin-cgi-graph
Alias /munin/static/ /var/cache/munin/www/static/

<Directory /var/cache/munin/www>
    AuthUserFile /etc/munin/munin-htpasswd
    Authtype Basic
    AuthName &quot;Munin&quot;
    Require valid-user
    Options FollowSymLinks SymLinksIfOwnerMatch
    Options None
</Directory>

<Directory /usr/lib/munin/cgi>
    AuthUserFile /etc/munin/munin-htpasswd
    Authtype Basic
    AuthName &quot;Munin&quot;
    Require valid-user
    Options FollowSymLinks SymLinksIfOwnerMatch
    <IfModule mod_fcgid.c>
        SetHandler fcgid-script
    </IfModule>
    <IfModule !mod_fcgid.c>
        SetHandler cgi-script
    </IfModule>
</Directory>
</code></pre>
<p>">&lt;IfModule mod_fcgid.c&gt;
        SetHandler fcgid-script
    &lt;/IfModule&gt;
    &lt;IfModule !mod_fcgid.c&gt;
        SetHandler cgi-script
    &lt;/IfModule&gt;
&lt;/Directory&gt;
</code></pre>



<p>Save the changes and close the editor.</p>



<p>And to apply the changes, restart Apache and munin.</p>



<pre class="wp-block-preformatted">sudo systemctl restart apache2 munin-node</pre>



<h2 id="access-to-munin-interface"><a href="#access-to-munin-interface" name="access-to-munin-interface"></a>Access to Munin interface</h2>



<p>Now all you have to do is to verify that the server is working properly and to do this you just have to open a web browser and access http://your-server/munin and you will see the following</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="502" src="https://www.osradar.com/wp-content/uploads/2021/02/1-1-1024x502.png" alt="1.- Munin on Debian 10" class="wp-image-28360" srcset="https://www.osradar.com/wp-content/uploads/2021/02/1-1-1024x502.png 1024w, https://www.osradar.com/wp-content/uploads/2021/02/1-1-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2021/02/1-1-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2021/02/1-1-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2021/02/1-1-1068x523.png 1068w, https://www.osradar.com/wp-content/uploads/2021/02/1-1.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Munin on Debian 10</figcaption></figure>



<p>So, Munin is working but you need to add nodes.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-munin-debian-10/">Install Munin on Debian 10</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-munin-debian-10/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
