First off, I want to say Zabbix is an amazing flexible software package. I am using Zabbix v5.4.7
I'm having trouble working out what the most efficient method would be to implement one of my use cases.
I want to monitor an interface.
To do this I query a database table every 30 minutes to grab a list of all interface rejections.
I will feed Zabbix an object list similar to the below:
There could be multiple rejections and each "packet" needs to be handled individually.
I have no trouble creating the custom monitoring item and returning the data to the Zabbix Server. My difficulty is on the trigger side.
I'd like to create a trigger event for each rejected packet that provides useful information about the issue.
Eg:
Problem: Interface Rejection - Packet 12345 - Order ORDERXYZ
Problem Started: {time}
Rejection Reason: Order already active- Picking in progress - unable to update order
I'd like to be able to create events based on packet number and not trigger problems for the same packet number multiple times (it could be there for a while).
Can this be done using a single item + trigger?
Or do I have to use low-level discovery? Low-level discovery for this use case sounds extremely messy. I wouldn't want to create a new item/trigger for each interface packet.
I'm having trouble working out what the most efficient method would be to implement one of my use cases.
I want to monitor an interface.
To do this I query a database table every 30 minutes to grab a list of all interface rejections.
I will feed Zabbix an object list similar to the below:
Code:
{
"12345":{"packet":"12345","ORDER_NO":"ORDERXYZ","REJECTION_REASON":"Order already active- Picking in progress - unable to update order"},
"12346":{"packet":"12346","ORDER_NO":"ORDERABC123","REJECTION_REASON":"Product COSTCO/PR123 doesn't exist in Item Master configuration"}
}
I have no trouble creating the custom monitoring item and returning the data to the Zabbix Server. My difficulty is on the trigger side.
I'd like to create a trigger event for each rejected packet that provides useful information about the issue.
Eg:
Problem: Interface Rejection - Packet 12345 - Order ORDERXYZ
Problem Started: {time}
Rejection Reason: Order already active- Picking in progress - unable to update order
I'd like to be able to create events based on packet number and not trigger problems for the same packet number multiple times (it could be there for a while).
Can this be done using a single item + trigger?
Or do I have to use low-level discovery? Low-level discovery for this use case sounds extremely messy. I wouldn't want to create a new item/trigger for each interface packet.
Comment