We are running on zabbix 1.1.2 and doing some experiments with remote commands on a group of windows machines.
I found out that it is possible to pass a parameter to the remote command, like
WORKSTATIONS.WIN32#"c:\zabagent\test.bat" test123
But this only works with a "static" parameter (like test123).
But wouldn't it be nice if you could pass on parameters to the remote command i.c. the macro's that can be used in a message body of an email (like {HOSTNAME}, {{HOSTNAME}:{TRIGGER.KEY}.last(0)}, {TRIGGER.NAME} and so on ?
That would make this feature a lot more powerful to use in groups of hosts.
For example: I have a CPU measurement running on a group of WIN32 workstations, through a template. If CPU on a workstation exceeds 75%, I want to execute a remote command on this specific workstation.
I found out that it is possible to pass a parameter to the remote command, like
WORKSTATIONS.WIN32#"c:\zabagent\test.bat" test123
But this only works with a "static" parameter (like test123).
But wouldn't it be nice if you could pass on parameters to the remote command i.c. the macro's that can be used in a message body of an email (like {HOSTNAME}, {{HOSTNAME}:{TRIGGER.KEY}.last(0)}, {TRIGGER.NAME} and so on ?
That would make this feature a lot more powerful to use in groups of hosts.
For example: I have a CPU measurement running on a group of WIN32 workstations, through a template. If CPU on a workstation exceeds 75%, I want to execute a remote command on this specific workstation.
Comment