Ability to set alarms for a sensor, depending on its value.
Alarm could be specified as :
"If this sensor for this server is (under/above/equal to) this value then trigger an alert.".
Alerts could be :
This is a primary analysis... let's discuss about this if you want...
Alert could also be a webhook, so we can trigger a more complicated mechanism, like, in certain conditions restart daemon.
Email and webhook should be first implemented in my opinion. IMHO, we will never notifiy to a Social Network...
Cheers and thanks for your great work on skwissh, I will try to help you as soon as I have some time a weekend :)
Thank you for your feedback.
In my opinion, the first system to be implemented should be 'Launch a script file' (so inside the script we could do almost anything we want...).
We should keep in mind to launch specific command directly from the GUI, but it could come in future versions.
I also don't have time to work on it currently, sorry, but I keep in mind this enhancement.
mmm, what about creating a generic input field labelled URI and use something like file:///local, ssh:///fuu or http:///mydomain? In each case we can make it trigger a local script as you suggest, a remote script (both using fabric) and making a request using python-request for the later.
Also, we can leave the system open for more protocols or URI handlers, like mailto:/// will send an email.
So alarm will be "If this sensor for this server is (under/above/equal to) this value then trigger an alert to this URI(s)"
if SENSOR >=< VALUE then (URI1://MESSAGE1, URI2://MESSAGE2, ...)
I will help with this if we reach an agreement and manage to put everything together :)
Cheers (and thanks for your software)
I like the 'run a script' idea. That way you could have a process that may watch for a few measures of the sensor and then notify if things don't normalize. Nothing's more annoying than getting thousands of false positives thrown into your inbox.