Hi,
I want add an userparameter to monitor MSSQL data.
zabbix folder is c:\zabbix
script folder is c:\zabbix\script
I wrote two scripts and put them into c:\zabbix\script
MSSQL.bat
@echo off
sqlcmd -U sa -P mypassword -Q "set nocount on;select count(*) from sys.sysprocesses where open_tran>0"
test.bat
@echo off
for /f %%i in ('MSSQL.bat') do echo %%i
Then I update c:\zabbix\zabbix_agentd.win.conf to add an userparamter
UserParameter=MSSQL.T,c:\zabbix\script\test.bat
I got an message when I run zabbix_agentd.exe -t MSSQL.T under c:\zabbix
MSSQL.T [m|ZBX_NOTSUPPORTED] [Unsupported
item key.]
Is there some mistakes I made or something else I missed?
thanks
I want add an userparameter to monitor MSSQL data.
zabbix folder is c:\zabbix
script folder is c:\zabbix\script
I wrote two scripts and put them into c:\zabbix\script
MSSQL.bat
@echo off
sqlcmd -U sa -P mypassword -Q "set nocount on;select count(*) from sys.sysprocesses where open_tran>0"
test.bat
@echo off
for /f %%i in ('MSSQL.bat') do echo %%i
Then I update c:\zabbix\zabbix_agentd.win.conf to add an userparamter
UserParameter=MSSQL.T,c:\zabbix\script\test.bat
I got an message when I run zabbix_agentd.exe -t MSSQL.T under c:\zabbix
MSSQL.T [m|ZBX_NOTSUPPORTED] [Unsupported
item key.]
Is there some mistakes I made or something else I missed?
thanks
Comment