<?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: check_mssql_health</title>
	<atom:link href="http://labs.consol.de/lang/de/nagios/check_mssql_health/feed/" rel="self" type="application/rss+xml" />
	<link>http://labs.consol.de</link>
	<description>Open Source by ConSol*</description>
	<lastBuildDate>Fri, 30 Dec 2011 21:13:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Mark Thomas</title>
		<link>http://labs.consol.de/lang/de/nagios/check_mssql_health/comment-page-1/#comment-19636</link>
		<dc:creator>Mark Thomas</dc:creator>
		<pubDate>Wed, 06 Apr 2011 17:04:24 +0000</pubDate>
		<guid isPermaLink="false">http://labs.consol.de/check_mssql_health/#comment-19636</guid>
		<description>&lt;p&gt;&lt;a href=&quot;#comment-2070&quot; rel=&quot;nofollow&quot;&gt;@lausser&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;This last instuction worked for me!
Well this is the last one I read for now anyway
Thank you.
Mark&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p><a href="#comment-2070" rel="nofollow">@lausser</a>,</p>

<p>This last instuction worked for me!
Well this is the last one I read for now anyway
Thank you.
Mark</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Mirza Dedic</title>
		<link>http://labs.consol.de/lang/de/nagios/check_mssql_health/comment-page-2/#comment-17526</link>
		<dc:creator>Mirza Dedic</dc:creator>
		<pubDate>Fri, 11 Mar 2011 22:20:07 +0000</pubDate>
		<guid isPermaLink="false">http://labs.consol.de/check_mssql_health/#comment-17526</guid>
		<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I am trying to execute the following check to exclude some databases in the &quot;database-backup-age&quot; mode..&lt;/p&gt;

&lt;p&gt;Do I need to set:&lt;/p&gt;

&lt;p&gt;use_regexp_matching=1 ?&lt;/p&gt;

&lt;p&gt;I also have:&lt;/p&gt;

&lt;p&gt;illegal_object_name_chars=&lt;code&gt;~!$%^&amp;*&#124;&#039;&quot;&lt;&gt;?,()=
illegal_macro_output_chars=&lt;/code&gt;~$&amp;&#124;&#039;&quot;&lt;&gt;&lt;/p&gt;

&lt;p&gt;define service{
        use generic-service
        host_name van-sql02
        service_description Elapsed time in hours since a database was last backupped
        check_command check_van-sql02_backup!database-backup-age!24!48
        process_perf_data 1
}
define command{
        command_name    check_van-sql02_backup
        command_line    $USER1$/check_mssql_health -t 10 --hostname 172.16.x.xxx --username app_xxxxx --password xxxxx --mode $ARG1$ ----warning $ARG2$ --critical $ARG3$ --name=&quot;^(?!(tempdb))&quot; --regexp
}&lt;/p&gt;

&lt;p&gt;My notification output comes up as:&lt;/p&gt;

&lt;p&gt;Additional Info:
(null)&lt;/p&gt;

&lt;p&gt;It works if manually ran from shell the shell.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi,</p>

<p>I am trying to execute the following check to exclude some databases in the &#8220;database-backup-age&#8221; mode..</p>

<p>Do I need to set:</p>

<p>use_regexp_matching=1 ?</p>

<p>I also have:</p>

<p>illegal_object_name_chars=<code>~!$%^&amp;*|'"&lt;&gt;?,()=
illegal_macro_output_chars=</code>~$&amp;|&#8217;&#8221;&lt;&gt;</p>

<p>define service{
        use generic-service
        host_name van-sql02
        service_description Elapsed time in hours since a database was last backupped
        check_command check_van-sql02_backup!database-backup-age!24!48
        process_perf_data 1
}
define command{
        command_name    check_van-sql02_backup
        command_line    $USER1$/check_mssql_health -t 10 &#8211;hostname 172.16.x.xxx &#8211;username app_xxxxx &#8211;password xxxxx &#8211;mode $ARG1$ &#8212;-warning $ARG2$ &#8211;critical $ARG3$ &#8211;name=&#8221;^(?!(tempdb))&#8221; &#8211;regexp
}</p>

<p>My notification output comes up as:</p>

<p>Additional Info:
(null)</p>

<p>It works if manually ran from shell the shell.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Funk</title>
		<link>http://labs.consol.de/lang/de/nagios/check_mssql_health/comment-page-2/#comment-17429</link>
		<dc:creator>Alex Funk</dc:creator>
		<pubDate>Thu, 10 Mar 2011 19:55:45 +0000</pubDate>
		<guid isPermaLink="false">http://labs.consol.de/check_mssql_health/#comment-17429</guid>
		<description>&lt;p&gt;Thanks for the awesome plugin.  It works like a charm.  I had to call perl manually (Like Tapan suggested), but I&#039;ll chalk that up to CentOS weirdness.&lt;/p&gt;

