zabbix_sender_api is a ruby library that puts an API over the top of zabbix_sender. It takes a lot of the drudgery out of writing sender applications.
zfstozab is an example of something that builds upon it.
There is also some decent rdoc documentation ...