I wanted to track some custom metrics into our Zabbix instance now that I am familiar with the graphs, etc and I want to start stacking graphs on top of each other, during certain events to get the whole story on why metrics are going up, etc. We are using Zabbix 6.4, and I have a couple of general Postman requests interacting with our Zabbix instance API, mostly just getting the host ID, 1m Load Average, etc. but now what I want to do is start recording certain events in our Zabbix instance for our hosts. The first custom event that I want to track is whether a process is currently running. This can be a very basic 1, or 0 value, just so I can get my feet wet with creating custom metrics. So when the process starts, I will record a 1, and then after the process has finished, I'll record a 0.
With that out of the way, is there any documentation where I can see how to create these custom events for a host (we have about 100 hosts we're managing)? We are a PHP shop, so any examples would be great, or if there are any libraries already created for this, that would be great too. I am hoping we can just create the custom events through an API request, but if I have to set up the custom event inside Zabbix first before recording the events, that's fine too. I just need a jumping off point right now. I came from a NewRelic shop, and NewRelic had a PHP extension I could use to create these custom events easily. Also, I tried ChatGPT to see if I could get anywhere, but it wasn't any help with this
Thanks in advance!
With that out of the way, is there any documentation where I can see how to create these custom events for a host (we have about 100 hosts we're managing)? We are a PHP shop, so any examples would be great, or if there are any libraries already created for this, that would be great too. I am hoping we can just create the custom events through an API request, but if I have to set up the custom event inside Zabbix first before recording the events, that's fine too. I just need a jumping off point right now. I came from a NewRelic shop, and NewRelic had a PHP extension I could use to create these custom events easily. Also, I tried ChatGPT to see if I could get anywhere, but it wasn't any help with this
Thanks in advance!
Comment