<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
Hi Marc! im sorry to bother you. I can't make the check_sybase plugin
work. Here's the error message<br>
<br>
<b>./check_sybase --config=/usr/local/nagios/etc/sybase.cfg</b><br>
src/tds/login.c: tds_connect: x.x.x.x:1433: Connection refused<br>
DBI
connect('server=x.x.x.x;database=apricot;charset=iso_1;timeout=15;loginTimeout=15','sa',...)
failed: <br>
OpenClient message: LAYER = (0) ORIGIN = (0) SEVERITY = (78) NUMBER =
(41)<br>
Message String: Server is unavailable or does not exist.<br>
at ./check_sybase line 133<br>
CRITICAL: Could not connect to 'apricot' on 'x.x.x.x'<br>
<br>
Here's the config file:<br>
USER sa<br>
PASS pcube2001<br>
DBSVR x.x.x.x (IP)<br>
DBNAME apricot<br>
<br>
I'd appreciate any help!<br>
<br>
Marc Powell escribió:
<blockquote
cite="midA7B0A9F02975A74A845FE85D0B95B8FA08276949@misex01.ena.com"
type="cite">
<pre wrap=""> </pre>
<blockquote type="cite">
<pre wrap="">-----Original Message-----
From: <a class="moz-txt-link-abbreviated"
href="mailto:nagios-users-bounces@lists.sourceforge.net">nagios-users-bounces@lists.sourceforge.net</a> [<a
class="moz-txt-link-freetext" href="mailto:nagios-users">mailto:nagios-users</a>-
<a class="moz-txt-link-abbreviated"
href="mailto:bounces@lists.sourceforge.net">bounces@lists.sourceforge.net</a>] On Behalf Of Patrick Morris
Sent: Tuesday, July 31, 2007 3:47 PM
To: Danilo Perdomo
Cc: <a class="moz-txt-link-abbreviated"
href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a>
Subject: Re: [Nagios-users] check_sybase
Hi Danilo!
On Tue, 31 Jul 2007, Danilo Perdomo wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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.
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->Here
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">is the -h for the plugin:
</pre>
</blockquote>
<pre wrap="">That's because this plugin won't work as a remote check. You'll need
</pre>
</blockquote>
<pre wrap=""><!---->to
</pre>
<blockquote type="cite">
<pre wrap="">use something like nrpe or check_via_ssh to run it on a remote box.
</pre>
</blockquote>
<pre wrap=""><!---->
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 >> <a
class="moz-txt-link-freetext" href="http://get.splunk.com/">http://get.splunk.com/</a>
_______________________________________________
Nagios-users mailing list
<a class="moz-txt-link-abbreviated"
href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext"
href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<img src="cid:part1.06040704.03000700@intercable.com.ve" border="0"></div>
</body>
</html>