Ad Widget

Collapse

time when the last value was stored?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nilsh
    Junior Member
    • Dec 2010
    • 5

    #1

    time when the last value was stored?

    i have a data source(squid) which delivers a steadily increasing value. after zabbix's query for the value, the value is resetted at the data source.

    now i have made zabbix ask every 60 sec for the value and divide by 60 to get an the value per second. but after every times zabbix is down or can't reach the data source, the calculated value is of course much too high because i divide only by 60 sec.

    is there a better way to get this value? if not, can i access the time when the last value was stored in my calculated item?
  • untergeek
    Senior Member
    Zabbix Certified Specialist
    • Jun 2009
    • 512

    #2
    Two things:

    1. Why is the value reset after the query? If you can prevent this behavior, do the following:
    Investigate the item attribute, "Store value."

    The drop-down lets you chose "As-is, Delta (speed per second), Delta (simple change)"

    The Delta (speed per second) is what you could use instead of what you've been doing. Then if the value is HUGE after even an hour, it is sill more accurately averaged because Zabbix does the time calculations for you.


    2. If you can't stop the value-reset behavior, use a script local to (squid) to do the checks and send the information back to Zabbix via zabbix_sender. That way if there's a hiccup, the script can run every minute and do the checking and calculating for you and your next value will simply be the next one to come from the server in question, rather than a built-up, enormous value.
    Last edited by untergeek; 10-12-2010, 18:01.

    Comment

    Working...