Hello
I try to configure the monitoring of an MS SQL 2014 always on cluster
I become crazy i don’t understand why i cannot connect using a domain account :
# /usr/lib/centreon/plugins//centreon_mssql.pl --plugin database::mssql::plugin --hostname <clusterFQDN> --port 1433 --username <DOMAIN>\\<USER> --password <PASSWORD> --verbose --mode='connection-time'
CRITICAL: Cannot connect: OpenClient message: LAYER = (0) ORIGIN = (0) SEVERITY = (78) NUMBER = (44)
Server , database
Message String: Server name not found in configuration files.
Server message number=18452 severity=14 state=1 line=1 server=WUNIDBKLIF4 text=Login failed. The login is from an untrusted domain and cannot be used with Windows authentication. OpenClient message: LAYER = (0) ORIGIN = (0) SEVERITY = (78) NUMBER = (34)
Server , database
Message String: Adaptive Server connection failed
OpenClient message: LAYER = (0) ORIGIN = (0) SEVERITY = (78) NUMBER = (34)
Server , database
Message String: Adaptive Server connection failed
but from the same pooler i am able to connect without any problem with tsql
# tsql -H <clusterFQDN> -p 1433 -U '<DOMAIN>\<USER>' -P '<PASSWORD>' -v -ot -ov
locale is "en_US.UTF-8"
locale charset is "UTF-8"
using default charset "UTF-8"
1> exit
#
my freetds.conf file :
global]
# TDS protocol version
tds version = 8.0
# Whether to write a TDSDUMP file for diagnostic purposes
# (setting this to /tmp is insecure on a multi-user system)
dump file = /tmp/freetds.log
debug flags = 0xffff# Command and connection timeouts
; timeout = 10
; connect timeout = 10# To reduce data sent from server for BLOBs (like TEXT or
# IMAGE) try setting 'text size' to a reasonable limit
; text size = 64512# If you experience TLS handshake errors and are using openssl,
# try adjusting the cipher list (don't surround in double or single quotes)
# openssl ciphers = HIGH:!SSLv2:!aNULL:-DH
use ntlmv2 = yes #Added for testing
I’m running centreon 22.04
Does anyone have an idea why ?