&lt;p&gt;Keep up the good work!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks for the awesome plugin.  It works like a charm.  I had to call perl manually (Like Tapan suggested), but I&#8217;ll chalk that up to CentOS weirdness.</p>

<p>Keep up the good work!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: ChandraShaker</title>
		<link>http://labs.consol.de/lang/de/nagios/check_mssql_health/comment-page-1/#comment-17244</link>
		<dc:creator>ChandraShaker</dc:creator>
		<pubDate>Tue, 08 Mar 2011 20:43:34 +0000</pubDate>
		<guid isPermaLink="false">http://labs.consol.de/check_mssql_health/#comment-17244</guid>
		<description>&lt;p&gt;&lt;a href=&quot;#comment-99&quot; rel=&quot;nofollow&quot;&gt;@david&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;1) please visit  http://www.google.com/language_tools?hl=EN&lt;/p&gt;

&lt;p&gt;2) past the below url&lt;/p&gt;

&lt;p&gt;http://labs.consol.de/nagios/check_mssql_health/&lt;/p&gt;

&lt;p&gt;3) select your destination language, source language is german&lt;/p&gt;

&lt;p&gt;4) wait for few min, you will see the output in the language you prefered&lt;/p&gt;

&lt;p&gt;Regards
Chandra&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p><a href="#comment-99" rel="nofollow">@david</a>,</p>

<p>1) please visit  <a href="http://www.google.com/language_tools?hl=EN" rel="nofollow">http://www.google.com/language_tools?hl=EN</a></p>

<p>2) past the below url</p>

<p><a href="http://labs.consol.de/nagios/check_mssql_health/" rel="nofollow">http://labs.consol.de/nagios/check_mssql_health/</a></p>

<p>3) select your destination language, source language is german</p>

<p>4) wait for few min, you will see the output in the language you prefered</p>

<p>Regards
Chandra</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://labs.consol.de/lang/de/nagios/check_mssql_health/comment-page-2/#comment-16976</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Sun, 06 Mar 2011 06:05:31 +0000</pubDate>
		<guid isPermaLink="false">http://labs.consol.de/check_mssql_health/#comment-16976</guid>
		<description>&lt;p&gt;&lt;a href=&quot;#comment-16959&quot; rel=&quot;nofollow&quot;&gt;@Dan&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;In case any one wants to rest of this here it is:&lt;/p&gt;

&lt;p&gt;I call a bash script as the nagios command.&lt;/p&gt;

&lt;p&gt;This script has all the funky date stuff because the datetime stamp used with this particular SQL2005 DB is not in (what I would say), the proper format. But, it is what it is so I had to deal with it. It does NOT deal with date time ranges that span one day to the day before, nor the month before: we will only be running this script during daylight hours anyway.&lt;/p&gt;

&lt;p&gt;What this does is let us know if our website shopping cart has had at least 1 order in the last hour. Which should be a clear indication that our shopping cart is properly functional.&lt;/p&gt;

&lt;p&gt;!/bin/bash&lt;/p&gt;

&lt;p&gt;month=$(echo $(date +%_m))
day=$(echo $(date +%_d))
year=$(echo $(date +%_Y))
hour=$(date +%l)
minute=$(date +%M)
second=$(date +%S)
ampm=$(date +%p)
timestamp=$(echo $hour:$minute:$second)
lasthour=$(echo &quot;$hour - 1&quot;&#124;bc)&lt;/p&gt;

&lt;p&gt;if [ $lasthour = 12 ]; then
  if [ $ampm = PM ]; then
    lastampm=AM
  else
    lastampm=PM
  fi
else
  lastampm=$ampm
fi&lt;/p&gt;

&lt;p&gt;lasttimestamp=$(echo $lasthour:$minute:$second)&lt;/p&gt;

&lt;p&gt;timeNow=&quot;$month/$day/$year $timestamp $ampm&quot;
timeLast=&quot;$month/$day/$year $lasttimestamp $lastampm&quot;&lt;/p&gt;

&lt;p&gt;/usr/lib64/nagios/plugins/check_mssql_health --hostname=ipAddress --username=username --password=password --name2=hourlyorders --warning=1: --critical=1: --mode sql --name &quot;SELECT count(*) FROM DBNAME.dbo.Orders WHERE OrderDate &gt;= &#039;$timeLast&#039; AND OrderDate &lt; &#039;$timeNow&#039;&quot;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p><a href="#comment-16959" rel="nofollow">@Dan</a>,</p>

<p>In case any one wants to rest of this here it is:</p>

<p>I call a bash script as the nagios command.</p>

<p>This script has all the funky date stuff because the datetime stamp used with this particular SQL2005 DB is not in (what I would say), the proper format. But, it is what it is so I had to deal with it. It does NOT deal with date time ranges that span one day to the day before, nor the month before: we will only be running this script during daylight hours anyway.</p>

<p>What this does is let us know if our website shopping cart has had at least 1 order in the last hour. Which should be a clear indication that our shopping cart is properly functional.</p>

<p>!/bin/bash</p>

<p>month=$(echo $(date +%_m))
day=$(echo $(date +%_d))
year=$(echo $(date +%_Y))
hour=$(date +%l)
minute=$(date +%M)
second=$(date +%S)
ampm=$(date +%p)
timestamp=$(echo $hour:$minute:$second)
lasthour=$(echo &#8220;$hour &#8211; 1&#8243;|bc)</p>

<p>if [ $lasthour = 12 ]; then
  if [ $ampm = PM ]; then
    lastampm=AM
  else
    lastampm=PM
  fi
else
  lastampm=$ampm
fi</p>

<p>lasttimestamp=$(echo $lasthour:$minute:$second)</p>

<p>timeNow=&#8221;$month/$day/$year $timestamp $ampm&#8221;
timeLast=&#8221;$month/$day/$year $lasttimestamp $lastampm&#8221;</p>

<p>/usr/lib64/nagios/plugins/check_mssql_health &#8211;hostname=ipAddress &#8211;username=username &#8211;password=password &#8211;name2=hourlyorders &#8211;warning=1: &#8211;critical=1: &#8211;mode sql &#8211;name &#8220;SELECT count(*) FROM DBNAME.dbo.Orders WHERE OrderDate &gt;= &#8216;$timeLast&#8217; AND OrderDate &lt; &#8216;$timeNow&#8217;&#8221;</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://labs.consol.de/lang/de/nagios/check_mssql_health/comment-page-2/#comment-16959</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Sun, 06 Mar 2011 02:43:32 +0000</pubDate>
		<guid isPermaLink="false">http://labs.consol.de/check_mssql_health/#comment-16959</guid>
		<description>&lt;p&gt;&lt;a href=&quot;#comment-16945&quot; rel=&quot;nofollow&quot;&gt;@Dan&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Solved this myself after reading almost all above comments.&lt;/p&gt;

&lt;p&gt;./check_mssql_health --hostname=ipAddress --username=username --password=password --mode sql --name &quot;SELECT count(*) FROM DBNAME.dbo.Orders WHERE OrderDate &gt;= &#039;3/5/2011 1:00:00 PM&#039; AND OrderDate &lt; &#039;3/5/2011 2:01:00 PM&#039;&quot; --name2=ordernumber&lt;/p&gt;

&lt;p&gt;OK - ordernumber: 0 &#124; &#039;ordernumber&#039;=0;1;5&lt;/p&gt;

&lt;p&gt;Whew. Awesome tool!
Dan&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p><a href="#comment-16945" rel="nofollow">@Dan</a>,</p>

<p>Solved this myself after reading almost all above comments.</p>

<p>./check_mssql_health &#8211;hostname=ipAddress &#8211;username=username &#8211;password=password &#8211;mode sql &#8211;name &#8220;SELECT count(*) FROM DBNAME.dbo.Orders WHERE OrderDate &gt;= &#8217;3/5/2011 1:00:00 PM&#8217; AND OrderDate &lt; &#8217;3/5/2011 2:01:00 PM&#8217;&#8221; &#8211;name2=ordernumber</p>

<p>OK &#8211; ordernumber: 0 | &#8216;ordernumber&#8217;=0;1;5</p>

<p>Whew. Awesome tool!
Dan</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://labs.consol.de/lang/de/nagios/check_mssql_health/comment-page-2/#comment-16945</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Sun, 06 Mar 2011 01:10:18 +0000</pubDate>
		<guid isPermaLink="false">http://labs.consol.de/check_mssql_health/#comment-16945</guid>
		<description>&lt;p&gt;Using the latest version I am attempting to pull a count from SQL2005&lt;/p&gt;

&lt;p&gt;./check_mssql_health --hostname=ipAddress --username=username --password=password --name DBNAME --name2 OrderNumber --mode sql &quot;SELECT count(*) FROM Orders WHERE OrderDate &gt;= &#039;3/5/2011 1:00:00 PM&#039; AND OrderDate &lt; &#039;3/5/2011 1:01:00 PM&#039;&quot;&lt;/p&gt;

&lt;p&gt;expected result should show a value of: 0&lt;/p&gt;

&lt;p&gt;Error Message:
DBD::Sybase::st execute failed: Server message number=2812 severity=16 state=62 line=1 server=ServerName text=Could not find stored procedure &#039;DNAME&#039;.  at ./check_mssql_health line 2212.
Use of uninitialized value $value in numeric gt (&gt;) at ./check_mssql_health line 1510.
Use of uninitialized value $value in numeric gt (&gt;) at ./check_mssql_health line 1511.
OK - ordernumber:&lt;/p&gt;

&lt;p&gt;using check_mssql works (but it&#039;s options are limiting) from: http://exchange.nagios.org/directory/Plugins/Databases/SQLServer/check_mssql/details&lt;/p&gt;

&lt;p&gt;Thanks.
Dan&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Using the latest version I am attempting to pull a count from SQL2005</p>

<p>./check_mssql_health &#8211;hostname=ipAddress &#8211;username=username &#8211;password=password &#8211;name DBNAME &#8211;name2 OrderNumber &#8211;mode sql &#8220;SELECT count(*) FROM Orders WHERE OrderDate &gt;= &#8217;3/5/2011 1:00:00 PM&#8217; AND OrderDate &lt; &#8217;3/5/2011 1:01:00 PM&#8217;&#8221;</p>

<p>expected result should show a value of: 0</p>

<p>Error Message:
DBD::Sybase::st execute failed: Server message number=2812 severity=16 state=62 line=1 server=ServerName text=Could not find stored procedure &#8216;DNAME&#8217;.  at ./check_mssql_health line 2212.
Use of uninitialized value $value in numeric gt (&gt;) at ./check_mssql_health line 1510.
Use of uninitialized value $value in numeric gt (&gt;) at ./check_mssql_health line 1511.
OK &#8211; ordernumber:</p>

<p>using check_mssql works (but it&#8217;s options are limiting) from: <a href="http://exchange.nagios.org/directory/Plugins/Databases/SQLServer/check_mssql/details" rel="nofollow">http://exchange.nagios.org/directory/Plugins/Databases/SQLServer/check_mssql/details</a></p>

<p>Thanks.
Dan</p>]]></content:encoded>
	</item>
	<item>
		<title>By: iamxto</title>
		<link>http://labs.consol.de/lang/de/nagios/check_mssql_health/comment-page-2/#comment-16670</link>
		<dc:creator>iamxto</dc:creator>
		<pubDate>Wed, 02 Mar 2011 16:39:11 +0000</pubDate>
		<guid isPermaLink="false">http://labs.consol.de/check_mssql_health/#comment-16670</guid>
		<description>&lt;p&gt;Hi&lt;/p&gt;

&lt;p&gt;First of all, thanks for your plugin.&lt;/p&gt;

&lt;p&gt;I have found a problem and I cannot go further. Could you help me?&lt;/p&gt;

&lt;p&gt;Im doing this test with the --mode=deadlock and I am getting this error:&lt;/p&gt;

&lt;p&gt;The result in nagios is (Return code of 127 is out of bounds - plugin may be missing)&lt;/p&gt;

&lt;p&gt;If I use database-free, cpu-busy, io-busy it works perfectly.&lt;/p&gt;

&lt;p&gt;If I launch this check in a shell i get this result:&lt;/p&gt;

&lt;p&gt;check_mssql_health --hostname SERVER --username .&#092;&#092;sqlnagioscheck --password test --port 2618 --mode=locks-waits
OK - 0.0000 lock waits / sec for _Total, 0.0000 lock waits / sec for RID, 0.0000 lock waits / sec for Page, 0.0000 lock waits / sec for Object, 0.0000 lock waits / sec for Metadata, 0.0000 lock waits / sec for Key, 0.0000 lock waits / sec for HoBT, 0.0000 lock waits / sec for File, 0.0000 lock waits / sec for Extent, 0.0000 lock waits / sec for Database, 0.0000 lock waits / sec for Application, 0.0000 lock waits / sec for AllocUnit &#124; _Total_lock_waits_per_sec=0.0000;100;500 RID_lock_waits_per_sec=0.0000;100;500 Page_lock_waits_per_sec=0.0000;100;500 Object_lock_waits_per_sec=0.0000;100;500 Metadata_lock_waits_per_sec=0.0000;100;500 Key_lock_waits_per_sec=0.0000;100;500 HoBT_lock_waits_per_sec=0.0000;100;500 File_lock_waits_per_sec=0.0000;100;500 Extent_lock_waits_per_sec=0.0000;100;500 Database_lock_waits_per_sec=0.0000;100;500 Application_lock_waits_per_sec=0.0000;100;500 AllocUnit_lock_waits_per_sec=0.0000;100;500&lt;/p&gt;

&lt;p&gt;Any idea?
Regards.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi</p>

<p>First of all, thanks for your plugin.</p>

<p>I have found a problem and I cannot go further. Could you help me?</p>

<p>Im doing this test with the &#8211;mode=deadlock and I am getting this error:</p>

<p>The result in nagios is (Return code of 127 is out of bounds &#8211; plugin may be missing)</p>

<p>If I use database-free, cpu-busy, io-busy it works perfectly.</p>

<p>If I launch this check in a shell i get this result:</p>

<p>check_mssql_health &#8211;hostname SERVER &#8211;username .&#092;&#092;sqlnagioscheck &#8211;password test &#8211;port 2618 &#8211;mode=locks-waits
OK &#8211; 0.0000 lock waits / sec for _Total, 0.0000 lock waits / sec for RID, 0.0000 lock waits / sec for Page, 0.0000 lock waits / sec for Object, 0.0000 lock waits / sec for Metadata, 0.0000 lock waits / sec for Key, 0.0000 lock waits / sec for HoBT, 0.0000 lock waits / sec for File, 0.0000 lock waits / sec for Extent, 0.0000 lock waits / sec for Database, 0.0000 lock waits / sec for Application, 0.0000 lock waits / sec for AllocUnit | _Total_lock_waits_per_sec=0.0000;100;500 RID_lock_waits_per_sec=0.0000;100;500 Page_lock_waits_per_sec=0.0000;100;500 Object_lock_waits_per_sec=0.0000;100;500 Metadata_lock_waits_per_sec=0.0000;100;500 Key_lock_waits_per_sec=0.0000;100;500 HoBT_lock_waits_per_sec=0.0000;100;500 File_lock_waits_per_sec=0.0000;100;500 Extent_lock_waits_per_sec=0.0000;100;500 Database_lock_waits_per_sec=0.0000;100;500 Application_lock_waits_per_sec=0.0000;100;500 AllocUnit_lock_waits_per_sec=0.0000;100;500</p>

<p>Any idea?
Regards.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: nms</title>
		<link>http://labs.consol.de/lang/de/nagios/check_mssql_health/comment-page-2/#comment-16477</link>
		<dc:creator>nms</dc:creator>
		<pubDate>Mon, 28 Feb 2011 11:22:03 +0000</pubDate>
		<guid isPermaLink="false">http://labs.consol.de/check_mssql_health/#comment-16477</guid>
		<description>&lt;p&gt;&lt;a href=&quot;#comment-16475&quot; rel=&quot;nofollow&quot;&gt;@nms&lt;/a&gt;, nevermind, I just looked more into the comments and found that regex-solution ;)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p><a href="#comment-16475" rel="nofollow">@nms</a>, nevermind, I just looked more into the comments and found that regex-solution ;)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: nms</title>
		<link>http://labs.consol.de/lang/de/nagios/check_mssql_health/comment-page-2/#comment-16475</link>
		<dc:creator>nms</dc:creator>
		<pubDate>Mon, 28 Feb 2011 10:43:12 +0000</pubDate>
		<guid isPermaLink="false">http://labs.consol.de/check_mssql_health/#comment-16475</guid>
		<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;just one question regarding mode &quot;database-backup-age&quot;.
Is there a chance to check specific databases for their backup-age and not &quot;all&quot; databases? To check only one you can give &quot;-name &quot;, but I couldn&#039;t find any possibility to check like 2 or 3 databases.&lt;/p&gt;

&lt;p&gt;Thanks in advance,&lt;/p&gt;

&lt;p&gt;nms&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi,</p>

<p>just one question regarding mode &#8220;database-backup-age&#8221;.
Is there a chance to check specific databases for their backup-age and not &#8220;all&#8221; databases? To check only one you can give &#8220;-name &#8220;, but I couldn&#8217;t find any possibility to check like 2 or 3 databases.</p>

<p>Thanks in advance,</p>

<p>nms</p>]]></content:encoded>
	</item>
</channel>
</rss>

