check_sybase

Patrick Morris patrick.morris at hp.com
Wed Aug 1 00:19:14 CEST 2007


Damn. Hate when I'm just plain wrong. ;)

Thanks, Marc.

On Tue, 31 Jul 2007, Marc Powell wrote:

> 
> 
> > -----Original Message-----
> > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> > bounces at lists.sourceforge.net] On Behalf Of Patrick Morris
> > Sent: Tuesday, July 31, 2007 3:47 PM
> > To: Danilo Perdomo
> > Cc: nagios-users at lists.sourceforge.net
> > 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
> 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

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