ZABBIX Forums  

Go Back   ZABBIX Forums > Zabbix Discussions and Feedback > Zabbix Help

Reply
 
Thread Tools Display Modes
  #1  
Old 10-11-2016, 13:13
IT-Yannick IT-Yannick is offline
Junior Member
 
Join Date: Nov 2016
Location: Portugal
Posts: 7
Default Zabbix 3.2.1 Changing trends value of an item affecting graphs

Hello,

I recently found out that I had items with the value 0d (trends) and 90d (History). This makes me only see data up to 90 days on graphs.
These items were added +5 months ago.

Therefore, I changed the trends from 0 to 365 days and now I only get data of the last 1 hour.
So I changed back to 0 days and I can see the last 3 months(90d) again.

Is there a way I can see my last 90 days and new data using 365d on trends?

Thanks.


Attached 2 screenshots (trends 0 days and trends 365 days)
Attached Images
  

Last edited by IT-Yannick; 10-11-2016 at 19:56.
Reply With Quote
  #2  
Old 11-11-2016, 00:34
nick0909 nick0909 is offline
Member
 
Join Date: Apr 2013
Posts: 73
Default

Trend data values should be larger than history. History keeps all records as collected. Trends are a less-detailed view of averaged history data. The process of creating trends from history is done by the housekeeper.

For example, in general I use 7 day history and 365 day trends. After a history item is older than 7 days it gets merged in to history data and the trend data is purged. If you changed your history and trend values and the housekeeper ran, you could have lost data, so be sure you know what you are changing before you make adjustments. After you adjust these items sometimes you have to wait for the housekeeper to run before the graphs will show up without gaps or dotted lines it seems. Mine runs every hour.

Zabbix documentation on history and trends
Reply With Quote
  #3  
Old 11-11-2016, 12:14
IT-Yannick IT-Yannick is offline
Junior Member
 
Join Date: Nov 2016
Location: Portugal
Posts: 7
Default

Thank you very much for the reply and example :)

The strange part is that I can still see older data, but for that I have to change the item trends back to 0d (original config). So it didn't delete the history (90d)

Yes yes I know that the trends should be longer than the history but at the time I created it wrong.

I'll keep the new item configuration (365d) as it's more future proof.

------------------------------------------------------------------------
before:
trends:0d - history:90d - I see a maximum of 90d of data

Now:
trends:365d - history:90d - I only see new data (that will grow with time)
Reply With Quote
  #4  
Old 21-11-2016, 09:46
glebs.ivanovskis glebs.ivanovskis is offline
Senior Member
 
Join Date: Jul 2015
Posts: 235
Default

That's how frontend graphing logic works...
Reply With Quote
  #5  
Old 21-11-2016, 12:25
IT-Yannick IT-Yannick is offline
Junior Member
 
Join Date: Nov 2016
Location: Portugal
Posts: 7
Default

Quote:
That's how frontend graphing logic works...
So it's normal that changing trends deletes all data from that item?
Reply With Quote
  #6  
Old 21-11-2016, 12:52
glebs.ivanovskis glebs.ivanovskis is offline
Senior Member
 
Join Date: Jul 2015
Posts: 235
Default

I didn't say it's normal You are free to go to support.zabbix.com and create a ZBX

And it does not delete data, it simply does not see data. It thinks like so: "I was requested a graph for a month, I'd better use trends for performance, keep trends is not zero, so there must be some, right? Oh, there is nothing in trends, so I will draw nothing." Actually, this works fine most of the time. If you simply wait a bit (or configure everything "correctly" from the beginning) you should see expected graphs.
Reply With Quote
  #7  
Old 21-11-2016, 13:59
IT-Yannick IT-Yannick is offline
Junior Member
 
Join Date: Nov 2016
Location: Portugal
Posts: 7
Default

Thanks it makes sense the way you put it.
I was expecting to use the existent history instead of the "nonexistent" trends.
Reply With Quote
  #8  
Old 21-11-2016, 15:21
kloczek kloczek is offline
Senior Member
 
Join Date: Jun 2006
Location: UK/London
Posts: 911
Default

Quote:
Originally Posted by nick0909 View Post
TThe process of creating trends from history is done by the housekeeper.
Just small correction: calculating trends ponts have nothing to do with housekeeper. It is seperated part of zabbix server code.
Trend point is calculated every full hour and consist from 4 values: max, min, avg value of all history points within last hour + timestamp.
Housekeeper is only responsible for delete oldest trends data out of HK time window.

Another qute frequent misconception is how zabbix calculates trends points. They are not calculated by query each full hour each item last hour data from DB backend and calculate last hour trend point. They are calculated on receive every new point in each item. These temporary values are kept in cache. Each full hour those cached values are only read, stored in trends tables and zeroed. It is very effective technique allowing minimize interraction with DB backend.
Reply With Quote
Reply

Tags
graphs, history, item, trends

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 20:18.