[SPAM?] RE: RE : Sybase check on windows servers

Lalita Drolia ldrolia at bea.com
Tue Jun 26 07:21:23 CEST 2007


Hi,

Your last mail helped me to clear my concepts. Thank you :-)

I am trying check_nt from the command line now, with the instructions
you gave.

But I am getting the error "Connection refused. Could not fetch
information from server."

Unable to fix that.

Please help.

Lalita

 

 From: Florent HOUBART [mailto:Florent.HOUBART at Ajilon.fr] 
Sent: Monday, June 25, 2007 7:12 PM
To: Lalita Drolia
Cc: nagios-users at lists.sourceforge.net
Subject: RE : [SPAM?] RE: RE : [Nagios-users] Sybase check on windows
servers

 

Hi,

>Thank you so much for being patient with me. I tried what you said. But
>unfortunately I am still getting the error "return code of 139 is out
of
>bounds".

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 ?

>
>Here is my configuration-
>
>
>Commands.cfg-
>
>define command{
>        command_name    check_sybase
>        command_line       $USER1$/check_nt -v SERVICESTATE -d SHOWALL
-l $ARG1$ $ARG2$
>        }

I think there is an error here in your definition. Addording to your
service definition, you will run :
$USER1$/check_nt -v SERVICESTATE -d SHOWALL -l 0 SYBSQL_ganges
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 :

 SERVICESTATE =
  Check the state of one or several services.
  Request a -l parameters with the following syntax:
  -l <service1>,<service2>,<service3>,...
  You can specify -d SHOWALL in case you want to see working services
  in the returned string.

Your command should be something like :
$USER1$/check_nt -H ganges -v SERVICESTATE -d SHOWALL -l SYBSQL_ganges

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$.

Regards,

Florent


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070625/f19893f1/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list