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/
Only alerting by email is supported right now. Most carriers have an email to sms gateway address you can use. http://martinfitzpatrick.name/list-of-email-to-sms-gateways/ http://martinfitzpatrick.name/list-of-email-to-sms-gateways/
Justin Miller dynstatic.net
On Dec 23, 2014, at 7:09 AM, Welisson Tomé welissontome@ig.com.br wrote:
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 observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
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.
Add to config.php: $config['alerts']['external_command'] = "/usr/local/bin/twitter.py";
Locate the notyfy() function in includes/functions.inc.php and add the following line to the end of that function: shell_exec($config['alerts']['external_command'].' "'.$message.'"');
That's it!
Welisson Tomé wrote at 23-12-2014 13:09:
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/
Hi
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
On 12/24/2014 05:40 PM, Michiel Klaver wrote:
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.
Add to config.php: $config['alerts']['external_command'] = "/usr/local/bin/twitter.py";
Locate the notyfy() function in includes/functions.inc.php and add the following line to the end of that function: shell_exec($config['alerts']['external_command'].' "'.$message.'"');
That's it!
Welisson Tomé wrote at 23-12-2014 13:09:
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 observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
I do like how Fail2Ban supports an array of custom triggers and actions.
----- Mike Hammett Intelligent Computing Solutions http://www.ics-il.com
----- Original Message -----
From: "Supun Rathnayake" supunr@lankacom.net To: observium@observium.org Sent: Wednesday, December 24, 2014 7:19:29 AM Subject: Re: [Observium] Alert by sms
Hi
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
On 12/24/2014 05:40 PM, Michiel Klaver wrote:
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.
Add to config.php: $config['alerts']['external_command'] = "/usr/local/bin/twitter.py";
Locate the notyfy() function in includes/functions.inc.php and add the following line to the end of that function: shell_exec($config['alerts']['external_command'].' "'.$message.'"');
That's it!
Welisson Tomé wrote at 23-12-2014 13:09:
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 observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
_______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
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.
On 2014-12-24 13:19, Supun Rathnayake wrote:
Hi
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
On 12/24/2014 05:40 PM, Michiel Klaver wrote: 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.
Add to config.php: $config['alerts']['external_command'] = "/usr/local/bin/twitter.py";
Locate the notyfy() function in includes/functions.inc.php and add the following line to the end of that function: shell_exec($config['alerts']['external_command'].' "'.$message.'"');
That's it! Welisson Tomé wrote at 23-12-2014 13:09: 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 observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
I 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----- De : observium [mailto:observium-bounces@observium.org] De la part de Adam Armstrong 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.
On 2014-12-24 13:19, Supun Rathnayake wrote:
Hi
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
On 12/24/2014 05:40 PM, Michiel Klaver wrote: 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.
Add to config.php: $config['alerts']['external_command'] = "/usr/local/bin/twitter.py";
Locate the notyfy() function in includes/functions.inc.php and add the following line to the end of that function: shell_exec($config['alerts']['external_command'].' "'.$message.'"');
That's it! Welisson Tomé wrote at 23-12-2014 13:09: 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 observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
_______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
It's already modular, there's just no way in the gui to change notification mechanism.
On 31/12/2014 10:18, Mathieu POUSSIN wrote:
I 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----- De : observium [mailto:observium-bounces@observium.org] De la part de Adam Armstrong 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.
On 2014-12-24 13:19, Supun Rathnayake wrote:
Hi
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
On 12/24/2014 05:40 PM, Michiel Klaver wrote: 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.
Add to config.php: $config['alerts']['external_command'] = "/usr/local/bin/twitter.py";
Locate the notyfy() function in includes/functions.inc.php and add the following line to the end of that function: shell_exec($config['alerts']['external_command'].' "'.$message.'"');
That's it! Welisson Tomé wrote at 23-12-2014 13:09: 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 observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
participants (8)
-
Adam Armstrong
-
Justin Miller
-
Mathieu POUSSIN
-
Michiel Klaver
-
Mike Hammett
-
Supun Rathnayake
-
Tom Laermans
-
Welisson Tomé