Hello guys,
I have the following problem,
I try to discover the database with the Template Template Microsoft SQL Server with the discovery Database discovery and the key "db.odbc.discovery [dbname, {$ ODBC}]" that contains the query select:
' {"data": [', (SELECT STUFF ((SELECT', '+' {"{#DBNAME}": "'+ [Name] +'"} 'FROM master..sysdatabases ORDER BY [Name] FOR XML PATH ('')), 1, 1, '')), ']}' FOR XML PATH ('').
Odbc.ini configuration:
[ss] Driver = FreeTDS
Server = 10.10.10.10
Port = 59 TDS_
Version = 8.0
#ClientCharset = UTF-8
User = Zabbix
Password = Zabbix
Language = us_english
Connect to the database OK Result of query in database:
{"data":[{"{#DBNAME}":"CAREMAN"},{"{#DBNAME}":"master"}, {"{ #DBNAME}":"model"},{"{#DBNAME}":"msdb"},{"{#DBNAME }":"psmanager"},{"{#DBNAME}":"tempdb"}]}
Result in zabbix:
Cannot convert column #1 name to macro.
Zabbix Versión : 3.2.4
SO: CentOS Linux release 7.3.1611
I do not have access to the agent's log to be instances of a database. Thank you very much for the help you can offer and sorry for the writing. Regards.
I have the following problem,
I try to discover the database with the Template Template Microsoft SQL Server with the discovery Database discovery and the key "db.odbc.discovery [dbname, {$ ODBC}]" that contains the query select:
' {"data": [', (SELECT STUFF ((SELECT', '+' {"{#DBNAME}": "'+ [Name] +'"} 'FROM master..sysdatabases ORDER BY [Name] FOR XML PATH ('')), 1, 1, '')), ']}' FOR XML PATH ('').
Odbc.ini configuration:
[ss] Driver = FreeTDS
Server = 10.10.10.10
Port = 59 TDS_
Version = 8.0
#ClientCharset = UTF-8
User = Zabbix
Password = Zabbix
Language = us_english
Connect to the database OK Result of query in database:
{"data":[{"{#DBNAME}":"CAREMAN"},{"{#DBNAME}":"master"}, {"{ #DBNAME}":"model"},{"{#DBNAME}":"msdb"},{"{#DBNAME }":"psmanager"},{"{#DBNAME}":"tempdb"}]}
Result in zabbix:
Cannot convert column #1 name to macro.
Zabbix Versión : 3.2.4
SO: CentOS Linux release 7.3.1611
I do not have access to the agent's log to be instances of a database. Thank you very much for the help you can offer and sorry for the writing. Regards.
Comment