<?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>gHacks Technology News &#124; Latest Tech News, Software And Tutorials &#187; nagios</title> <atom:link href="http://www.ghacks.net/tag/nagios/feed/" rel="self" type="application/rss+xml" /><link>http://www.ghacks.net</link> <description>A technology news blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description> <lastBuildDate>Fri, 10 Feb 2012 13:29:21 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/> <item><title>Configure hostgroups for Nagios</title><link>http://www.ghacks.net/2010/03/28/configure-hostgroups-for-nagios/</link> <comments>http://www.ghacks.net/2010/03/28/configure-hostgroups-for-nagios/#comments</comments> <pubDate>Sun, 28 Mar 2010 19:22:09 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Networks]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[Debian]]></category> <category><![CDATA[nagios]]></category> <category><![CDATA[Network Monitoring]]></category> <category><![CDATA[ssh]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=24016</guid> <description><![CDATA[If you&#8217;ve been following my Nagios articles here on Ghacks (see &#8220;Easily extend Nagios&#8217; functionality&#8221; and &#8220;Quickly install Nagios on Ubuntu&#8221; for more information) you are probably impressed with how powerful Nagios is. Well, I can happily say you haven&#8217;t seen anything yet. Nagios is amazing in it&#8217;s ability to extend and report. Of course, [...]]]></description> <content:encoded><![CDATA[<p>If you&#8217;ve been following my Nagios articles here on Ghacks (see &#8220;<a
title="Easily extend Nagios' functionality" href="http://www.ghacks.net/2010/03/27/easily-extend-nagios-functionality/" target="_blank">Easily extend Nagios&#8217; functionality</a>&#8221; and &#8220;<a
title="Quickly install Nagios on Ubuntu" href="http://www.ghacks.net/2010/03/27/quickly-install-nagios-on-ubuntu/" target="_blank">Quickly install Nagios on Ubuntu</a>&#8221; for more information) you are probably impressed with how powerful Nagios is. Well, I can happily say you haven&#8217;t seen anything yet. Nagios is amazing in it&#8217;s ability to extend and report. Of course, along with this power comes a bit of work to be done by the administrator. With Nagios there are no fancy widgets and wizards to walk you through simple configurations. Nagios requires you to get your fingers a bit dirty with the command line.</p><p>One cool ability of Nagios is that it allows you to group machines into services. Say, for instance, you have a number of machines that serve as Web servers or Samba servers. Instead of having to scroll around to find them, you can group those machines together, by service, to make for much easier monitoring. In this tutorial I am going to show you how to take advantage of this nifty feature.</p><p><span
id="more-24016"></span><strong>Assumptions</strong></p><p>I am going to assume that you already have Nagios installed and working. I will also assume you know which machines are on your network and what services they are running. For the sake of this tutorial, we will piece together all machines that fall under the categories: ssh-servers and debian-servers.</p><p><strong>Machine-specific .cfg files</strong></p><p>The first thing to do is to create a specific .cfg file for each machine you need to add.  This subject was already addressed in the &#8220;<a
title="Easily extend Nagios' functionality" href="http://www.ghacks.net/2010/03/27/easily-extend-nagios-functionality/" target="_blank">Easily extend Nagios&#8217; functionality</a>&#8221; article. Without these .cfg files, Nagios will not be able to see the machines &#8211; this is critical for being able to group machines by service.</p><p><strong>Setting up the groups</strong></p><p>If you look in <strong>/etc/nagios3/conf.d</strong> you will find a file called <strong>hostgroups_nagios2.cfg </strong>(NOTE: The &#8220;2&#8243; is not a typo. For some reason the configuration files have not been renamed to reflect the migration from 2 to 3.)<strong> </strong>This is the file in charge of grouping machines together by service. A typical entry will look like:</p><p><code># A list of your Debian GNU/Linux servers<br
/> define hostgroup {<br
/> hostgroup_name  debian-servers<br
/> alias           Debian GNU/Linux Servers<br
/> members         localhost, Elive, courtney-desktop<br
/> }</code></p><div
id="attachment_24017" class="wp-caption alignleft" style="width: 292px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/03/hostgroups.png"><img
class="size-full wp-image-24017" src="http://www.ghacks.net/wp-content/uploads/2010/03/hostgroups.png" alt="" width="282" height="267" /></a><p
class="wp-caption-text">Figure 1</p></div><p>As you can see I already have three machines grouped together. You can have as many as you like. Now, when you take a look at the Nagios&#8217; Hostgroup Overview, you will see the machines you have defined listed (see Figure 1).</p><p>Notice the Host names listed. These names are taken from the configuration you see above. You can&#8217;t, however, just edit the names to make them whatever you want. Those names have to reflect the <em>host_name<strong> </strong></em>directive in the particular hosts .cfg file. So for <em>courtney-desktop</em> above you might find a <strong>courtney_desktop.cfg </strong>file containing the line <em>host_name courtney-desktop</em>.</p><p>Now, do the same for all of your SSH servers, by adding in any hosts that serve up ssh to clients. It&#8217;s done the same way. In the <strong>/etc/nagios3/hostgroups_nagios2.cfg </strong>file you will all all hosts to the <em>ssh-servers </em>section.</p><p>Once you have added all your hosts to your groups, you have to make sure you restart Nagios in order for the changes to take effect. Do this with the command <em>/etc/init.d/nagios3 restart</em>. You can now view your groups in your browser.</p><p><strong>Final thoughts</strong></p><p>We keep chugging along with Nagios, making it ever more useful to the already-too-busy administrator. In upcoming articles we will tackle other Nagios-specific tasks.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/03/28/configure-hostgroups-for-nagios/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Easily extend Nagios&#8217; functionality</title><link>http://www.ghacks.net/2010/03/27/easily-extend-nagios-functionality/</link> <comments>http://www.ghacks.net/2010/03/27/easily-extend-nagios-functionality/#comments</comments> <pubDate>Sat, 27 Mar 2010 18:13:55 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Networks]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Advanced]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[desktops]]></category> <category><![CDATA[devices]]></category> <category><![CDATA[hosts]]></category> <category><![CDATA[nagios]]></category> <category><![CDATA[network monitor]]></category> <category><![CDATA[server]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=23990</guid> <description><![CDATA[My last article described how to &#8220;Quickly install Nagios on Ubunut&#8220;. That article had you up and running with the powerful open source network monitoring tool, but not much more. If you really want to make Nagios useful you have to do a bit of work. Some might see this work as too time consuming [...]]]></description> <content:encoded><![CDATA[<p>My last article described how to &#8220;<a
title="Quickly install Nagios on Ubuntu" href="http://www.ghacks.net/2010/03/27/quickly-install-nagios-on-ubuntu/" target="_blank">Quickly install Nagios on Ubunut</a>&#8220;. That article had you up and running with the powerful open source network monitoring tool, but not much more. If you really want to make Nagios useful you have to do a bit of work. Some might see this work as too time consuming and or challenging. I can understand that on a large network. Because Nagios can not do auto-discovery, it is up to the admin to configure any device to be monitored. Naturally no admin is going to want to monitor every single device on their network. That works out okay with Nagios. Now, if you are interested in monitoring every single device, on a larger network, you will either need to get clever with some scripting to search out your devices (and track down their associated addresses) or you will need to move on to a different solution.</p><p>But for those who only need to monitor a few devices, configuring Nagios to do so is actually quite simple. In this article I am going to show you a few configurations to handle and then how to add devices and checks for your installation.</p><p><span
id="more-23990"></span><strong>Post-install configurations and plugins</strong></p><p>Before you get busy setting up devices for Nagios to monitor, you should first install some extra plugins for the system. Open up Synaptic, search for &#8220;nagios&#8221; (no quotes), mark <em>nagios-plugins-extra</em> for installation, and click Apply to install. Once that is done you will already have more functionality with Nagios.</p><p>Now let&#8217;s take care of a couple of configurations. The first is in the <strong>/etc/nagios3/conf.d</strong> directory. The file is called <strong>contacts_nagios2.cfg</strong>. In this file you will configure who is to receive the email alerts. The line to set this configuration is:</p><p><em>email    root@localhost</em></p><p>You will want to change that email address. That is it for this configuration file. Now in order for Nagios to be able to send out alerts via email, the machine housing Nagios has to be able to send those alerts out. You can check that by using the <em>mail </em>command like so:</p><p><em>mail email@address -s TEST</em></p><p>Where email@address is an actual address you can use for testing.</p><p>Once you enter that line, hit Enter and then type some random text. When you&#8217;re done typing hit &lt;Ctrl&gt;d and then Enter. The mail should send away. If not you will have to troubleshoot your mail server (beyond the scope of this tutorial).</p><p><strong>Add a device</strong></p><div
id="attachment_23994" class="wp-caption alignleft" style="width: 309px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/03/nagios_windows1.png"><img
class="size-medium wp-image-23994 " src="http://www.ghacks.net/wp-content/uploads/2010/03/nagios_windows1-499x334.png" alt="" width="299" height="200" /></a><p
class="wp-caption-text">Figure 1</p></div><p>Now for the good stuff. We are going to add a device to Nagios. The device we will add is a Windows XP desktop to monitor. Within the <strong>/etc/nagios3/conf.d</strong> directory you will see a number of .cfg files. These are the files Nagios uses to dictate what is see and how it acts upon what it see. For every device you want to use, I find it best to add a .cfg file. So let&#8217;s create the file <strong>/etc/nagios3/conf.d/windows_xp.cfg</strong>. The contents of this fill will look like what you see in Figure 1.</p><p>As you can see there are a few directives here. The directives are as follows:</p><ul><li>check_command &#8211; The command used to check the status of the device.</li><li>max_check_attempts &#8211; How many times will Nagios retry the status check.</li><li>check_period &#8211; How often are the checks made.</li><li>process_perf_data &#8211; Enable the processing of performance data.</li><li>retain_nonstatus_information &#8211; Enable the retention of non-status information across reboots.</li><li>notification_interval &#8211; How often are notifications sent to inform the administrator this host is not okay.</li><li>notification_period &#8211; How often are notifications sent out.</li><li>notification_options &#8211; The options shown are w &#8211; send notifications on &#8220;warning&#8221; state, u &#8211; send notifications on &#8220;unknown&#8221; state, and &#8220;r&#8221; &#8211; send notifications when a service stops flapping (when a service changes frequently).</li></ul><p>NOTE: Depending upon the version of Nagios you have installed the <em>notification_options </em>will be different. Some instances will not accept the &#8220;w&#8221; option. If you get an error, exchange &#8220;w&#8221; with &#8220;d&#8221; (for down).</p><p>As you can see there are configuration options that will be specific to your devices and networking topology (host_name and address are examples). Once you have created this file save it and restart Nagios with the command <em>sudo /etc/init.d/nagios3 restart </em>command. Now take a look at your Nagios page and you will see the new device you just added.</p><p><strong>Final thoughts</strong></p><p>Someday someone will come up with an automated way to detect devices in Nagios. Until then we are relegated to adding them using this means. Does that mean you should shy away from Nagios? Not at all. Nagios is a powerful tool ready to help network administrators keep tabs on their network devices.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/03/27/easily-extend-nagios-functionality/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>Quickly install Nagios on Ubuntu</title><link>http://www.ghacks.net/2010/03/27/quickly-install-nagios-on-ubuntu/</link> <comments>http://www.ghacks.net/2010/03/27/quickly-install-nagios-on-ubuntu/#comments</comments> <pubDate>Sat, 27 Mar 2010 00:34:13 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Networks]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tools]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[nagios]]></category> <category><![CDATA[Network Monitoring]]></category> <category><![CDATA[server]]></category> <category><![CDATA[Synaptic]]></category> <category><![CDATA[ubuntu]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=23979</guid> <description><![CDATA[Nagios is not just a tool, it&#8217;s one of the best open source network monitors available. Nagios has a simple plug-in design that allows administrators to easily create their own checks and monitors. The problem that so many see with Nagios is that it is supposedly so difficult to install. That is not the case. [...]]]></description> <content:encoded><![CDATA[<p>Nagios is not just a tool, it&#8217;s one of the best open source network monitors available. Nagios has a simple plug-in design that allows administrators to easily create their own checks and monitors. The problem that so many see with Nagios is that it is supposedly so difficult to install. That is not the case. In fact, with the help of the Synaptic package manager, Nagios is simple to install and get up and running.</p><p>In this article I will show you how to quickly get Nagios up and running. In no time you will have Nagios up and running and monitoring your network.</p><p><span
id="more-23979"></span><strong>Features of Nagios</strong></p><p>Before we get to the installation, let&#8217;s take a look at the features of Nagios. Nagios can:</p><ul><li>Monitor network services (SMTP, POP3, HTTP, NNTP, PING, etc.)</li><li>Monitor host resources (processor load, disk usage, etc.)</li><li>Allow for simple plugin design</li><li>Do parallelized service checks</li><li>Define a network host hierarchy using</li><li>Contact administrators when service or host problems occur</li><li>Define event handlers to be run during service or host events for proactive problem resolution</li><li>Automatd log file rotation</li><li>Support the implementation of redundant monitoring hosts</li><li>Offer an optional web interface for viewing current network status, notification and problem history, log file, etc</li></ul><p>Sold yet? You should be, especially considering this tool is free and open source! Now, let&#8217;s get on with the installation.</p><p><strong>Installation</strong></p><p>Follow these simple steps to installing Nagios:</p><ol><li>Fire up Synaptic.</li><li>Search for &#8220;nagios&#8221; (no quotes)</li><li>Mark nagios3 for installation (this will also pick up all of the dependencies)</li><li>Click Apply to install</li></ol><p>During the installation you will be asked for an administrator password. This will be the password for the nagiosadmin user that will have access to the web interface. Once the installation is complete, you need to run a check to make sure everything is okay. The command for this check is:</p><p><em>sudo nagios3 -v /etc/nagios3/nagios.cfg</em></p><p>When this command runs you will see something like:</p><p><code>Nagios 3.0.2<br
/> Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org)<br
/> Last Modified: 05-19-2008<br
/> License: GPL</code></p><p><code>Reading configuration data…</code></p><p><code>Running pre-flight check on configuration data…</code></p><p><code>Checking services…<br
/> Checked 7 services.<br
/> Checking hosts…<br
/> Checked 2 hosts.<br
/> Checking host groups…<br
/> Checked 5 host groups.<br
/> Checking service groups…<br
/> Checked 0 service groups.<br
/> Checking contacts…<br
/> Checked 1 contacts.<br
/> Checking contact groups…<br
/> Checked 1 contact groups.<br
/> Checking service escalations…<br
/> Checked 0 service escalations.<br
/> Checking service dependencies…<br
/> Checked 0 service dependencies.<br
/> Checking host escalations…<br
/> Checked 0 host escalations.<br
/> Checking host dependencies…<br
/> Checked 0 host dependencies.<br
/> Checking commands…<br
/> Checked 142 commands.<br
/> Checking time periods…<br
/> Checked 4 time periods.<br
/> Checking for circular paths between hosts…<br
/> Checking for circular host and service dependencies…<br
/> Checking global event handlers…<br
/> Checking obsessive compulsive processor commands…<br
/> Checking misc settings…</code></p><p><code>Total Warnings: 0<br
/> Total Errors:   0</code></p><p>With the results giving 0 errors and 0 warnings, you are ready to log in.</p><p><strong>Logging in</strong></p><div
id="attachment_23980" class="wp-caption alignleft" style="width: 250px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/03/nagios.png"><img
class="size-medium wp-image-23980  " src="http://www.ghacks.net/wp-content/uploads/2010/03/nagios-500x310.png" alt="" width="240" height="149" /></a><p
class="wp-caption-text">Figure 1</p></div><p>Fire up your web browser and point it to <em>http://IP_TO_SERVER/nagios3</em> at which point you will be asked for login credentials. Remember that password you gave during installation? That is the password you will use to login (with the user <em>nagiosadmin</em>).</p><p>When you log in you will be greeted with the Nagios welcome screen (see Figure 1), at which point you are ready to start monitoring.</p><p><strong>Final thoughts</strong></p><p>Wasn&#8217;t so bad was it? And you though Nagios was impossible to install. Fortunately it&#8217;s not. And even more fortunately is how powerful Nagios is. You will be blown away at how useful this tool is.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/03/27/quickly-install-nagios-on-ubuntu/feed/</wfw:commentRss> <slash:comments>7</slash:comments> </item> <item><title>How to install Nagios on Ubuntu server</title><link>http://www.ghacks.net/2009/06/08/how-to-install-nagios-on-ubuntu-server/</link> <comments>http://www.ghacks.net/2009/06/08/how-to-install-nagios-on-ubuntu-server/#comments</comments> <pubDate>Sun, 07 Jun 2009 23:06:10 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Networks]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[The Web]]></category> <category><![CDATA[Tutorials Advanced]]></category> <category><![CDATA[nagios]]></category> <category><![CDATA[server monitoring]]></category> <category><![CDATA[system monitoring]]></category> <category><![CDATA[ubuntu]]></category> <category><![CDATA[ubuntu server]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=13369</guid> <description><![CDATA[Are you one of those special geeks that think there is never TMI (too much information)? If that describes you then Nagios is the monitor for you. Once installed, Nagios will keep you busy with more information about your system than you ever thought possible. But it&#8217;s not just a matter of running apt-get install [...]]]></description> <content:encoded><![CDATA[<p>Are you one of those special geeks that think there is never TMI (too much information)? If that describes you then <a
title="Nagios" href="http://www.nagios.org" target="_blank">Nagios</a> is the monitor for you. Once installed, Nagios will keep you busy with more information about your system than you ever thought possible. But it&#8217;s not just a matter of running apt-get install nagios. No, there&#8217;s more to the installation than that.</p><p>In this article you will see how to install Nagios on a working Ubuntu Server installation. The release I used was 9.04, but you should be able to use 8.04 just as easily.</p><p><span
id="more-13369"></span><strong>Features</strong></p><p>You want features? Nagios is full of them. Nagios can monitor your entire network, you can handle problem remediation, you can plan network downtime, you can watch hosts, systems, services, applications..there&#8217;s very little you can&#8217;t do with Nagios.</p><p>But let&#8217;s think about this installation. The best (and really only good) way to install Nagios is from source. This means you are going to have to do some compliation. Don&#8217;t worry, it&#8217;s not hard&#8230;when you have a step-by-step guide that is.</p><p><strong>Before you start</strong></p><p>If you are using, as I did, a Ubuntu server installation, you will need to install a few tools first. So from the command line (on your Ubuntu server) issue the following commands:</p><p><em>sudo apt-get install php5-gd</em></p><p><em>sudo apt-get install gcc</em></p><p><em>sudo apt-get install make</em></p><p>The above commands will install the tools you need in order to get Nagios installed. If you don&#8217;t install the above, you won&#8217;t be able to complete the installation.</p><p><strong>Installing Nagios &#8211; preflight</strong></p><p>Before you actually run the installation you will need to take care of some user/group accounting first.</p><p>Create the user <strong>nagios:</strong></p><p><strong></strong><em>sudo useradd -m nagios</em></p><p><em><span
style="font-style: normal;">Give the nagios user a password:</span></em></p><p><em>sudo passwd nagios<span
style="font-style: normal;"> </span></em></p><p>NOTE: You will have to enter the new password twice for the above command.</p><p>Create the group <strong>nagios:<br
/> <span
style="font-weight: normal;"><em>sudo groupadd nagios</em></span> </strong></p><p>Add the user <strong>nagios </strong>to the group <strong>nagios:</strong></p><p><em>sudo usermod -G nagios nagios</em></p><p>Create the group <strong>nagcmd:</strong></p><p>sudo groupadd nagcmd</p><p>Add the user <strong>nagios </strong>to the group <strong>nagcmd:</strong></p><p>sudo usermod -a -G nagcmd nagios</p><p>Add the Apache user to the group <strong>nagcmd:</strong></p><p><em>sudo usermod -a -G nagcmd www-data</em></p><p><em><strong>Installing Nagios and Nagios Plugins</strong></em></p><p><em>The first thing to do is to download the files you need. Issue the commands:</em></p><p><code>wget http://osdn.dl.sourceforge.net/sourceforge/nagios/nagios-3.0.6.tar.gz</code></p><p>and</p><p><code>wget http://osdn.dl.sourceforge.net/sourceforge/nagiosplug/nagios-<br
/> plugins-1.4.11.tar.gz</code></p><p>to download the files you need.</p><p>Untar the Nagios file with:</p><p><em>tar xvzf nagios-3.0.6.tar.gz</em></p><p>Change into the newly created Nagios directory with the command:</p><p><em>cd nagios-3.0.6</em></p><p>Now run the configure script using the nagcmd defined as the command group with the command:</p><p><em>sudo ./configure &#8211;with-command-group=nagcmd</em></p><p>Time to compile:</p><p><em>sudo make all</em></p><p>Time to install everything:</p><p><em>make install</em></p><p><em>make install-init</em></p><p><em>make install-config</em></p><p><em>make install-commandmode</em></p><p>Almost ready to finalize the installation of Nagios (before moving on to installing the plugins.) There is one simple configuration to take care of (for the basic installation). Open up the <strong>/usr/local/nagios/etc/objects/contacts.cfg </strong>file and add your email address as the contact email address. That&#8217;s the only configuration to change for now.</p><p><strong>Configuring for the Web interface</strong></p><p>There are just a few commands to run to configure the Web interface:</p><p><em>make install-webconf</em></p><p><em>htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin</em></p><p><em>/etc/init.d/apache2 reload</em></p><p>The final command above simply restarts Apache.</p><p><strong>Install the plugins</strong></p><p>Before you log into your Nagios installation you have to install your plugins first. Change to the directory you downloaded the Nagios files to and untar the plugins file:</p><p><em>tar xvzf nagios-plugins-1.4.11.tar.gz</em></p><p>Now change into the newly created directory:</p><p><em>cd nagios-plugins-1.4.11</em></p><p>Compile the plugins with the command:</p><p><em>sudo ./configure &#8211;with-nagios-user=nagios &#8211;with-nagios-group=nagios</em></p><p>Now install the plugins with the following commands:</p><p>make</p><p>make install</p><p><em><strong>Fire it up!</strong></em></p><p><em>Of course you want to make sure Nagios starts any time the system is restarted. Do this with the command:</em></p><p><em>sudo ln -s /etc/init.d/nagios /etc/rcS.d/S99nagios</em></p><p>And finally, before you start up Nagios, make sure there are no errors with the command:</p><p><em>sudo /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg</em></p><p>If you see no errors reported, it&#8217;s time to start it up. Issue the command:</p><p><em>sudo /etc/init.d/nagios start</em></p><p>Nagios is ready to go. Point your browser to:</p><p><em>http://ADDRESS_OF_NAGIOS_SERVER/nagios</em></p><p>You should be ready to enjoy all that is Nagios. Congratulations.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/06/08/how-to-install-nagios-on-ubuntu-server/feed/</wfw:commentRss> <slash:comments>15</slash:comments> </item> </channel> </rss>
