Hello everybody!
I'm using Zabbix 7.4.2.
Recently i've been trying to create item that would show me, how long in the past 24 hours other item's (for clarity "ITEM DOOR") value had certain value.
Some technicalities about ITEM DOOR:
- main purpose: it checks if door is open (0 - closed, 1 - open);
- it's HTTP agent type;
- consists of two ways of gathering information: pulls with interval of 1 minute and traps, whenever door opens or closes. I'm not sure if it's good practice to combine pulls with traps. I've made it like this to make sure, that it gets data (if it's not good way of doing that, i would appreciate some tips : ) ). Precise time of door opening / closing is crucial;
- it's got simple trigger: last(/door_1/door.status,#1)=1
I need to create everyday report with information, for how long that door was open. My idea was to create item that would calculate time based on ITEM DOOR, display it on dashboard with some graphs and schedule report every midnight. So far, i've tried to:
- create calculated item using AVG function multiplying by update interval. Irregular traps are way too good at messing up average. I've tried to tweak it by creating custom AVG using Count, but it still was creating values, that were 10-30% higher than they should be;
- "problems" widget. It's good addition to dashboard, but it doesn't sum up problems duration;
- SLA report. It's closest to what i need, but the fact it's showing percentage instead of actual duration also makes it unusable (reports about door are meant for non-technical people, and they prefer easily readable duration).
I haven't touched Script item type yet, since i'm not really proficient at programing (i'll try it, if there's no way around : ) )
Has anyone stumbled on problem like that or has an idea, how could it be implemented?
I'm using Zabbix 7.4.2.
Recently i've been trying to create item that would show me, how long in the past 24 hours other item's (for clarity "ITEM DOOR") value had certain value.
Some technicalities about ITEM DOOR:
- main purpose: it checks if door is open (0 - closed, 1 - open);
- it's HTTP agent type;
- consists of two ways of gathering information: pulls with interval of 1 minute and traps, whenever door opens or closes. I'm not sure if it's good practice to combine pulls with traps. I've made it like this to make sure, that it gets data (if it's not good way of doing that, i would appreciate some tips : ) ). Precise time of door opening / closing is crucial;
- it's got simple trigger: last(/door_1/door.status,#1)=1
I need to create everyday report with information, for how long that door was open. My idea was to create item that would calculate time based on ITEM DOOR, display it on dashboard with some graphs and schedule report every midnight. So far, i've tried to:
- create calculated item using AVG function multiplying by update interval. Irregular traps are way too good at messing up average. I've tried to tweak it by creating custom AVG using Count, but it still was creating values, that were 10-30% higher than they should be;
- "problems" widget. It's good addition to dashboard, but it doesn't sum up problems duration;
- SLA report. It's closest to what i need, but the fact it's showing percentage instead of actual duration also makes it unusable (reports about door are meant for non-technical people, and they prefer easily readable duration).
I haven't touched Script item type yet, since i'm not really proficient at programing (i'll try it, if there's no way around : ) )
Has anyone stumbled on problem like that or has an idea, how could it be implemented?
Comment