Hello,
We need to implement an alerting that is triggered by multiple sensors on multiple devices. What is the best way to do this?
Best regards, sam
Article Comments
thank you for your reply!
how can i set a dependency for the library? and even more important, how to only send alerts if more than X sensors are down in a library? is this even possible?
Oct, 2015 - Permalink
Hi samfre,
Libraries do not have a status. This is why you cannot put a dependency on libraries and will not be able to send alerts if a certain number of sensors fails. You might want to work with the Sensor Factory Sensor at this point. This will allow you to create error conditions depending on the number of failing devices.
Best regards, Felix
Oct, 2015 - Permalink
Hello Felix
Nice, I managed to build my own custom sensor with the Sensor Factory which monitors different sensors from different devices. But I can't figure out how to write a proper Status Definition to alert if more than X sensors are down. How would I for example throw an alert (put the main Sensor to down) if eleven of my (sub-) sensors are down?
Oct, 2015 - Permalink
Sam,
You can find the status definition on the manual page.
In your case you will require the syntax
( status(1031) + status(1032) + status(1033) + status(1034)....status(last) ) >= 110000
This changes the factory sensor to a Down status if at least any 11 of the sensors with IDs 1031 , 1032 , 1033 , or 1034...last are Down . Otherwise the factory sensor shows an Up status.
Best regards, Felix
Oct, 2015 - Permalink
The easiest way to set a trigger on sensors which are on different devices is to create a library. In thereu can filter the sensors by tag, type, priority...
For example you can set a special tag on all sensors you want to have in your library, create it with that filter and then set the trigger on it.
Regards
Oct, 2015 - Permalink