<?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>Nagios Community</title>
	<atom:link href="http://community.nagios.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://community.nagios.org</link>
	<description>Where the Nagios Community Connects</description>
	<lastBuildDate>Sun, 01 Aug 2010 23:18:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Nagios Twitter Plugin</title>
		<link>http://community.nagios.org/2010/08/01/nagios-twitter-plugin-2/</link>
		<comments>http://community.nagios.org/2010/08/01/nagios-twitter-plugin-2/#comments</comments>
		<pubDate>Sun, 01 Aug 2010 23:18:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Notifications]]></category>

		<guid isPermaLink="false">http://community.nagios.org/?p=965</guid>
		<description><![CDATA[Swarnalakshmi wrote a nice Twitter plugin for Nagios. Get it here.]]></description>
			<content:encoded><![CDATA[<p>Swarnalakshmi wrote a nice Twitter plugin for Nagios.  Get it <a href="http://lynxbites.blogspot.com/2009/10/nagios-twitter-plugin.html">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://community.nagios.org/2010/08/01/nagios-twitter-plugin-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use Twitter for Nagios Notifications</title>
		<link>http://community.nagios.org/2010/08/01/use-twitter-for-nagios-notifications/</link>
		<comments>http://community.nagios.org/2010/08/01/use-twitter-for-nagios-notifications/#comments</comments>
		<pubDate>Sun, 01 Aug 2010 23:16:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Notifications]]></category>

		<guid isPermaLink="false">http://community.nagios.org/?p=963</guid>
		<description><![CDATA[Another Twitter and Nagios HOWTO! EdVoncken wrote a blog post on enabling Twitter notifications in Nagios. Read his article here.]]></description>
			<content:encoded><![CDATA[<p>Another Twitter and Nagios HOWTO!  EdVoncken wrote a blog post on enabling Twitter notifications in Nagios.  Read his article <a href="http://edvoncken.net/2010/07/twitter-for-nagios-notifications/">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://community.nagios.org/2010/08/01/use-twitter-for-nagios-notifications/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nagios Notifications via Twitter</title>
		<link>http://community.nagios.org/2010/08/01/nagios-notifications-via-twitter/</link>
		<comments>http://community.nagios.org/2010/08/01/nagios-notifications-via-twitter/#comments</comments>
		<pubDate>Sun, 01 Aug 2010 23:10:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Notifications]]></category>

		<guid isPermaLink="false">http://community.nagios.org/?p=961</guid>
		<description><![CDATA[Community member phalenor did a nice writeup on how to send Nagios notifications via Twitter. Read his article here.]]></description>
			<content:encoded><![CDATA[<p>Community member phalenor did a nice writeup on how to send Nagios notifications via Twitter.  Read his article <a href="http://phalenor.livejournal.com/12044.html">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://community.nagios.org/2010/08/01/nagios-notifications-via-twitter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nagios Community Blog Back Online</title>
		<link>http://community.nagios.org/2010/08/01/nagios-community-blog-back-online/</link>
		<comments>http://community.nagios.org/2010/08/01/nagios-community-blog-back-online/#comments</comments>
		<pubDate>Sun, 01 Aug 2010 23:04:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Site News]]></category>

		<guid isPermaLink="false">http://community.nagios.org/?p=959</guid>
		<description><![CDATA[The Nagios Community blog appears to have been compromised by a WordPress security issue. We cleaned up the install and things appear to be okay now. Sorry for the downtime!]]></description>
			<content:encoded><![CDATA[<p>The Nagios Community blog appears to have been compromised by a WordPress security issue.  We cleaned up the install and things appear to be okay now.  Sorry for the downtime!</p>
]]></content:encoded>
			<wfw:commentRss>http://community.nagios.org/2010/08/01/nagios-community-blog-back-online/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux.com article on installing Nagios</title>
		<link>http://community.nagios.org/2010/04/07/linux-com-article-on-installing-nagios/</link>
		<comments>http://community.nagios.org/2010/04/07/linux-com-article-on-installing-nagios/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 16:40:08 +0000</pubDate>
		<dc:creator>mstarr</dc:creator>
				<category><![CDATA[HOWTOs]]></category>
		<category><![CDATA[Media Coverage]]></category>
		<category><![CDATA[Nagios]]></category>

		<guid isPermaLink="false">http://community.nagios.org/?p=950</guid>
		<description><![CDATA[Check out this great article by Jack Wallen at Linux.com titled  &#8220;Installing Nagios: An Enterprise-Worthy Network Monitor&#8221;. http://bit.ly/c2UA4O]]></description>
			<content:encoded><![CDATA[<p>Check out this great article by Jack Wallen at Linux.com titled  &#8220;Installing Nagios: An Enterprise-Worthy Network Monitor&#8221;.</p>
<p><a href="http://bit.ly/c2UA4O">http://bit.ly/c2UA4O</a></p>
]]></content:encoded>
			<wfw:commentRss>http://community.nagios.org/2010/04/07/linux-com-article-on-installing-nagios/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Checking virtual machines (VM) on SLES through the Xen host</title>
		<link>http://community.nagios.org/2010/04/06/checking-virtual-machines-vm-on-sles-through-the-xen-host/</link>
		<comments>http://community.nagios.org/2010/04/06/checking-virtual-machines-vm-on-sles-through-the-xen-host/#comments</comments>
		<pubDate>Tue, 06 Apr 2010 14:14:05 +0000</pubDate>
		<dc:creator>Mike Kniaziewicz</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://community.nagios.org/?p=945</guid>
		<description><![CDATA[Everyone should have heard about a &#8220;green&#8221; computer room at this point. The key concept behind a green computer room is vitalization.  Many organizations have implemented a Xen environment within a Linux environment. Nagios can be deployed on a Xen client as you would any other server. However, Xen provides the ability to migrate a [...]]]></description>
			<content:encoded><![CDATA[<p>Everyone should have heard about a &#8220;green&#8221; computer room at this point. The key concept behind a green computer room is vitalization.  Many organizations have implemented a Xen environment within a Linux environment. Nagios can be deployed on a Xen client as you would any other server. However, Xen provides the ability to migrate a Xen client to another Xen host either through command line or heartbeat2 (HA). This article will explain one method for keeping track of where your virtual servers are within the enterprise.</p>
<p><span id="more-945"></span>Challenges:</p>
<ol>
<li>The Xen environment utilizes root SUID</li>
<li>The &#8220;xm&#8221; command used to list the Xen clients is also used for other activities with the Xen environment, including destroying Xen clients.</li>
<li>SOX concerns in regard to Xen client functionality.</li>
<li>Maintaining enterprise standards in regard to deploying scripts.</li>
<li>Using current Nagios monitoring and notification standards.</li>
<li>Do not send notifications because the location of the Xen client is informational.</li>
</ol>
<p>Steps towards Solution:</p>
<ol>
<li>Deploy the Nagios NSCA daemon for passive checks.</li>
<li>Create the script and deploy to the Nagios libexec directory.</li>
<li>Place the script within the Root crontab.</li>
</ol>
<p>Breakdown:</p>
<ol>
<li>Make sure the nagios-plugins and NRPE daemon are deployed on the Xen client.</li>
<li>Install mcrypt packages.</li>
<li>Install the NSCA daemon.</li>
<li>Add the passive check to the Nagios host.</li>
<li>For more information on setting up the NSCA client please refer to: http://community.nagios.org/2009/06/11/nagios-setting-up-the-nsca-addon-for-passive-checks/</li>
<li>Create the monitoring script. Here is a sample KISS script written in Perl:
<pre> $vhosts = $virtmach[0] . "  " . $vhosts .
} } open (FH, "&gt;$tempfile") or die $!;
print FH "$host\t$svc\t$state\tVMs RUNNING: $vhosts\n" or die $!;
my $send_to_nagios=`/opt/nagios/bin/send_nsca nagcorp1 -c
/opt/nagios/etc/send_nsca.cfg &lt; $tempfile`;
close(FH);
exit(0);
}
else {
#no
exit(0);
}</pre>
<pre>#!/usr/local/bin/perl -w
use strict;
use warnings;                                                                                         

#Let us see if this server is running a virtual environment
if (-e "/usr/sbin/xm"){
#yes
#Variables
my @xm_cmd = `/usr/sbin/xm list`;
my $host = `/bin/hostname -f`;
my $svc = "nsca_check_vhosts";
my $state =0;
my $tempfile = "/opt/nagios/libexec/nsca_check_vhosts.tmp";
my $xm_cmd;
my @host;
my $vhosts = " ";
my @virtmach;
my $virtmach;
chomp($host);
shift(@xm_cmd);
foreach $xm_cmd(@xm_cmd){
        chomp($xm_cmd);
        @virtmach = split(/\s* /,$xm_cmd,6);
                if($virtmach[1] &gt; 0  &amp;&amp; $virtmach[1] &lt; 512){</pre>
</li>
<li>Crontab entry on the Xen host:
<pre>#Nagios check of virtual machines
15,30,45,02 * * * * /opt/nagios/libexec/
#</pre>
</li>
<li>Done</li>
</ol>
<p>This is pretty straight forward. There are other examples of how to accomplish this task on the Internet. My primary concern was security. Large entrerprised have security standards, so exceptions are a no-no. This setup takes into consideration the SUID nature of the &#8220;xm&#8221; command and does not provide the Nagios user with additional privilages that could be exploited by outside individuals.</p>
<p>Thoughts and or comments?</p>
<p>Mike Kniaziewicz, MIS</p>
]]></content:encoded>
			<wfw:commentRss>http://community.nagios.org/2010/04/06/checking-virtual-machines-vm-on-sles-through-the-xen-host/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The H Interviews Ethan Galstad</title>
		<link>http://community.nagios.org/2010/03/30/the-h-interviews-ethan-galstad/</link>
		<comments>http://community.nagios.org/2010/03/30/the-h-interviews-ethan-galstad/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 21:02:45 +0000</pubDate>
		<dc:creator>mstarr</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Interviews]]></category>
		<category><![CDATA[Media Coverage]]></category>
		<category><![CDATA[Nagios]]></category>

		<guid isPermaLink="false">http://community.nagios.org/?p=940</guid>
		<description><![CDATA[Ethan Galstad interviewed by Dj Walker Morgan at h-online.com Topics include:  The Nagios future and Nagios and the Community. http://bit.ly/c9s7PY]]></description>
			<content:encoded><![CDATA[<p>Ethan Galstad interviewed by Dj Walker Morgan at h-online.com</p>
<p>Topics include:  The Nagios future and Nagios and the Community.</p>
<p><a href="http://bit.ly/c9s7PY">http://bit.ly/c9s7PY</a></p>
]]></content:encoded>
			<wfw:commentRss>http://community.nagios.org/2010/03/30/the-h-interviews-ethan-galstad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nagios RPMs bundled with Novell&#8217;s SLES</title>
		<link>http://community.nagios.org/2010/01/23/nagios-rpms-bundled-with-novells-sles/</link>
		<comments>http://community.nagios.org/2010/01/23/nagios-rpms-bundled-with-novells-sles/#comments</comments>
		<pubDate>Sun, 24 Jan 2010 00:41:53 +0000</pubDate>
		<dc:creator>Mike Kniaziewicz</dc:creator>
				<category><![CDATA[HOWTOs]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Nagios]]></category>
		<category><![CDATA[sles]]></category>
		<category><![CDATA[suse linux enterprise server]]></category>

		<guid isPermaLink="false">http://community.nagios.org/?p=937</guid>
		<description><![CDATA[Novell has bundled Nagios with SLES. You can deploy Nagios by compiling the binaries or using the RPMs provided with SLES. This article will address installation and configuration of Nagios using the current RPMs delivered with SLES 10 SP3 x64. Build the SLES 10 SP3 x64 environment. You will need to build the environment to [...]]]></description>
			<content:encoded><![CDATA[<p>Novell has bundled Nagios with SLES. You can deploy Nagios by compiling the binaries or using the RPMs provided with SLES. This article will address installation and configuration of Nagios using the current RPMs delivered with SLES 10 SP3 x64.<br />
<span id="more-937"></span><br />
Build the SLES 10 SP3 x64 environment. You will need to build the environment to your organization&#8217;s specifications.<br />
Build Considerations for Nagios:</p>
<ul>
<li> Heavy 	I/O on /var/log/nagios</li>
<li> Heavy 	reads on /etc/nagios during starts and restarts.</li>
<li> Bandwidth: 	consider connection bonding if you have more than one network 	interface. Nagios will use bandwidth, but you also need to consider 	the users connecting to the instance via a web browser.</li>
<li> Memory: 	Nagios will run with 32 MB of memory. However, you need to consider 	Nagios is a web-based application and has a caching mechanism and 	Apache&#8217;s caching mechanism.</li>
<li> Revision 	Control System (RCS): You want to be able to catalog changes to the 	production Nagios system.</li>
</ul>
<p>Nagios Installation</p>
<ol>
<li> Open 	yast2. Open: Software → Software Management
<ul>
<li> Install Packages:<br />
Apache2<br />
Apache2-prefork<br />
Apache2-mod_php5<br />
nagios<br />
nagios-nsca<br />
nagios-nsca-client<br />
nagios-plugins<br />
nagios-plugins-extras<br />
nagios-www<br />
rcs – if the package was not installed during the operating system 	installation.</li>
<li> Press: “Continue” to accept additional packages. You should see packages like fping and libmcrypt to be added to the RPM configurations.</li>
<li> After 	the packages have installed, select: “No” to “install or remove more packages?”</li>
<li> Quit out of yast2.</li>
<li> The installation is complete. At this time you can start Nagios (/etc/init.d/nagios start) and it will work. You can also start Apache (/etc/init.d/apache2 start) and it will work as well. 	However, you will still need to “tweak” Nagios and Apache to 	receive the desired results.</li>
</ul>
</li>
</ol>
<p>Where are the files?<br />
In order to have your system become fully operational you need to know where all the pieces are located. Here is a listing of where the Nagios components are located:</p>
<ol> Host, Service and Nagios Configurations: /etc/nagios/<br />
Web Interface Files: /usr/share/nagios/<br />
Nagios Log and Archives: /var/log/nagios/<br />
Nagios Lock File: /var/run/nagios/<br />
Nagios Log Rotating: /etc/logrotate.d/nagios<br />
Nagios Data Files: /var/lib/nagios/<br />
Nagios Plugins: /usr/lib/nagios/plugins/<br />
CGI Files: /usr/lib/nagios/cgi/</ol>
<p>Configuring Nagios and Web Interface</p>
<ol>
<li> Add 	a nagcmd group to the system. sudo /usr/sbin/groupadd -g 5544 nagcmd</li>
<li> Add 	a nagios user. sudo /usr/sbin/useradd -u 1209 -g 5544 -c “Nagios” 	-d /home/nagios -s /bin/bash -m nagios.</li>
<li> You 	will also need to add the user nagios to the wwwrun group. Sudo 	/usr/sbin/usermod -g wwwrun nagios</li>
<li> Give 	the nagios user a password. sudo passwd nagios (write this down, because you will need to know it later).</li>
<li> Start 	Nagios: sudo /etc/init.d/nagios start.</li>
<li> In 	/etc/apache2/conf.d/nagios.conf, comment out the Directive lines “deny from all.”</li>
<li> Restart apache2: sudo /etc/init.d/apache2 restart.</li>
<li> Open a web browser and go to your host&#8217;s URL: http://your-host-name.com/nagios. 	You will be presented with the basic Nagios screen. However, if you 	select any of the “Monitoring” links you will receive a 	permissions error message.</li>
<li> Create a .htaccess_users file under /usr/share/nagios and add the 	nagiosadmin user and create a password: sudo htpasswd2 -c 	/usr/share/nagios/.htaccess_users nagiosadmin</li>
<li> Add 	the .htaccess file path to /etc/apache2/conf.d/nagios.conf under 	each “Directive” category:<br />
AuthName 	&#8220;Nagios Access&#8221;<br />
AuthType 	Basic<br />
AuthUserFile 	/usr/share/nagios/.htaccess_users<br />
Require 	valid-user</li>
<li> Restart 	apache: sudo /etc/init.d/apache2 restart</li>
<li> Uncomment 	the following lines in /etc/nagios/cgi.cfg:<br />
authorized_for_system_information<br />
authorized_for_configuration_information<br />
authorized_for_system_commands<br />
authorized_for_all_services<br />
authorized_for_all_hosts<br />
authorized_for_all_service_commands<br />
authorized_for_all_host_commands</li>
<li> Restart 	Nagios: /etc/init.d/nagios restart</li>
<li> Refresh your browser window and you will be prompted to login. Login using the nagiosadmin user name and the password you created in step 9.</li>
<li> SECURITY CONSIDERATIONS: Change the ownership of 	/usr/share/nagios/.htaccess_users to wwwrun (apache user) and the permissions to 400. This will ensure Apache can read the file. Root will always be able to read and append to the file. Restart apache 	for the change to take effect.</li>
</ol>
<p>That is all there is to installing Nagios on SLES 10 SP3 using Novell&#8217;s Nagios bundle. I am sorry to say that Novell is bundling Nagios version 2.6, but it is a start.</p>
<p>Enjoy and please provide comments and or insight.</p>
]]></content:encoded>
			<wfw:commentRss>http://community.nagios.org/2010/01/23/nagios-rpms-bundled-with-novells-sles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nagios: Quick MySQL replication for your Nagios installation</title>
		<link>http://community.nagios.org/2010/01/16/nagios-quick-mysql-replication-for-your-nagios-installation/</link>
		<comments>http://community.nagios.org/2010/01/16/nagios-quick-mysql-replication-for-your-nagios-installation/#comments</comments>
		<pubDate>Sat, 16 Jan 2010 15:33:42 +0000</pubDate>
		<dc:creator>Mike Kniaziewicz</dc:creator>
				<category><![CDATA[HOWTOs]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[Nagios]]></category>
		<category><![CDATA[nagios xi]]></category>
		<category><![CDATA[quick method]]></category>
		<category><![CDATA[replication]]></category>

		<guid isPermaLink="false">http://community.nagios.org/?p=933</guid>
		<description><![CDATA[MySQL is the favorite database utility for opensource software. Nagios and Nagios XI use MySQL to store data for retrieval by end-users. The retrieval process becomes evident when you install NDOutils and create organizational structure diagrams. However, why MySQL replication? Replication means exactly what is stated in the dictionary. MySQL provides asynchronous replication between a [...]]]></description>
			<content:encoded><![CDATA[<p>MySQL is the favorite database utility for opensource software. Nagios and Nagios XI use MySQL to store data for retrieval by end-users. The retrieval process becomes evident when you install NDOutils and create organizational structure diagrams. However, why MySQL replication?<br />
<span id="more-933"></span><br />
Replication means exactly what is stated in the dictionary. MySQL provides asynchronous replication between a master and one or more slaves. This article will explain a method I use to create slave instances of MySQL in support of Nagios. These instruction are designed to create a slave instance that we can fail-over to in the future if our master instance and or host fails.</p>
<p>Our scenario involves two physical hosts (in my case I have created two virtual hosts using Xen). One host will house the master (node1) and the other the slave (node2). If you already have an instance of MySQL running in support of Nagios, this procedure will enable you to create a slave without interrupting your current installation and established permissions.</p>
<p><em>NOTE: Read through these instructions to make sure you understand them, because you will want to perform this procedure as quickly as possible. Nagios is going to be trying to writing to the master server while the instance is stopped during our data migration process.</em></p>
<ol>
<li>Identify node1.</li>
<li>On node1 log into MySQL: sudo mysql (provide password).</li>
<li>Create a replication user: CREATE USER &#8216;repl&#8217;@'%.your domain.com&#8217; IDENTIFIED BY &#8216;your password&#8217;; . Make sure you set up a separate account for the replication user, because the userid and password will be in plain text in your master.info and my.cnf files.</li>
<li>Grant the repl user rights: GRANT REPLICATION ON &#8216;*.*&#8217; TO &#8216;repl&#8217;@'%.your domain.com&#8217;; The reason why we use the &#8216;*.*&#8217; is to allow replication of all databases and hosts on the master instance. We use &#8216;%.your domain.com&#8217; so we can create a slave anywhere on our networks.</li>
<li>Once that has been completed we need to proceed to node2 in order to modify the my.cnf file. If MySQL is running on the potential slave instance, stop MySQL.</li>
<li>Set the server-id = 2 (or the next number in your series of slaves).</li>
<li>Set the master-host = node1 hostname (I use the IP address of the master host).</li>
<li>Set the master-user = repl.</li>
<li>Set the master-password = your password (remember, I mentioned earlier that the userid and password for replication will be in plain text).</li>
<li>Set the log-bin = mysql-bin (you need to set this flag in order to have the ability to fail-over to this MySQL instance).</li>
<li>Now you want to start node2&#8242;s instance of MySQL. You will receive some warnings, but the instance should start and try to begin replication.</li>
<li>Log into node2&#8242;s instance of MySQL: sudo mysql and run: &#8220;SHOW SLAVE STATUS;&#8221;  You will see that the MySQL instance is now a slave.</li>
<li>Now, run &#8220;STOP SLAVE;&#8221; This will stop the slave on node2 in preparation for our next steps. You can quit the MySQL session on node2 and return to a command prompt.</li>
<li>On node1&#8242;s r instance of MySQL run: &#8220;FLUSH TABLES WITH READ LOCK;&#8221; This will prevent the tables from updating so we can obtain a snapshot.</li>
<li>Log into another session on node1 so we can perform a backup of the databases. From the command prompt run: mysqldump &#8211;all-databases &#8211;master-data &gt; mydbdump.db. The &#8220;&#8211;master-data&#8221; flag will capture all our required log markers.</li>
<li>We will now restore the data from node1 to node2: sudo mysql &lt; mydbdump.db. Remember, we froze node1, so we are restoring up-to-date data to node2.</li>
<li>Once the restore has completed, log into the MySQL instance on node2 and run: &#8220;START SLAVE;&#8221;</li>
<li>On node1 run: &#8220;UNLOCK TABLES;&#8221; This will begin the master&#8217;s data processing once more.</li>
</ol>
<p>That&#8217;s all there is too it. I use a restore because I want my slave (node2) to spend as little time as possible updating or syncing to node1. This will also save on server load and network bandwidth. To test if replication is working properly perform this test:</p>
<ul>
<li>node1: Log into MySQL and run: &#8220;CREATE DATABASE testing;&#8221;, then &#8220;SHOW DATABASES;&#8221; and you should see the new database &#8220;testing&#8221;.</li>
<li>node2: Log into MySQL and run: &#8220;SHOW DATABASES;&#8221; if replication is working you will now see the &#8220;testing&#8221; database.</li>
</ul>
<p>I hope that helps with your MySQL instance on Nagios or Nagios XI. For more information on MySQL replication please visit: <a href="http://dev.mysql.com/doc/refman/5.0/en/replication-howto.html"> MySQL Replication</a> .</p>
<p>Comments and or other solutions? You can always shoot me an email for questions at mikhail@ebusinessjuncture.com.</p>
]]></content:encoded>
			<wfw:commentRss>http://community.nagios.org/2010/01/16/nagios-quick-mysql-replication-for-your-nagios-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Working with check_http and check_bigip_pool to monitor web sites</title>
		<link>http://community.nagios.org/2010/01/07/working-with-check_http-and-check_bigip_pool-to-monitor-web-sites/</link>
		<comments>http://community.nagios.org/2010/01/07/working-with-check_http-and-check_bigip_pool-to-monitor-web-sites/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 19:02:38 +0000</pubDate>
		<dc:creator>Mike Kniaziewicz</dc:creator>
				<category><![CDATA[HOWTOs]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[check_bigip_pool]]></category>
		<category><![CDATA[check_http]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[web site]]></category>

		<guid isPermaLink="false">http://community.nagios.org/?p=918</guid>
		<description><![CDATA[Happy New Year! Here is a little tip on how we used the check_http and check_bigip_pool to eliminate our need for WebTrends. The servers being monitored are in the DMZ and the Nagios host is inside our firewall. I have deployed the NRPE daemon to our Solaris 9 servers, so we will also need to [...]]]></description>
			<content:encoded><![CDATA[<p>Happy New Year! Here is a little tip on how we used the check_http and check_bigip_pool to eliminate our need for WebTrends. The servers being monitored are in the DMZ and the Nagios host is inside our firewall. I have deployed the NRPE daemon to our Solaris 9 servers, so we will also need to modify the nrpe.cfg file. The check_bigip_pool is run against our F5 appliance, which we use for load balancing. The check_bigip_pool command is run from the Nagios host against the F5. The following information is step-by-step on how I set these hosts and services up.<br />
<span id="more-918"></span><br />
Using check_http is very straight forward. I would suggest that you concentrate on receiving a string or file size in addition to the straight HTTP service check. You also want to check the results by running the command form the command line.</p>
<p>Using check_bigip_pool is also straight forward.  You will need a hostname (hostname for F5),  community (generally public), software version and pool name. The check_bigip_pool will return the number of nodes found running on the F5. So, you will need to work with the warning and critical percentages. <strong>HINT: If check_bigip_pool finds one of two nodes running and you only require one node running, set the warning to 49 and critical to 25. When both nodes are down you will receive a critical alert and notification.</strong></p>
<p>Here are the configuration steps for this setup:</p>
<p>Define what is to be monitored (NOTE: this is just an outline, my organizational setup monitors 5 clients and 7 ports per client):</p>
<pre>Client					URL				Port	HTTP Response
webstore.&lt;your domain&gt;.com	http://webstore			        80	 OK
webstore.&lt;your domain&gt;.com	http://webstore.com/WatchDog.tem 	80	 OK – I am here
f5host.&lt;your domain&gt;.com		your pool name			count of nodes up</pre>
<p>*Service definition are placed within a template file. I prefer to place service definitions within a file that is descriptive of the function. You will also need to create a separate service definition for each service check, because you need to create distinct service_descriptions section. You can leave blanks in the service description; however, I do not because it will remove your ability to acknowledge problems via email.  I also used the “hosts” flag instead of hostgroups, because I have 4 webstore servers, but not all of them are looking at the same URLs and ports. Also include a notes section, we will be using it later for our notification email.</p>
<pre>Service Definition (nagios_host:/path-to-nagios/etc/objects/services/srv_check_http.cfg):

define service{
        use                     generic-service
        hosts                   hostname
        notes                   description of the service being monitored.
        service_description    	check_webstore
        check_command        	check_nrpe!check_webstore
        max_check_attempts      3
        normal_check_interval   5
        retry_check_interval    1
        check_period            24x7
        contact_groups          webstore_admins
        }

*Notice the variation in the check_command definition? This is so you can run the command
on the Nagios host and be listed under the defined host. 

F5 Service Definition (nagios_host:/path-to-nagios/etc/objects/services/f5_checks.cfg):

define service{
        use                      generic-service
        hosts                    f5host
        service_description      webstore_business_station
        notes                    There are 0 nodes online for http://business-station.coat.com.
        check_command            check_webstore_business_station_pool!
        max_check_attempts       3
        normal_check_interval    5
        retry_check_interval     1
        notification_period      24x7
        check_period             24x7
        contact_groups           webstore_admins
        }</pre>
<p>*Host definition is placed within a template. I have created a separate template for each classification of hosts, which makes it easier to find and update hosts. The host definition would be the same for the f5 server.</p>
<pre>Host Definition (nagios_host:/path_to_nagios/etc/objects/hosts/webstore_servers.cfg):

define host{
        use                      webstore-servers   ; Name of host template to use
        host_name                your host's name
        address                  ip_address
        alias                    short name for your host
        notes                    <strong>What does the host do &lt;br&gt;LOCATION:&lt;CONSOLE: &gt;</strong>
        icon_image               sun_logo.gif
        icon_image_alt           Sun Host
        hostgroups               Add your host groups for standard monitoring and specialty
                                 monitoring
        notification_period      24x7
        }</pre>
<p>*Here is how I defined the commands. For separation purposes, I prefer to the definitions within a distinct configuration file and give each command name a distinct definition. This way if one port is not accessible, you can address the one port issue and not assume the entire web application is down.</p>
<pre>Command Definition (nagios_host:/path_to_nagios/etc/objects/commands/cmd_http.cfg):

define command{
        command_name    	check_webstore
        command_line    	$USER1$/check_http  -H $ARG1$ -u $ARG2$ -p $ARG3$
        }

F5 Command Definition (nagios_host:/path_to_nagios/etc/objects/commands/cmd_check_bigip_pool.cfg):

define command{
        command_name    	check_webstore_pool
        command_line    	$USER1$/check_bigip_pool -H $HOSTADDRESS$ -C $ARG1$ -S $ARG2$ -P $ARG3$
                                 -w $ARG4$ -c $ARG5$
        }</pre>
<p>*I combine the contactgroup with the contact definition in its own file. You may not have the luxury of email aliases, so this helps me manage the contacts for a specific host or service.</p>
<pre>Contact Definition (nagios_host:/path_to_nagios/etc/objects/contacts/webstore_admins.cfg):

define contactgroup{
        contactgroup_name          webstore_admins
        alias                      WEBSTORE ADMINS
        members                    webstore_admins
        }
define contact{
        contact_name               webstore_admins
        alias                      WEBSTORE Admins
        contact_groups             webstore_admins
        host_notifications_enabled      0
        service_notifications_enabled  	1
        service_notification_period     24x7
        host_notification_period        24x7
        service_notification_options   	w,u,c,r
        host_notification_options      	d,r
        service_notification_commands   notify-webstore-service-by-email
        host_notification_commands     	notify-linux-host-by-email
        email                           webstore_support@your_domain.com
        can_submit_commands             1
        }</pre>
<p>*Notifications are fun. I keep separate command files, because different groups need to receive different information. Notice that the service_notification_commands in the contacts matches the notification definition command name. Within the definition, you will find the notes section after the “-s” flag and also the method I use for enabling problem acknowledgments via a link within email.</p>
<pre>Notification Definition (nagios_host:/path_to_nagios/etc/objects/commands/
webstore_admins_email_notification.cfg):

# Linux 'notify-webstore-service-by-email' command definition
define command{
        command_name    notify-webstore-service-by-email
        command_line    /usr/bin/printf "%b" "If this is a CRITICAL problem, please insure the
ecommerce on-call person is notified.\n\nHostname:\t\t$HOSTNAME$\nService:\t\t$SERVICEDESC$\n
State:\t\t\t$SERVICESTATE$\nDate/Time:\t\t$LONGDATETIME$\nAdditional Info:\t$SERVICEOUTPUT$
\nAcknowledge:\t\thttp://nagios_host.your_domain.com/nagios/cgi-bin/cmd.cgi?cmd_typ=34&amp;host=
$HOSTNAME$&amp;service=$SERVICEDESC$\nAuthor:\t\t$SERVICEACKAUTHOR$\nAcknowledgement:\t$SERVICEACKCOMMENT$"
| /usr/bin/mailx -s "$HOSTALIAS$:$SERVICENOTES$" $CONTACTEMAIL$ -r core.admin@coat.com
        }

Email Notification Message Received:

Subject: &lt;Your service notes&gt;
Body:
If this is a CRITICAL problem, please insure the ecommerce on-call person is notified.

Hostname:               webstore1.coat.com
Service:                check_webstore_8150
State:                  CRITICAL
Date/Time:              Wed Jan 6 02:24:39 EST 2010
Additional Info:        CRITICAL - Socket timeout after 10 seconds
Acknowledge:	        http://nagios_host.your_domain.com/nagios/cgi-bin/cmd.cgi?cmd_typ=34
                        &amp;host=$service=service_name
Author:
Acknowledgement:</pre>
<p>Hopefully this helps with your monitoring of web sites. Any questions please feel free to email me at mikhail@ebusinessjuncture.com. Here is a link to the document <a href="http://tech.ebusinessjuncture.com/2010/01/nagios-using-check_http-and-check_bigip_pool-to-monitor-web-sites-documentation/"> HTTP Monitoring Write-up</a></p>
<p>If anyone has comments or another method to perform this task, please leave a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://community.nagios.org/2010/01/07/working-with-check_http-and-check_bigip_pool-to-monitor-web-sites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
