<?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>Wed, 28 Jul 2010 16:34:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Hector Roman</title>
		<link>http://labs.consol.de/lang/de/nagios/check_mssql_health/comment-page-1/#comment-2646</link>
		<dc:creator>Hector Roman</dc:creator>
		<pubDate>Wed, 28 Jul 2010 16:34:42 +0000</pubDate>
		<guid isPermaLink="false">http://labs.consol.de/check_mssql_health/#comment-2646</guid>
		<description>&lt;p&gt;yea!!!!! succefull!!!!!! thanks men&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>yea!!!!! succefull!!!!!! thanks men</p>]]></content:encoded>
	</item>
	<item>
		<title>By: lausser</title>
		<link>http://labs.consol.de/lang/de/nagios/check_mssql_health/comment-page-1/#comment-2636</link>
		<dc:creator>lausser</dc:creator>
		<pubDate>Wed, 28 Jul 2010 07:32:44 +0000</pubDate>
		<guid isPermaLink="false">http://labs.consol.de/check_mssql_health/#comment-2636</guid>
		<description>&lt;p&gt;Either you have blanks in your command line arguments or you need to switch off the embedded perl interpreter&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Either you have blanks in your command line arguments or you need to switch off the embedded perl interpreter</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Hector Roman</title>
		<link>http://labs.consol.de/lang/de/nagios/check_mssql_health/comment-page-1/#comment-2597</link>
		<dc:creator>Hector Roman</dc:creator>
		<pubDate>Mon, 26 Jul 2010 01:09:41 +0000</pubDate>
		<guid isPermaLink="false">http://labs.consol.de/check_mssql_health/#comment-2597</guid>
		<description>&lt;p&gt;I have problems using the ubuntu check_mssql_healt 10.4 command.cfg my file is:&lt;/p&gt;

&lt;p&gt;&#039;Check_nmssql_health&#039; command definition&lt;/p&gt;

&lt;p&gt;define command (
        command_name check_mssql_health
        command_line $ USER1 $ / check_mssql_health-server $ HOSTNAME $-username-password nagios nagiosadmin - mode-s $ ARG1 $ 1,234,567
)&lt;/p&gt;

&lt;p&gt;service_nagios2.cfg file&lt;/p&gt;

&lt;p&gt;define service (
        use generic-service
        host_name salvades-virt-winxp
        SQL Connection service_description time
        check_command check_mssql_health! connection-time
        )&lt;/p&gt;

&lt;p&gt;define service (
        use generic-service
        host_name salvades-virt-winxp
        IO service_description Busy
       check_command check_mssql_health! io-busy
        )&lt;/p&gt;

&lt;p&gt;Nagios Error says:&lt;/p&gt;

&lt;p&gt;SQL Connection time
UNKNOWN 7/25/2010 21:03:53 0d 3h 50m 20s 4 / 4 ** EPN / usr / lib / nagios / plugins / check_mssql_health: &quot;Option s is ambiguous (scream, server, shell).&quot;&lt;/p&gt;

&lt;p&gt;Busy IO
UNKNOWN 7/25/2010 21:04:00 0d 3h 20m 9s 4 / 4 ** EPN / usr / lib / nagios / plugins / check_mssql_health: &quot;Option s is ambiguous (scream, server, shell).&quot;&lt;/p&gt;

&lt;p&gt;I have properly configured my DTS, I can connect from the console without any problem, if someone could indicate some solution would be ideal, greetings from Santiago de Chile&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I have problems using the ubuntu check_mssql_healt 10.4 command.cfg my file is:</p>

<p>&#8216;Check_nmssql_health&#8217; command definition</p>

<p>define command (
        command_name check_mssql_health
        command_line $ USER1 $ / check_mssql_health-server $ HOSTNAME $-username-password nagios nagiosadmin &#8211; mode-s $ ARG1 $ 1,234,567
)</p>

<p>service_nagios2.cfg file</p>

<p>define service (
        use generic-service
        host_name salvades-virt-winxp
        SQL Connection service_description time
        check_command check_mssql_health! connection-time
        )</p>

