On 2013-10-20 17:27, Adam Armstrong wrote:
On 2013-10-20 12:56, Sander Steffann wrote: Hi,
I added some alerts for storage some time ago but they don't seem to work (yet?).
This is how I created the checker:
As you can see 130 checks are created but none of them is checked.
Should I just have a bit more patience or does this need some debugging? :-)
I have a feeling that it /may/ be storage_perc...
I'll check later :)
Ok, both were true. I was accidentally passing $mempool instead of $storage, *and* you were using the wrong metric.
The storage entity currently only passes a single metric, storage_perc.
// Check alerts check_entity('storage', $storage, array('storage_perc' => $percent));
I should probably also pass free/used in MB as I think they're probably useful for some people too.
The bug is fixed in latest SVN :)
adam.