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.
getting error while connecting to DB
-
vinayvemula
- Posts: 18
- Joined: Mon Jun 03, 2019 2:09 am
Re: getting error while connecting to DB
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
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.
[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.
Re: getting error while connecting to DB
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.
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.
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 = requireCode: Select all
tsql -S sqlhost -U username -P password -L -vAs 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!
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
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
Locking threadvinayvemula wrote:raising new ticket for this issue. This thread can be locked.