<p>define service (
        use generic-service
        host_name salvades-virt-winxp
        IO service_description Busy
       check_command check_mssql_health! io-busy
        )</p>

<p>Nagios Error says:</p>

<p>SQL Connection time
UNKNOWN 7/25/2010 21:03:53 0d 3h 50m 20s 4 / 4 ** EPN / usr / lib / nagios / plugins / check_mssql_health: &#8220;Option s is ambiguous (scream, server, shell).&#8221;</p>

<p>Busy IO
UNKNOWN 7/25/2010 21:04:00 0d 3h 20m 9s 4 / 4 ** EPN / usr / lib / nagios / plugins / check_mssql_health: &#8220;Option s is ambiguous (scream, server, shell).&#8221;</p>

<p>I have properly configured my DTS, I can connect from the console without any problem, if someone could indicate some solution would be ideal, greetings from Santiago de Chile</p>]]></content:encoded>
	</item>
	<item>
		<title>By: lausser</title>
		<link>http://labs.consol.de/lang/de/nagios/check_mssql_health/comment-page-1/#comment-2399</link>
		<dc:creator>lausser</dc:creator>
		<pubDate>Wed, 14 Jul 2010 14:35:10 +0000</pubDate>
		<guid isPermaLink="false">http://labs.consol.de/check_mssql_health/#comment-2399</guid>
		<description>&lt;p&gt;Any more details? If you use your own thresholds, did you add a &#039;:&#039; to them?
&lt;pre lang=&quot;text&quot;&gt;
.... --warning 10: --critical 5:
&lt;/pre&gt;
meaning &quot;warn if &lt;b&gt;less&lt;/b&gt; than 10&quot;...&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Any more details? If you use your own thresholds, did you add a &#8216;:&#8217; to them?

</p>
<div class="wp_syntax"><div class="code"><pre class="text">.... --warning 10: --critical 5:</pre></div></div>



meaning &#8220;warn if <b>less</b> than 10&#8243;&#8230;]]></content:encoded>
	</item>
	<item>
		<title>By: theman</title>
		<link>http://labs.consol.de/lang/de/nagios/check_mssql_health/comment-page-1/#comment-2394</link>
		<dc:creator>theman</dc:creator>
		<pubDate>Wed, 14 Jul 2010 10:17:00 +0000</pubDate>
		<guid isPermaLink="false">http://labs.consol.de/check_mssql_health/#comment-2394</guid>
		<description>&lt;p&gt;All works for me but it seems the result is wrong. I have all the parameters right. The database-free seems to be working the wrong way&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>All works for me but it seems the result is wrong. I have all the parameters right. The database-free seems to be working the wrong way</p>]]></content:encoded>
	</item>
	<item>
		<title>By: lausser</title>
		<link>http://labs.consol.de/lang/de/nagios/check_mssql_health/comment-page-1/#comment-2072</link>
		<dc:creator>lausser</dc:creator>
		<pubDate>Tue, 22 Jun 2010 16:46:37 +0000</pubDate>
		<guid isPermaLink="false">http://labs.consol.de/check_mssql_health/#comment-2072</guid>
		<description>&lt;p&gt;So true :-)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>So true :-)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: lausser</title>
		<link>http://labs.consol.de/lang/de/nagios/check_mssql_health/comment-page-1/#comment-2070</link>
		<dc:creator>lausser</dc:creator>
		<pubDate>Tue, 22 Jun 2010 16:44:35 +0000</pubDate>
		<guid isPermaLink="false">http://labs.consol.de/check_mssql_health/#comment-2070</guid>
		<description>&lt;p&gt;I interpret the 1.5.1-errors as: connection was established, but neither &quot;SELECT SYSTEM_USER&quot; nor &quot;SELECT @@SERVICENAME&quot; returned a result. Can you please login as &quot;sa&quot; with a db command line client and try the two statements? What do you get as results?
I have no explanation, why it fails earlier with 1.5.3, because the db-establish-connection-code did not change between the two releases. What you could try is to create an entry in the /etc/freetds.conf
&lt;pre lang=&quot;text&quot;&gt;
[TEST]
        port = 1433
        tds version = 8.0
        host = xxx.xxx.xxx.xxx
