Hi all,
We recently got an Azure MSSQL instance, and need to monitor it, but unfortunately it isn’t as smooth right now as “on-premise” MSSQL instances:
Wether I’m using the user@server that usually Azure instances require or not:
/usr/lib/centreon/plugins//centreon_mssql.pl --plugin database::mssql::plugin --hostname 'XXXXXXX.database.windows.net' --username 'Centreon@XXXXXXX.database.windows.net' --password 'XXXXXXX' --mode='connection-time' --warning=1000 --critical=5000
CRITICAL: Cannot connect: OpenClient message: LAYER = (0) ORIGIN = (0) SEVERITY = (78) NUMBER = (44)
Server , database
Message String: Server name not found in configuration files.
OpenClient message: LAYER = (0) ORIGIN = (0) SEVERITY = (78) NUMBER = (45)
Server , database
Message String: Unknown host machine name.
OpenClient message: LAYER = (0) ORIGIN = (0) SEVERITY = (78) NUMBER = (41)
Server , database
Message String: Unable to connect: Adaptive Server is unavailable or does not exist |
The host exists and can be resolved, and the “Centreon” user is indeed created with a capital C.
However a simple tsql command succeeds :
-bash-4.2$ tsql -H XXXXXXX.database.windows.net -U Centreon@XXXXXXX.database.windows.net -P 'XXXXXXX' -p 1433
>locale is "en_US.UTF-8"
>locale charset is "UTF-8"
>using default charset "UTF-8"
>
I’m not sure what I’m missing in the syntax for the plugin.
If you have experience connecting to Azure MSSQL instances with this plugin I’d need your insight.
Thanks !