Ad Widget

Collapse

Can arbitrary data be sent to Zabbix server through the API?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chamic
    Junior Member
    • May 2012
    • 1

    #1

    Can arbitrary data be sent to Zabbix server through the API?

    I'd like for a remote process to send messages (most likely 0 or 1) to Zabbix server to indicate an internal state of the running process. I'd preconfigure an item in the Zabbix admin page and assign it to the host that the process is running on. Using the Zabbix API I would only be sending 0 or 1 to this item to indicate a change.

    The status should show in the Monitoring->Latest data page, and therefore would be graphable. I'd also want to be able to assign a trigger to send out notifications when the status changes.

    Is it possible to do this kind of update with the API? I'm not sure what to put in the 'type' and 'key' fields in the item configuration page. I've tried using the python wrapper for the Zabbix API to update an item's 'lastvalue' field but that doesn't seem to do anything -- when I query the item again, the 'lastvalue' is empty. Maybe 'lastvalue' isn't what I should be setting. The item isn't listed anywhere in the Monitoring->Latest data page, so maybe I haven't configured something correctly.

    Is there a guide for what I want to do?
Working...