[freetds] patch for ct.c

Gerhard Lausser Gerhard.Lausser at consol.de
Thu Aug 22 18:23:41 EDT 2013


i am the author of check_mssql_health, a plugin for the Nagios monitoring
system, which is used to monitor MS SQL and Sybase databases. It uses
freetds and DBD::Sybase.
The plugin can be called as

check_mssql_health --server <an_entry_in_freetds.conf> --username ....
which internally uses DBI->connect("DBI:Sybase:server=...
check_mssql_health --hostname <host_or_ip> --port <port> --username ....
which internally uses DBI->connect("DBI:Sybase:host=...;port=...

This worked reliably so far with the libs and modules from the linux
Today i was compiling DBD::Sybase-1.15 and freetds-0.91 from source and with
this platform, calling check_mssql_health with --hostname no longer worked.
I got the error "Server name not found in configuration files"

Attached is a patch for freetds-0.91, which fixed the error for me. 



__________ Hinweis von ESET NOD32 Antivirus, Signaturdatenbank-Version 8718
(20130822) __________

E-Mail wurde gepruft mit ESET NOD32 Antivirus.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ct_connect-fix-dbdsybase-host-arg.patch
Type: application/octet-stream
Size: 630 bytes
Desc: not available
Url : http://lists.ibiblio.org/pipermail/freetds/attachments/20130823/8cebdb4a/attachment.obj 

More information about the FreeTDS mailing list