Usage of zabbix_sender.exe, windows scheduled task

The usage of zabbix_sender may be quite locally oriented. If you want to gather some data with the theme "every bit matters" and "do not put useless data in database" then zabbix_sender is a way to go.

Before using zabbix_sender at first a Zabbix receiver (trap) must be properly configured in Zabbix server. Create a host "trap receiver" with dummy IP address like 0.0.0.0 and add a new item to the host.

Host name:
trap receiver
Key:
top.secret.message
Now I can send a message:
zabbix_sender.exe --zabbix-server 5d61050b753b.sn.mynetname.net --host "trap receiver" -k top.secret.message -o "are you there yet?"
or:
zabbix_sender.exe -z 5d61050b753b.sn.mynetname.net -s "trap receiver" -k top.secret.message -o "are you there yet?"
or:
zabbix_sender.exe --zabbix-server ec2-35-166-97-138.us-west-2.compute.amazonaws.com --host trap -k trap.key -o hello
Another way to use zabbix_sender would be on scenarios like:
  • When the computer starts
  • When I log on
  • When a specific event is logged
For example to note down when user has been logged on I can use:
Here is template which needs to be assigned to hast named "trap receiver" to work with this tutorial: