It's already modular, there's just no way in the gui to change
notification mechanism.
Post by Mathieu POUSSINI think a good way of writing it would me something modular/swappable.
The alerting system would call a default API what could be overrided, we could easily swap in the configuration file (like we can with custom_short_name, and custom_rewrite_location, but more complex I suppose, ideally something that could be defined in an array and chained (first call the SMS notification module if that match a specific critical level, then call the mail notification mobile if that don't, etc.).
It would allow everyone to develop their own notification module for their need (SMS/Pushover/etc.)
-----Message d'origine-----
Envoyé : dimanche 28 décembre 2014 03:28
À : Observium Network Observation System
Objet : Re: [Observium] Alert by sms
This was supposed to happen in an intended rewrite of the notification stuff, but instead it got extended slightly which complicated the rewrite.
sigh :)
It's not that complex, so maybe someone will squeeze it in.
adam.
Post by Supun RathnayakeHi
This is really good, thanks a lot for pointing this tip.
This is something we were really looking for to extend the alerting system.
Dear Observium Development Team,
Could you kindly make this formalize as a generic external call
function or something similar, so that it won't break the svn while
enabling the users to extend the alerting as they wish.
May be just hook up an additional inc.php file that we can use to put
our custom code like below.
With Best Regards,
Supun Rathnayake
Lanka communication Services (Pvt) Ltd.
65C, Dharmapala Mawatha,
Colombo 07.
Sri Lanka.
Tel: +94-11-2437545
http://www.lankacom.net
The current Observium config can already be used to send alerts other
than via email with some small tweaks.
(Warning, this breaks SVN)
We use this to direct alerts to a twitter account, but you could
rewrite it for example to execute 'gsmsendsms' command from the
gsm-utils package and hook-up a GSM unit directly to the serial port.
In case of a total network outage, this should still work.
$config['alerts']['external_command'] = "/usr/local/bin/twitter.py";
Locate the notyfy() function in includes/functions.inc.php and add the
shell_exec($config['alerts']['external_command'].' "'.$message.'"');
That's it!
Hi,
I've been searching on mailing list about this subject and not
successfull, so, i would like know if Observium can send alert using
sms like nagios, Is it possible?
Tks
-- Welisson Tomé
br.linkedin.com/in/welissontome/
_______________________________________________
observium mailing list
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
_______________________________________________
observium mailing list
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
_______________________________________________
observium mailing list
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
_______________________________________________
observium mailing list
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium