MSSQL Configuration Issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
aruln58
Posts: 1
Joined: Tue Aug 03, 2021 11:28 am

MSSQL Configuration Issue

Post by aruln58 »

Hello,

Could someone please assit on below.

When we try to test the configuration of SQL DB using AD account it is throwing below error. But the same is working fine when we using local account. Could you please check and assist on this.

[root@Host libexec]# ./check_mssql_server.php -H xx.xx.xx.xx--checktype 'database' -U 'domain\login' -P '**********--instancename 'master' --perftype default -p 1433 --mode time2connect --warning 1 --critical 5
ERROR: [run_check] CRITICAL: Could not connect to dblib:host=xx.xx.xx.xx:1433;dbname=master;charset=UTF8 as domain\login (Exception: SQLSTATE[01002] Adaptive Server connection failed (ipaddress:1433) (severity 9))
CRITICAL: Could not connect to dblib:host=xx.xx.xx.xx:1433;dbname=master;charset=UTF8 as domain\login (Exception: SQLSTATE[01002] Adaptive Server connection failed (xx.xx.xx.xx:1433) (severity 9)).

Note: We have already tried below steps
Nagios XI - MSSQL Wizards - Adaptive Server connection failed
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: MSSQL Configuration Issue

Post by pbroste »

Hello @aruln58

Thanks for reaching out, appears that the issue is related to Adaptive Server connection failed. Even though the support kb is a bit outdated we see that the check_mssql_server.php is referencing '/etc/freetds.conf'.

Reference:
# A typical Microsoft server
[egServer73]
host = xxxxxxx.domain.com
port = 1433
tds version = 7.3
Here you can set host and set tds version.

Thanks,
Perry
Locked