&lt;/pre&gt;
 and then use server instead of hostname and port. check_mssql_health --server TEST --username sa --password .....
If that doesn&#039;t help, go to line 1977 (of the 1.5.3 version) and add the following line just before the one with &quot;DBI-&gt;connect&quot;
&lt;pre lang=&quot;text&quot;&gt;
DBI-&gt;trace(2);
&lt;/pre&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I interpret the 1.5.1-errors as: connection was established, but neither &#8220;SELECT SYSTEM_USER&#8221; nor &#8220;SELECT @@SERVICENAME&#8221; returned a result. Can you please login as &#8220;sa&#8221; with a db command line client and try the two statements? What do you get as results?
I have no explanation, why it fails earlier with 1.5.3, because the db-establish-connection-code did not change between the two releases. What you could try is to create an entry in the /etc/freetds.conf

</p>
<div class="wp_syntax"><div class="code"><pre class="text">[TEST]
        port = 1433
        tds version = 8.0
        host = xxx.xxx.xxx.xxx</pre></div></div>



 and then use server instead of hostname and port. check_mssql_health &#8211;server TEST &#8211;username sa &#8211;password &#8230;..
If that doesn&#8217;t help, go to line 1977 (of the 1.5.3 version) and add the following line just before the one with &#8220;DBI->connect&#8221;


<div class="wp_syntax"><div class="code"><pre class="text">DBI-&gt;trace(2);</pre></div></div>


]]></content:encoded>
	</item>
	<item>
		<title>By: bigpeti</title>
		<link>http://labs.consol.de/lang/de/nagios/check_mssql_health/comment-page-1/#comment-1991</link>
		<dc:creator>bigpeti</dc:creator>
		<pubDate>Fri, 18 Jun 2010 07:38:35 +0000</pubDate>
		<guid isPermaLink="false">http://labs.consol.de/check_mssql_health/#comment-1991</guid>
		<description>&lt;p&gt;OMG What an editor!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>OMG What an editor!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: bigpeti</title>
		<link>http://labs.consol.de/lang/de/nagios/check_mssql_health/comment-page-1/#comment-1990</link>
		<dc:creator>bigpeti</dc:creator>
		<pubDate>Fri, 18 Jun 2010 07:37:26 +0000</pubDate>
		<guid isPermaLink="false">http://labs.consol.de/check_mssql_health/#comment-1990</guid>
		<description>&lt;p&gt;Probably readable:
