Hi Marc! im sorry to bother you. I can't make the check_sybase plugin work. Here's the error message

./check_sybase --config=/usr/local/nagios/etc/sybase.cfg
src/tds/login.c: tds_connect: x.x.x.x:1433: Connection refused
DBI connect('server=x.x.x.x;database=apricot;charset=iso_1;timeout=15;loginTimeout=15','sa',...) failed:
OpenClient message: LAYER = (0) ORIGIN = (0) SEVERITY = (78) NUMBER = (41)
Message String: Server is unavailable or does not exist.
 at ./check_sybase line 133
CRITICAL: Could not connect to 'apricot' on 'x.x.x.x'

Here's the config file:
USER sa
PASS pcube2001
DBSVR x.x.x.x (IP)
DBNAME apricot

I'd appreciate any help!

Marc Powell escribió:
  
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:nagios-users-
[EMAIL PROTECTED]] On Behalf Of Patrick Morris
Sent: Tuesday, July 31, 2007 3:47 PM
To: Danilo Perdomo
Cc: [email protected]
Subject: Re: [Nagios-users] check_sybase

Hi Danilo!

On Tue, 31 Jul 2007, Danilo Perdomo wrote:

    
Hi all! I'm triying to use this plugin for checking a remote Sybase
database. The thing is that in the usage of the script
i dont see any option that indicates the IP address of the server.
      
Here
  
is the -h for the plugin:
      
That's because this plugin won't work as a remote check. You'll need
    
to
  
use something like nrpe or check_via_ssh to run it on a remote box.
    

I'm pretty confident it will (untested though). It just uses DBI::Sybase
which doesn't care where the database is located. --

sub connect
{
        $dbh =
DBI->connect("dbi:Sybase:server=$dbsvr;database=$dbname;".
                       "timeout=$timeout,loginTimeout=$timeout", $user,
$pass)
                or &ncrit("Could not connect to '$dbname' on '$dbsvr'");

        # Report success for a check of type CONNECT
        &nok("Connect okay") if $checktype ne "FREESPACE";
}

--
Marc

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Nagios-users mailing list
[email protected]
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

  

--
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Nagios-users mailing list
[email protected]
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

Reply via email to