COMPLETE: Alerts for apps

Tonight i realized that i cannot create an alert for any application values, ie:

OS updates App, i want to make an alert when value is greater than lets say 10 packets.
I’m missing something or this is not possible atm?

You can only alert for values in the database currently I think.

should it be better to make alerts to work also from rrd values or to import last values from rrd to db and keep alerts only from db?

We won’t be able to get values out of rrd files without some major work - the rules create an sql query to get values.

However, yes, we should store everything written to rrd in the db. We are missing this in some areas but have it in most.

a new table with value name, ds name, last value and an addition to polling scripts do a sql insert/update in that table would work? i don’t know how alerts are generated …

We have comonents table / api which will be able to store this data.

It’s possible to tie it in to data update call and record all previous values, we will be duplicating a lot of data at that stage as most other modules record to a database already.

i’ve pushed an PR with my current view on how should we do that

COMPLETE: