MSSQL Monitoring Issue
Posted: Wed Aug 28, 2024 7:50 am
NagiosXI version: 2024R1.2
OS: CentOS9
Issue: MSSQL monitoring throws the following error when trying to connect to any SQL database/server on the network:
ERROR: [run_check] CRITICAL: Could not connect to odbc:Driver=FreeTDS:Server=xx.xx.xx.xx:Port=1433:dbname=master:charset=UTF8 as sa (Exception: SQLSTATE[08001] SQLDriverConnect: 0 [FreeTDS][SQL Server]Unable to connect to data source)
What I have tried:
-Confirmed odbc and mssql install with "yum install php-odbc" and "yum install php-mssql"
-Tried running the plugin command manually on the Nagios terminal but it comes up with the same error
-Confirmed firewall rules are in place that are recommended for port 1433
-Disabled firewall on targeted VM
-TCP/IP protocol Enabled on SQL server settings
-I am able to ping the database from the Nagios server
-Confirmed the password and username to access the database is correct
Is there some configuration for TDS or ODBC drivers that I need to do or missed?
Thanks
OS: CentOS9
Issue: MSSQL monitoring throws the following error when trying to connect to any SQL database/server on the network:
ERROR: [run_check] CRITICAL: Could not connect to odbc:Driver=FreeTDS:Server=xx.xx.xx.xx:Port=1433:dbname=master:charset=UTF8 as sa (Exception: SQLSTATE[08001] SQLDriverConnect: 0 [FreeTDS][SQL Server]Unable to connect to data source)
What I have tried:
-Confirmed odbc and mssql install with "yum install php-odbc" and "yum install php-mssql"
-Tried running the plugin command manually on the Nagios terminal but it comes up with the same error
-Confirmed firewall rules are in place that are recommended for port 1433
-Disabled firewall on targeted VM
-TCP/IP protocol Enabled on SQL server settings
-I am able to ping the database from the Nagios server
-Confirmed the password and username to access the database is correct
Is there some configuration for TDS or ODBC drivers that I need to do or missed?
Thanks