lausser / check_mssql_health

Wenn du dich für Plugins (oder OMD oder allgemein Monitoring) interessierst oder von deiner Installation erzählen willst...die Tradition der deutschsprachigen Monitoring-Workshops wird wiederbelebt: https://discord.gg/jDfPZ63FcJ A plugin, which checks various parameters of Microsoft SQL database servers.
http://labs.consol.de/nagios/check_mssql_health
GNU General Public License v2.0
39 stars 28 forks source link

Sybase mode not working with EPN #8

Open sebastien-prudhomme opened 10 years ago

sebastien-prudhomme commented 10 years ago

Hi,

I'm using check_mssql_health to monitor Sybase databases and created check_sybase_health as suggested somewhere.

It works fine in the CLI but these lines are not working when using EPN (Embedded Perl) mode:

    if (basename($0) =~ /_sybase_/) {
      $self->{dbi_options}->{syb_chained_txn} = 1;
      $self->{dsn} .= sprintf ";tdsLevel=CS_TDS_42";
    }

I see only two solution: either add a Sybase mode in the plugin options (perhaps something to override product detected: --product=ASE|MSSQL), or disable EPN in the plugin.