I want to keep an eye on 3 Kafka folders (web processing). Here is what I have done:
I then created another calculated item (call it "Change" set to: last(//Last2) - last(//Last), saved as "Numeric (float)"
Over the normal operation, the count of kafka files varies, and if the karka count goes from 50 to 30, I do see:
Having negative values for my kafka change folder is critical for me to create a good alert to show a stuck web process where kafka files are no longer processed, i.e. if no negative value in past 30 minutes, send alert
- Mounted the kafka folders as "read-only" on my LinuxHelper VM
- Written an SNMP extension returning the values of the number of items in the 3 folders as a string in the format x;y;x
- Created an SNMP item in Zabbix receiving this string and being polled every minute
- Created 3 "Dependent item" items, that extract the proper number from the string (using Preprocessing) as saving it as a "Numeric (float)"
- For each of the 3 items, created the two following items (since change items do not keep negative values):
- A calculated item (call it last2), showing the 2nd to last value saved as "Numeric (float)"
- A calculated item (call it last), showing the last value saved as "Numeric (float)"
- For each of the 3 items, created the two following items (since change items do not keep negative values):
I then created another calculated item (call it "Change" set to: last(//Last2) - last(//Last), saved as "Numeric (float)"
Over the normal operation, the count of kafka files varies, and if the karka count goes from 50 to 30, I do see:
- Last2=50
- Last=30
- The "Change" calculated items should be -20
Having negative values for my kafka change folder is critical for me to create a good alert to show a stuck web process where kafka files are no longer processed, i.e. if no negative value in past 30 minutes, send alert
Comment