<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<title>RE : [SPAM?] RE: RE : [Nagios-users] Sybase check on windows servers</title>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hi,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Your last mail helped me to clear my
concepts. Thank you </span></font><font size=2 color=navy face=Wingdings><span
style='font-size:10.0pt;font-family:Wingdings;color:navy'>J</span></font><font
size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I am trying check_nt from the command line
now, with the instructions you gave.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>But I am getting the error “Connection
refused. Could not fetch information from server.”<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Unable to fix that.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Please help.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Lalita<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<div>

<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'> </span></font><b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Florent
HOUBART [mailto:Florent.HOUBART@Ajilon.fr] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Monday, June 25, 2007 7:12
PM<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">Lalita
 Drolia</st1:PersonName><br>
<b><span style='font-weight:bold'>Cc:</span></b>
nagios-users@lists.sourceforge.net<br>
<b><span style='font-weight:bold'>Subject:</span></b> RE : [SPAM?] RE: RE :
[Nagios-users] Sybase check on windows servers</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

<p style='margin-bottom:12.0pt'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>Hi,<br>
<br>
>Thank you so much for being patient with me. I tried what you said. But<br>
>unfortunately I am still getting the error "return code of 139 is out
of<br>
>bounds".<br>
<br>
This mean that there is a problem with the execution of your control. Did you
try to run the command as you defined it in a shell prompt ?<br>
<br>
><br>
>Here is my configuration-<br>
><br>
><br>
>Commands.cfg-<br>
><br>
>define command{<br>
>        command_name   
check_sybase<br>
>       
command_line       $USER1$/check_nt -v
SERVICESTATE -d SHOWALL -l $ARG1$ $ARG2$<br>
>        }<br>
<br>
I think there is an error here in your definition. Addording to your service
definition, you will run :<br>
$USER1$/check_nt -v SERVICESTATE -d SHOWALL -l 0 SYBSQL_ganges<br>
If you run this, you will get a "Segmentation fault". You lack the
name of the requested host (-H flag) and the syntax of the -l flag is wrong. A
check_nt -h says :<br>
<br>
 SERVICESTATE =<br>
  Check the state of one or several services.<br>
  Request a -l parameters with the following syntax:<br>
  -l <service1>,<service2>,<service3>,...<br>
  You can specify -d SHOWALL in case you want to see working services<br>
  in the returned string.<br>
<br>
Your command should be something like :<br>
$USER1$/check_nt -H ganges -v SERVICESTATE -d SHOWALL -l SYBSQL_ganges<br>
<br>
You should test it in a shell prompt until you get the expected result, and
then write it in your configuration file. To get the IP address of the host,
you can use the macro $HOSTADDRESS$.<br>
<br>
Regards,<br>
<br>
Florent</span></font><o:p></o:p></p>

</div>

</body>

</html>
<br>
Notice:  This email message, together with any attachments, may contain information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated entities,  that may be confidential,  proprietary,  copyrighted  and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it.