The other ports don't appear like typical MSSQL ports.<br>Do you have by any chance the Windows firewall still active? Maybe the port is being blocked there?<br><a href="http://support.microsoft.com/kb/968872">http://support.microsoft.com/kb/968872</a><br>
<br>Or do you use a named instance? I found this information on <a href="http://benchmarkitconsulting.com/colin-stasiuk/2009/02/02/what-tcp-port-is-sql-server-running-under/">http://benchmarkitconsulting.com/colin-stasiuk/2009/02/02/what-tcp-port-is-sql-server-running-under/</a>: "If you have a named instance the TCP port is dynamically configured."<br>
I've never seen this in a practical way before though.<br><br><br><div class="gmail_quote">On Thu, Nov 17, 2011 at 8:59 PM, Kaplan, Andrew H. <span dir="ltr"><<a href="mailto:AHKAPLAN@partners.org">AHKAPLAN@partners.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><u></u>
<div>
<div dir="ltr" align="left"><font face="Arial" size="2" color="#0000ff"><span>Hi there --</span></font></div>
<div dir="ltr" align="left"><font face="Arial" size="2" color="#0000ff"><span></span></font> </div>
<div dir="ltr" align="left"><font face="Arial" size="2" color="#0000ff"><span>I tried connecting to port 1433 of the SQL server, and
the connection was refused. It appears that efforts to connect via the
default</span></font></div>
<div dir="ltr" align="left"><font face="Arial" size="2" color="#0000ff"><span>port will not work in this case. I took the liberty of
running the nestat -abn command syntax on the console of the SQL server,
and</span></font></div>
<div dir="ltr" align="left"><font face="Arial" size="2" color="#0000ff"><span>searched for all references to the sqlservr.exe binary.
The results are shown below:</span></font></div>
<div dir="ltr" align="left"><font face="Arial" size="2" color="#0000ff"><span></span></font> </div>
<div dir="ltr" align="left"><span><span lang="EN">
<p><font face="Arial" size="2" color="#0000ff">Active Connections</font></p>
<p><font face="Arial" size="2" color="#0000ff">[sqlservr.exe]</font></p>
<p><font face="Arial" size="2" color="#0000ff">TCP <a href="http://0.0.0.0:58477" target="_blank">0.0.0.0:58477</a> <a href="http://0.0.0.0:0" target="_blank">0.0.0.0:0</a>
LISTENING</font></p>
<p><font face="Arial" size="2" color="#0000ff">[sqlservr.exe]</font></p>
<p><font face="Arial" size="2" color="#0000ff">TCP <a href="http://0.0.0.0:62502" target="_blank">0.0.0.0:62502</a> <a href="http://0.0.0.0:0" target="_blank">0.0.0.0:0</a>
LISTENING</font></p>
<p><font face="Arial" size="2" color="#0000ff">[sqlservr.exe]</font></p>
<p><font face="Arial" size="2" color="#0000ff">TCP <a href="http://0.0.0.0:65249" target="_blank">0.0.0.0:65249</a> <a href="http://0.0.0.0:0" target="_blank">0.0.0.0:0</a>
LISTENING</font></p>
<p><font face="Arial" size="2" color="#0000ff">[sqlservr.exe]</font></p>
<p><font face="Arial" size="2" color="#0000ff">TCP <a href="http://127.0.0.1:58751" target="_blank">127.0.0.1:58751</a> <a href="http://0.0.0.0:0" target="_blank">0.0.0.0:0</a>
LISTENING</font></p>
<p><font face="Arial" size="2" color="#0000ff">[sqlservr.exe]</font></p>
<p><font face="Arial" size="2" color="#0000ff">TCP <a href="http://127.0.0.1:62503" target="_blank">127.0.0.1:62503</a> <a href="http://0.0.0.0:0" target="_blank">0.0.0.0:0</a>
LISTENING</font></p>
<p><font face="Arial" size="2" color="#0000ff">[sqlservr.exe]</font></p>
<p><font face="Arial" size="2" color="#0000ff">TCP <a href="http://127.0.0.1:63954" target="_blank">127.0.0.1:63954</a> <a href="http://127.0.0.1:63955" target="_blank">127.0.0.1:63955</a>
ESTABLISHED</font></p>
<p><font face="Arial" size="2" color="#0000ff">[sqlservr.exe]</font></p>
<p><font face="Arial" size="2" color="#0000ff">TCP <a href="http://192.168.40.114:62502" target="_blank">192.168.40.114:62502</a>
<a href="http://192.168.40.122:50342" target="_blank">192.168.40.122:50342</a> ESTABLISHED</font></p>
<p><font face="Arial" size="2" color="#0000ff">[sqlservr.exe]</font></p>
<p><font face="Arial" size="2" color="#0000ff">TCP <a href="http://192.168.40.114:62502" target="_blank">192.168.40.114:62502</a>
<a href="http://192.168.40.125:60257" target="_blank">192.168.40.125:60257</a> ESTABLISHED</font></p>
<p><font face="Arial" size="2" color="#0000ff">[sqlservr.exe]</font></p>
<p><font face="Arial" size="2" color="#0000ff">TCP <a href="http://192.168.125.1:139" target="_blank">192.168.125.1:139</a> <a href="http://0.0.0.0:0" target="_blank">0.0.0.0:0</a>
LISTENING</font></p>
<p><font face="Arial" size="2" color="#0000ff">[sqlservr.exe]</font></p>
<p><font face="Arial" size="2" color="#0000ff">TCP [::]:58477 [::]:0
LISTENING</font></p>
<p><font face="Arial" size="2" color="#0000ff">[sqlservr.exe]</font></p>
<p><font face="Arial" size="2" color="#0000ff">TCP [::]:62502 [::]:0
LISTENING</font></p>
<p><font face="Arial" size="2" color="#0000ff">[sqlservr.exe]</font></p>
<p><font face="Arial" size="2" color="#0000ff">TCP [::]:65249 [::]:0
LISTENING</font></p>
<p><font face="Arial" size="2" color="#0000ff">[sqlservr.exe]</font></p>
<p><font face="Arial" size="2" color="#0000ff">TCP [::1]:58751 [::]:0
LISTENING</font></p>
<p><font face="Arial" size="2" color="#0000ff">[sqlservr.exe]</font></p>
<p><font face="Arial" size="2" color="#0000ff">TCP [::1]:62005 [::1]:62006
ESTABLISHED</font></p>
<p><font face="Arial" size="2" color="#0000ff">[sqlservr.exe]</font></p>
<p><font face="Arial" size="2" color="#0000ff">UDP <a href="http://0.0.0.0:123" target="_blank">0.0.0.0:123</a> *:* </font></p>
<p><font face="Arial" size="2" color="#0000ff"></font> </p>
<p><span><font face="Arial" size="2" color="#0000ff">If the
default port, 1433, is not reachable would one the above ports be the alternate
means of connecting to the server?</font></span></p>
<p><span></span> </p>
<p><font face="Arial" size="2" color="#0000ff"></font> </p>
<p><font face="Arial" size="2" color="#0000ff"></font></p></span></span></div><font face="Arial" size="2" color="#0000ff"></font><br>
<div dir="ltr" lang="en-us" align="left">
<hr>
<font face="Tahoma" size="2"><b>From:</b> Claudio Kuenzler
[mailto:<a href="mailto:ck@claudiokuenzler.com" target="_blank">ck@claudiokuenzler.com</a>] <br><b>Sent:</b> Thursday, November 17, 2011
1:39 PM<div class="im"><br><b>To:</b> Nagios Users List<br><b>Subject:</b> Re: [Nagios-users]
Monitoring a Microsoft SQL Server<br></div></font><br></div><div><div></div><div class="h5">
<div></div>Please let us know if you get it working - I might have to add such a
check soon as well.<br><br>To answer your question: 1433 is the standard port of
MSSQL so that should be ok. You can launch nmap or a simple telnet to
double-check that.<br><br>
<div class="gmail_quote">On Thu, Nov 17, 2011 at 4:34 PM, Jim Avery <span dir="ltr"><<a href="mailto:jim@jimavery.me.uk" target="_blank">jim@jimavery.me.uk</a>></span> wrote:<br>
<blockquote style="border-left:#ccc 1px solid;margin:0px 0px 0px 0.8ex;padding-left:1ex" class="gmail_quote">
<div>On 17 November 2011 15:17, Kaplan, Andrew H. <<a href="mailto:AHKAPLAN@partners.org" target="_blank">AHKAPLAN@partners.org</a>>
wrote:<br>> Hi there --<br>><br>> Thanks for your reply. I tried your
suggestion on the two plugins, and here are<br>> the
results.<br>><br>> When the command syntax for check_mssql was the
following:<br>><br>> ./check_mssql -H <ip address> -U
<domain>\\<username> -P <password><br>><br>>
or<br>><br>> ./check_mssql -H <ip address> -U
'<domain>\\<username>' -P <password><br>><br>> The
error message displayed on-screen was:<br>><br>> UNKNOWN: Invalid
characters in the username.<br><br><br></div>The check_mssql plugin is way too
fussy about what characters it will<br>allow in host names and user names.
On my system I edited the plugin<br>to remove the if/else sections
entirely below the comments "//<br>Validate the hostname" and "// Validate the
username".<br><br>hth,<br><font color="#888888"><br>Jim<br></font>
<div>
<div></div>
<div><br>------------------------------------------------------------------------------<br>All
the data continuously generated in your IT infrastructure<br>contains a
definitive record of customers, application performance,<br>security threats,
fraudulent activity, and more. Splunk takes this<br>data and makes sense of
it. IT sense. And common sense.<br><a href="http://p.sf.net/sfu/splunk-novd2d" target="_blank">http://p.sf.net/sfu/splunk-novd2d</a><br>_______________________________________________<br>Nagios-users
mailing list<br><a href="mailto:Nagios-users@lists.sourceforge.net" target="_blank">Nagios-users@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
:::
Please include Nagios version, plugin version (-v) and OS when reporting any
issue.<br>::: Messages without supporting info will risk being sent to
/dev/null<br></div></div></blockquote></div><br></div></div><font face="monospace"><br><div class="im">
<br>
The information in this e-mail is intended only for the person to whom it is<br>
addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
contains patient information, please contact the Partners Compliance HelpLine at<br>
<a href="http://www.partners.org/complianceline" target="_blank">http://www.partners.org/complianceline</a> . If the e-mail was sent to you in error<br>
but does not contain patient information, please contact the sender and properly<br>
dispose of the e-mail.</div></font></div>
</blockquote></div><br>