getting error while connecting to DB

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
vinayvemula
Posts: 18
Joined: Mon Jun 03, 2019 2:09 am

Re: getting error while connecting to DB

Post by vinayvemula »

We have made below entry in tds file for custom port 2058 but still getting the same error

[MSSQLServer1]
host = sqlserver
port = 2058
tds version = 7.3
encryption = require

Could you please let us know if we have make any other changes after this.
Last edited by vinayvemula on Mon Aug 24, 2020 7:19 am, edited 1 time in total.
vinayvemula
Posts: 18
Joined: Mon Jun 03, 2019 2:09 am

Re: getting error while connecting to DB

Post by vinayvemula »

We have made below entry in tds file for custom port 2058 but still getting the same error

[MSSQLServer1]
host = sqlserver
port = 2058
tds version = 7.3
encryption = require

Could you please let us know if we have make any other changes after this.
User avatar
jbrunkow
Posts: 441
Joined: Fri Mar 13, 2020 10:45 am

Re: getting error while connecting to DB

Post by jbrunkow »

You will need to make sure that the host name or IP address passed to the -H option in the check command matches the entry for host = in your configuration file.

That means that if you are specifying sqlhost in the command, your configuration should probably look like the following.

Code: Select all

[sqlhost]
host = sqlserver
port = 2058
tds version = 7.3
encryption = require
You could also test the configuration by submitting the following command. It should rely on that same host name configuration; if that works the check should work.

Code: Select all

tsql -S sqlhost -U username -P password -L -v
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
vinayvemula
Posts: 18
Joined: Mon Jun 03, 2019 2:09 am

Re: getting error while connecting to DB

Post by vinayvemula »

raising new ticket for this issue. This thread can be locked.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: getting error while connecting to DB

Post by scottwilkerson »

vinayvemula wrote:raising new ticket for this issue. This thread can be locked.
Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked