Le 07/06/2013 14:48, Andy Brown a écrit :
> Hi all,
> 
> I'm after a couple of pointers. What I'm wanting to achieve is to detect
> when a harbor source is lost. I run a few internet streams for various
> radio stations and have fallback systems in place, but want to be
> notified or specify notification emails for them.
> 
> I'm looking around line 165 of sources/harbor_input.ml at the:
> self#log#f 2 "Feeding stopped: %s." (Utils.error_message e) ;
> 
> As I think this would be the correct trigger point, but I don't know
> anything about OCaml so trying to work out the best way of implementing
> this.
> 
> Can anyone offer any pointers?--

Hi,

Yes, you can use the on_blank on your source to generate an alert like that:
function blank_alert()
        system("whatever shell command you want to be executed on blank")
end

onblank(blank_alert, length=XX., your_source)

I usually use that with the on_noise parameter as well, to call a script
that mails or do whatever needs to be done externally..

Good luck ;)



> Andy
> e: andy @ thebmwz3.co.uk
> w: http://www.thebmwz3.co.uk
> g: https://github.com/andyb2000/
> 
> ------------------------------------------------------------------------------
> How ServiceNow helps IT people transform IT departments:
> 1. A cloud service to automate IT design, transition and operations
> 2. Dashboards that offer high-level views of enterprise services
> 3. A single system of record for all IT processes
> http://p.sf.net/sfu/servicenow-d2d-j
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
> 


------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to