We've been using Zabbix for over a year with Linux hosts, but we are facing an issue monitoring a Windows Server 2012 machine. Everything is working except for the items defined as UserParameter or Zabbix trapper items. For some reason these values doesn't get to the server.
I even tried to copy and paste the system.test line but it doesn't work either. Here are some of the items we defined and are not working:
If I try to use zabbix_get, I receive a blank value:
C:\zabbix_agents_3.2.0.win\bin\win64>zabbix_get.ex e -s 127.0.0.1 -k system.test
But I know zabbix_get is working if I try to retreive another value, for example a non-valid value:
C:\zabbix_agents_3.2.0.win\bin\win64>zabbix_get.ex e -s 127.0.0.1 -k system.ping
ZBX_NOTSUPPORTED: Unsupported item key.
Or the agent version:
C:\zabbix_agents_3.2.0.win\bin\win64>zabbix_get.ex e -s 127.0.0.1 -k agent.version
3.2.0
When I set the debug level at maximum I can see it actually executes the command but cmd is returning an empty array: '[]'
And when using a trapper item it just returns an error:
C:\zabbix_agents_3.2.0.win\bin\win64>zabbix_sender .exe -vv -z zproxy01.privaliap
ro.aws -p 10051 -s Test-host -k TestItem -o 1
zabbix_sender.exe [11320]: DEBUG: answer [{"response":"success","info":"processe
d: 0; failed: 1; total: 1; seconds spent: 0.000019"}]
info from server: "processed: 0; failed: 1; total: 1; seconds spent: 0.000019"
sent: 1; skipped: 0; total: 1
Any idea? I've been using userparameters and trappers on other hosts with no problems at all. What can be causing the issue?
I even tried to copy and paste the system.test line but it doesn't work either. Here are some of the items we defined and are not working:
# Example: UserParameter=system.test,echo 1
UserParameter=pingt[*],echo $1
UserParameter=ping,echo "AS"
UserParameter=system.test,echo 1
UserParameter=EasyWmsQueue,echo 1
UserParameter=EasyWmsCarriers,C:\ZabbixScripts\tes t2.bat
UserParameter=pingt[*],echo $1
UserParameter=ping,echo "AS"
UserParameter=system.test,echo 1
UserParameter=EasyWmsQueue,echo 1
UserParameter=EasyWmsCarriers,C:\ZabbixScripts\tes t2.bat
If I try to use zabbix_get, I receive a blank value:
C:\zabbix_agents_3.2.0.win\bin\win64>zabbix_get.ex e -s 127.0.0.1 -k system.test
But I know zabbix_get is working if I try to retreive another value, for example a non-valid value:
C:\zabbix_agents_3.2.0.win\bin\win64>zabbix_get.ex e -s 127.0.0.1 -k system.ping
ZBX_NOTSUPPORTED: Unsupported item key.
Or the agent version:
C:\zabbix_agents_3.2.0.win\bin\win64>zabbix_get.ex e -s 127.0.0.1 -k agent.version
3.2.0
When I set the debug level at maximum I can see it actually executes the command but cmd is returning an empty array: '[]'
And when using a trapper item it just returns an error:
C:\zabbix_agents_3.2.0.win\bin\win64>zabbix_sender .exe -vv -z zproxy01.privaliap
ro.aws -p 10051 -s Test-host -k TestItem -o 1
zabbix_sender.exe [11320]: DEBUG: answer [{"response":"success","info":"processe
d: 0; failed: 1; total: 1; seconds spent: 0.000019"}]
info from server: "processed: 0; failed: 1; total: 1; seconds spent: 0.000019"
sent: 1; skipped: 0; total: 1
Any idea? I've been using userparameters and trappers on other hosts with no problems at all. What can be causing the issue?
Comment