.
.
Hi, With check_mssql_health_1.5.3 I have this error too:
.
root@nagiossrv:/usr/local/nagios/libexec# perl check_mssql_health –host xxx.xxx.xxx.xxx –port 1433 –username sa –password Password –mode connection-time
.
CRITICAL – cannot connect to xxx.xxx.xxx.xxx. DBI connect(‘;host=xxx.xxx.xxx.xxx;port=1433′,’sa’,…) failed: (no error string) at check_mssql_health line 1977
.
But I tried check_mssql_health_1.5.1. The error disappeared, but I have two other:
.
root@nagiossrv:/usr/local/nagios/libexec# perl check_mssql_health –host xxx.xxx.xxx.xxx –port 1433 –username sa –password Password –mode connection-time
.
Use of uninitialized value in concatenation (.) or string at check_mssql_health line 968. 
Use of uninitialized value in sprintf at check_mssql_health line 1212. 
OK – 0.03 seconds to connect as &#124; connection_time=0.03;1;5
.
I copy this two lines here. Can you help me?
.
965 if (lc $self-&gt;{servicename} ne ‘mssqlserver’) { 
966 # braucht man fuer abfragen von dm_os_performance_counters 
967 # object_name ist entweder “SQLServer:Buffer Node” oder z.b. “MSSQL$OASH: Buffer Node” 
968 $self-&gt;{servicename} = ‘MSSQL$’.$self-&gt;{servicename}; 
969 } else { 
970 $self-&gt;{servicename} = ‘SQLServer’; 
971 }
.
.
.
1210 $self-&gt;merge_nagios($self-&gt;{memorypool}); 
1211 } elsif ($params{mode} =~ /^server::connectiontime/) { 
1212 $self-&gt;add_nagios( 1213 $self-&gt;check_thresholds($self-&gt;{connection_time}, 1, 5), 
1214 sprintf “%.2f seconds to connect as %s”, 
1215 $self-&gt;{connection_time}, $self-&gt;{dbuser}); 
1216 $self-&gt;add_perfdata(sprintf “connection_time=%.2f;%d;%d”,
.
.
.
thank you
.
Peter&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Probably readable:
.
.
Hi, With check_mssql_health_1.5.3 I have this error too:
.
root@nagiossrv:/usr/local/nagios/libexec# perl check_mssql_health –host xxx.xxx.xxx.xxx –port 1433 –username sa –password Password –mode connection-time
.
CRITICAL – cannot connect to xxx.xxx.xxx.xxx. DBI connect(‘;host=xxx.xxx.xxx.xxx;port=1433′,’sa’,…) failed: (no error string) at check_mssql_health line 1977
.
But I tried check_mssql_health_1.5.1. The error disappeared, but I have two other:
.
root@nagiossrv:/usr/local/nagios/libexec# perl check_mssql_health –host xxx.xxx.xxx.xxx –port 1433 –username sa –password Password –mode connection-time
.
Use of uninitialized value in concatenation (.) or string at check_mssql_health line 968. 
Use of uninitialized value in sprintf at check_mssql_health line 1212. 
OK – 0.03 seconds to connect as | connection_time=0.03;1;5
.
I copy this two lines here. Can you help me?
.
965 if (lc $self-&gt;{servicename} ne ‘mssqlserver’) { 
966 # braucht man fuer abfragen von dm_os_performance_counters 
967 # object_name ist entweder “SQLServer:Buffer Node” oder z.b. “MSSQL$OASH: Buffer Node” 
968 $self-&gt;{servicename} = ‘MSSQL$’.$self-&gt;{servicename}; 
969 } else { 
970 $self-&gt;{servicename} = ‘SQLServer’; 
971 }
.
.
.
1210 $self-&gt;merge_nagios($self-&gt;{memorypool}); 
1211 } elsif ($params{mode} =~ /^server::connectiontime/) { 
1212 $self-&gt;add_nagios( 1213 $self-&gt;check_thresholds($self-&gt;{connection_time}, 1, 5), 
1214 sprintf “%.2f seconds to connect as %s”, 
1215 $self-&gt;{connection_time}, $self-&gt;{dbuser}); 
1216 $self-&gt;add_perfdata(sprintf “connection_time=%.2f;%d;%d”,
.
.
.
thank you
.
Peter</p>]]></content:encoded>
	</item>
	<item>
		<title>By: bigpeti</title>
		<link>http://labs.consol.de/lang/de/nagios/check_mssql_health/comment-page-1/#comment-1989</link>
		<dc:creator>bigpeti</dc:creator>
		<pubDate>Fri, 18 Jun 2010 07:30:09 +0000</pubDate>
		<guid isPermaLink="false">http://labs.consol.de/check_mssql_health/#comment-1989</guid>
		<description>&lt;p&gt;Hi,
With check_mssql_health_1.5.3 I have this error too:&lt;/p&gt;

&lt;p&gt;root@nagiossrv:/usr/local/nagios/libexec# perl check_mssql_health --host xxx.xxx.xxx.xxx --port 1433 --username sa --password Password --mode connection-time&lt;/p&gt;

&lt;p&gt;CRITICAL - cannot connect to xxx.xxx.xxx.xxx. DBI connect(&#039;;host=xxx.xxx.xxx.xxx;port=1433&#039;,&#039;sa&#039;,...) failed: (no error string) at check_mssql_health line 1977&lt;/p&gt;

&lt;p&gt;But I tried check_mssql_health_1.5.1. The error disappeared, but I have two other.:&lt;/p&gt;

&lt;p&gt;root@nagiossrv:/usr/local/nagios/libexec# perl check_mssql_health --host xxx.xxx.xxx.xxx --port 1433 --username sa --password Password --mode connection-time&lt;/p&gt;

&lt;p&gt;Use of uninitialized value in concatenation (.) or string at check_mssql_health line 968.
Use of uninitialized value in sprintf at check_mssql_health line 1212.
OK - 0.03 seconds to connect as  &#124; connection_time=0.03;1;5&lt;/p&gt;

&lt;p&gt;I copy this two lines here. Can you help me?&lt;/p&gt;

&lt;p&gt;965    if (lc $self-&gt;{servicename} ne &#039;mssqlserver&#039;) {
966      # braucht man fuer abfragen von dm_os_performance_counters
967      # object_name ist entweder &quot;SQLServer:Buffer Node&quot; oder z.b. &quot;MSSQL$OASH: Buffer Node&quot;
968      $self-&gt;{servicename} = &#039;MSSQL$&#039;.$self-&gt;{servicename};
969    } else {
970      $self-&gt;{servicename} = &#039;SQLServer&#039;;
971    }&lt;/p&gt;

&lt;p&gt;1210      $self-&gt;merge_nagios($self-&gt;{memorypool});
1211    } elsif ($params{mode} =~ /^server::connectiontime/) {
1212      $self-&gt;add_nagios(
1213          $self-&gt;check_thresholds($self-&gt;{connection_time}, 1, 5),
1214          sprintf &quot;%.2f seconds to connect as %s&quot;,
1215              $self-&gt;{connection_time}, $self-&gt;{dbuser});
1216      $self-&gt;add_perfdata(sprintf &quot;connection_time=%.2f;%d;%d&quot;,&lt;/p&gt;

&lt;p&gt;thank you&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi,
With check_mssql_health_1.5.3 I have this error too:</p>

<p>root@nagiossrv:/usr/local/nagios/libexec# perl check_mssql_health &#8211;host xxx.xxx.xxx.xxx &#8211;port 1433 &#8211;username sa &#8211;password Password &#8211;mode connection-time</p>

<p>CRITICAL &#8211; cannot connect to xxx.xxx.xxx.xxx. DBI connect(&#8216;;host=xxx.xxx.xxx.xxx;port=1433&#8242;,&#8217;sa&#8217;,&#8230;) failed: (no error string) at check_mssql_health line 1977</p>

<p>But I tried check_mssql_health_1.5.1. The error disappeared, but I have two other.:</p>

<p>root@nagiossrv:/usr/local/nagios/libexec# perl check_mssql_health &#8211;host xxx.xxx.xxx.xxx &#8211;port 1433 &#8211;username sa &#8211;password Password &#8211;mode connection-time</p>

<p>Use of uninitialized value in concatenation (.) or string at check_mssql_health line 968.
Use of uninitialized value in sprintf at check_mssql_health line 1212.
OK &#8211; 0.03 seconds to connect as  | connection_time=0.03;1;5</p>

<p>I copy this two lines here. Can you help me?</p>

<p>965    if (lc $self-&gt;{servicename} ne &#8216;mssqlserver&#8217;) {
966      # braucht man fuer abfragen von dm_os_performance_counters
967      # object_name ist entweder &#8220;SQLServer:Buffer Node&#8221; oder z.b. &#8220;MSSQL$OASH: Buffer Node&#8221;
968      $self-&gt;{servicename} = &#8216;MSSQL$&#8217;.$self-&gt;{servicename};
969    } else {
970      $self-&gt;{servicename} = &#8216;SQLServer&#8217;;
971    }</p>

<p>1210      $self-&gt;merge_nagios($self-&gt;{memorypool});
1211    } elsif ($params{mode} =~ /^server::connectiontime/) {
1212      $self-&gt;add_nagios(
1213          $self-&gt;check_thresholds($self-&gt;{connection_time}, 1, 5),
1214          sprintf &#8220;%.2f seconds to connect as %s&#8221;,
1215              $self-&gt;{connection_time}, $self-&gt;{dbuser});
1216      $self-&gt;add_perfdata(sprintf &#8220;connection_time=%.2f;%d;%d&#8221;,</p>

<p>thank you</p>

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