Zabbix: Create a template with trapper items
Budget: €30 – €60 EUR
Create a Zabbix 5 LTS template which receives a string from zabbix_sender, uses preprocessing to split it into ten values and save the items.
I prefer to send a string using whitespace to seperate the values, but if you have a better idea we can use that (e.g. JSON)!
We can also use a different key!
So I will call evey one minute:
zabbix_sender ... -k httpd_log.parsed_info -o "0 21 100 7 6 201 87 91 6842 100432567 0.132"
10 integers and a float at the end.
Then create two template screen or graphs (what makes more sense?) using these values:
First: Use the first 8 values to draw a nice screen with the values 'stacked'.
Second:
The 9th (in) an 10th (out) values are bytes. (BTW: I like 1024 not 1000.)
The 11th value is seconds. Is there a nice way to show it also in this screen/graph?
Write a trigger:
If you do not receive any data for 3 minutes send a problem. (Use a macro for the 3 minutes.)
If the 9th value is 0 three times in a row send a problem. (Is it possible to use a (different) macro here, too?)
Yes, there might be more work for you.....
I prefer to send a string using whitespace to seperate the values, but if you have a better idea we can use that (e.g. JSON)!
We can also use a different key!
So I will call evey one minute:
zabbix_sender ... -k httpd_log.parsed_info -o "0 21 100 7 6 201 87 91 6842 100432567 0.132"
10 integers and a float at the end.
Then create two template screen or graphs (what makes more sense?) using these values:
First: Use the first 8 values to draw a nice screen with the values 'stacked'.
Second:
The 9th (in) an 10th (out) values are bytes. (BTW: I like 1024 not 1000.)
The 11th value is seconds. Is there a nice way to show it also in this screen/graph?
Write a trigger:
If you do not receive any data for 3 minutes send a problem. (Use a macro for the 3 minutes.)
If the 9th value is 0 three times in a row send a problem. (Is it possible to use a (different) macro here, too?)
Yes, there might be more work for you.....