<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: MMM Nagios plugin</title>
	<atom:link href="http://blog.mysql-mmm.org/2009/10/mmm-nagios-plugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mysql-mmm.org/2009/10/mmm-nagios-plugin/</link>
	<description>Multi-Master Replication Manager for MySQL</description>
	<lastBuildDate>Mon, 23 Jan 2012 16:33:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: roni</title>
		<link>http://blog.mysql-mmm.org/2009/10/mmm-nagios-plugin/comment-page-1/#comment-125</link>
		<dc:creator>roni</dc:creator>
		<pubDate>Mon, 05 Dec 2011 09:33:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mysql-mmm.org/?p=56#comment-125</guid>
		<description>Hello 
i have a question about check_mm. If i start that scrip on the mmm_control Server  its ok but i start that script on my nagios server whith check_nrpe comes following message:CRITICAL: Cannot Find/Execute mmm_control
 
I hope you can me help</description>
		<content:encoded><![CDATA[<p>Hello<br />
i have a question about check_mm. If i start that scrip on the mmm_control Server  its ok but i start that script on my nagios server whith check_nrpe comes following message:CRITICAL: Cannot Find/Execute mmm_control</p>
<p>I hope you can me help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Titanium Jewellery</title>
		<link>http://blog.mysql-mmm.org/2009/10/mmm-nagios-plugin/comment-page-1/#comment-71</link>
		<dc:creator>Titanium Jewellery</dc:creator>
		<pubDate>Thu, 06 Jan 2011 03:45:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mysql-mmm.org/?p=56#comment-71</guid>
		<description>I am really eager to get nagios monitoring my mmm deployment, but am running into a few snags. I have nrpe working properly and I can call check_mmm, but it always returns status ok no matter what. Any ideas?</description>
		<content:encoded><![CDATA[<p>I am really eager to get nagios monitoring my mmm deployment, but am running into a few snags. I have nrpe working properly and I can call check_mmm, but it always returns status ok no matter what. Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: istvan_podor</title>
		<link>http://blog.mysql-mmm.org/2009/10/mmm-nagios-plugin/comment-page-1/#comment-35</link>
		<dc:creator>istvan_podor</dc:creator>
		<pubDate>Fri, 13 Aug 2010 21:15:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mysql-mmm.org/?p=56#comment-35</guid>
		<description>@Josh

Sorry for ignoring your comment so long. I have added the changes you made and committed the code.

Thanks a lot. If you have any other patches, let us know!

Istvan</description>
		<content:encoded><![CDATA[<p>@Josh</p>
<p>Sorry for ignoring your comment so long. I have added the changes you made and committed the code.</p>
<p>Thanks a lot. If you have any other patches, let us know!</p>
<p>Istvan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://blog.mysql-mmm.org/2009/10/mmm-nagios-plugin/comment-page-1/#comment-17</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Thu, 07 Jan 2010 05:29:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mysql-mmm.org/?p=56#comment-17</guid>
		<description>The issue for me was that the nrpe daemon, running as the nrpe user, did not have read access to the files in /etc/mysql-mmm/ . We chgrp&#039;d them and now it works :) 

When the nrpe daemon runs the command and it can&#039;t access the files config files it returns an &#039;OK&#039;.  Maybe the code needs to be altered to not show OK if it can&#039;t read the files??

[root@mmmmonitordev01 ~]# cd /etc/mysql-mmm/
[root@mmmmonitordev01 mysql-mmm]# ls -la
total 36
drwxr-xr-x  2 root root  4096 Jan  4 15:38 .
drwxr-xr-x 84 root root 12288 Jan  7 14:37 ..
-rw-r-----  1 root nrpe    33 Dec 21 15:13 mmm_agent.conf
-rw-r-----  1 root nrpe   941 Jan  4 15:38 mmm_common.conf
-rw-r-----  1 root nrpe   325 Jan  4 15:14 mmm_mon.conf
-rw-r-----  1 root nrpe  1293 Dec 21 15:13 mmm_tools.conf

These are the modifications we made to check_mmm

#v1 ERROR Monitor message changed 
    if ($mmm_output =~ /DAEMON IS NOT RUNNING/) {
        my $msg = &quot;CRITICAL: MMM Daemon is not running&quot;;
        report_error($msg, $ERRORS{&#039;CRITICAL&#039;});
    }
#v2 ERROR Monitor message changed 
    if ($mmm_output =~ /ERROR: Can&#039;t connect to monitor daemon/) {
        my $msg = &quot;CRITICAL: MMM Monitor Daemon is not running&quot;;
        report_error($msg, $ERRORS{&#039;CRITICAL&#039;});
    }


	#mmm2 extend
    if ($mmm_output =~ m/passive/i) {
        my $msg = &quot;CRITICAL: MMM Monitor Daemon is in passive mode&quot;;
        report_error($msg, $ERRORS{&#039;WARNING&#039;});
    }

    if ($mmm_output =~ m/agent/i) {
        my $msg = &quot;CRITICAL: MMM Agent Daemon is NOT running on ALL DB&#039;s in the cluster&quot;;
        report_error($msg, $ERRORS{&#039;CRITICAL&#039;});
    }</description>
		<content:encoded><![CDATA[<p>The issue for me was that the nrpe daemon, running as the nrpe user, did not have read access to the files in /etc/mysql-mmm/ . We chgrp&#8217;d them and now it works <img src='http://blog.mysql-mmm.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
<p>When the nrpe daemon runs the command and it can&#8217;t access the files config files it returns an &#8216;OK&#8217;.  Maybe the code needs to be altered to not show OK if it can&#8217;t read the files??</p>
<p>[root@mmmmonitordev01 ~]# cd /etc/mysql-mmm/<br />
[root@mmmmonitordev01 mysql-mmm]# ls -la<br />
total 36<br />
drwxr-xr-x  2 root root  4096 Jan  4 15:38 .<br />
drwxr-xr-x 84 root root 12288 Jan  7 14:37 ..<br />
-rw-r&#8212;&#8211;  1 root nrpe    33 Dec 21 15:13 mmm_agent.conf<br />
-rw-r&#8212;&#8211;  1 root nrpe   941 Jan  4 15:38 mmm_common.conf<br />
-rw-r&#8212;&#8211;  1 root nrpe   325 Jan  4 15:14 mmm_mon.conf<br />
-rw-r&#8212;&#8211;  1 root nrpe  1293 Dec 21 15:13 mmm_tools.conf</p>
<p>These are the modifications we made to check_mmm</p>
<p>#v1 ERROR Monitor message changed<br />
    if ($mmm_output =~ /DAEMON IS NOT RUNNING/) {<br />
        my $msg = &#8220;CRITICAL: MMM Daemon is not running&#8221;;<br />
        report_error($msg, $ERRORS{&#8216;CRITICAL&#8217;});<br />
    }<br />
#v2 ERROR Monitor message changed<br />
    if ($mmm_output =~ /ERROR: Can&#8217;t connect to monitor daemon/) {<br />
        my $msg = &#8220;CRITICAL: MMM Monitor Daemon is not running&#8221;;<br />
        report_error($msg, $ERRORS{&#8216;CRITICAL&#8217;});<br />
    }</p>
<p>	#mmm2 extend<br />
    if ($mmm_output =~ m/passive/i) {<br />
        my $msg = &#8220;CRITICAL: MMM Monitor Daemon is in passive mode&#8221;;<br />
        report_error($msg, $ERRORS{&#8216;WARNING&#8217;});<br />
    }</p>
<p>    if ($mmm_output =~ m/agent/i) {<br />
        my $msg = &#8220;CRITICAL: MMM Agent Daemon is NOT running on ALL DB&#8217;s in the cluster&#8221;;<br />
        report_error($msg, $ERRORS{&#8216;CRITICAL&#8217;});<br />
    }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://blog.mysql-mmm.org/2009/10/mmm-nagios-plugin/comment-page-1/#comment-16</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Wed, 06 Jan 2010 04:56:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mysql-mmm.org/?p=56#comment-16</guid>
		<description>I have the same problem, we are running mmm2. When i run the check locally i get the following;

[root@mmmmonitordev01 check-mysql-all]#  /usr/lib64/nagios/plugins/check-mysql-all/check_mmm
CRITICAL:   db1(10.68.246.71) master/HARD_OFFLINE. Roles: 

Then when i run it via nrpe i get;

[root@monitor01 ~]# /usr/local/nagios/libexec/check_nrpe -u -n -H 10.68.246.70 -c check_mmm
OK

Any ideas? Running in verbose mode does not show anything unusual.</description>
		<content:encoded><![CDATA[<p>I have the same problem, we are running mmm2. When i run the check locally i get the following;</p>
<p>[root@mmmmonitordev01 check-mysql-all]#  /usr/lib64/nagios/plugins/check-mysql-all/check_mmm<br />
CRITICAL:   db1(10.68.246.71) master/HARD_OFFLINE. Roles: </p>
<p>Then when i run it via nrpe i get;</p>
<p>[root@monitor01 ~]# /usr/local/nagios/libexec/check_nrpe -u -n -H 10.68.246.70 -c check_mmm<br />
OK</p>
<p>Any ideas? Running in verbose mode does not show anything unusual.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: istvan_podor</title>
		<link>http://blog.mysql-mmm.org/2009/10/mmm-nagios-plugin/comment-page-1/#comment-15</link>
		<dc:creator>istvan_podor</dc:creator>
		<pubDate>Wed, 30 Dec 2009 06:52:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mysql-mmm.org/?p=56#comment-15</guid>
		<description>No matter what at all? Even when your MMM stopped?

did you tried to set up the warning and critical levels?

MMM plugin is designed to return OK(0) if its doesn&#039;t find any problem.
You can also try running with verbose option to see whats wrong.

You are using mmm1 or mmm2?</description>
		<content:encoded><![CDATA[<p>No matter what at all? Even when your MMM stopped?</p>
<p>did you tried to set up the warning and critical levels?</p>
<p>MMM plugin is designed to return OK(0) if its doesn&#8217;t find any problem.<br />
You can also try running with verbose option to see whats wrong.</p>
<p>You are using mmm1 or mmm2?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elliot Davis</title>
		<link>http://blog.mysql-mmm.org/2009/10/mmm-nagios-plugin/comment-page-1/#comment-14</link>
		<dc:creator>Elliot Davis</dc:creator>
		<pubDate>Mon, 28 Dec 2009 23:30:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mysql-mmm.org/?p=56#comment-14</guid>
		<description>Istvan, Hi,  I am really eager to get nagios monitoring my mmm deployment, but am running into  a few snags.  I have nrpe working properly and I can call check_mmm, but it always returns status ok no matter what.  Any ideas?</description>
		<content:encoded><![CDATA[<p>Istvan, Hi,  I am really eager to get nagios monitoring my mmm deployment, but am running into  a few snags.  I have nrpe working properly and I can call check_mmm, but it always returns status ok no matter what.  Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Lowe</title>
		<link>http://blog.mysql-mmm.org/2009/10/mmm-nagios-plugin/comment-page-1/#comment-12</link>
		<dc:creator>Ryan Lowe</dc:creator>
		<pubDate>Fri, 20 Nov 2009 06:08:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mysql-mmm.org/?p=56#comment-12</guid>
		<description>Istvan, no need to fork.  Ping me on IRC &amp; I&#039;ll give you commit rights:)</description>
		<content:encoded><![CDATA[<p>Istvan, no need to fork.  Ping me on IRC &amp; I&#8217;ll give you commit rights:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: istvan_podor</title>
		<link>http://blog.mysql-mmm.org/2009/10/mmm-nagios-plugin/comment-page-1/#comment-11</link>
		<dc:creator>istvan_podor</dc:creator>
		<pubDate>Wed, 28 Oct 2009 12:06:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mysql-mmm.org/?p=56#comment-11</guid>
		<description>not a bad idea I think. I&#039;m also writing a munin plugin (I know it&#039;s wierd but everybody love drawing graphs right? :)) )</description>
		<content:encoded><![CDATA[<p>not a bad idea I think. I&#8217;m also writing a munin plugin (I know it&#8217;s wierd but everybody love drawing graphs right? <img src='http://blog.mysql-mmm.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ) )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Walter</title>
		<link>http://blog.mysql-mmm.org/2009/10/mmm-nagios-plugin/comment-page-1/#comment-10</link>
		<dc:creator>Walter</dc:creator>
		<pubDate>Wed, 28 Oct 2009 10:31:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mysql-mmm.org/?p=56#comment-10</guid>
		<description>Hey Istvan,

I&#039;m working on one for zabbix. I was thinking of launchpad, maybe we can add it to mmm itself on launchpad?</description>
		<content:encoded><![CDATA[<p>Hey Istvan,</p>
<p>I&#8217;m working on one for zabbix. I was thinking of launchpad, maybe we can add it to mmm itself on launchpad?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

