Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

send email notification when source drops

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
zash



Joined: 17 Aug 2008
Posts: 2

PostPosted: Sun Aug 17, 2008 10:23 pm    Post subject: send email notification when source drops Reply with quote

is there a way to get an email notification when the source drops?

It happens to me at least once a week that a source from a 3rd world country goes offline (long poweroutage that drains the UPS, ISP down, etc)

Thanks
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sun Aug 17, 2008 11:52 pm    Post subject: Reply with quote

Use on-disconnect or auth url option mount_end to run a script which will do the email notification.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
zash



Joined: 17 Aug 2008
Posts: 2

PostPosted: Mon Aug 18, 2008 2:53 am    Post subject: Reply with quote

Thank you Karl. <on-disconnect> is a great feature.
Back to top
View user's profile Send private message
cookiesunshinex



Joined: 27 Dec 2008
Posts: 18

PostPosted: Sat Dec 27, 2008 8:25 pm    Post subject: Reply with quote

Does anybody have an example of one of these scripts that generates an email to a specified email address? I'm using qmail on Centos 4.7 if that makes any difference.

For example, the help documentation gives this as an example:
<on-connect>/home/icecast/bin/source-start</on-connect>

so what would be in the /home/icecast/bin/source-start file?
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sat Dec 27, 2008 8:42 pm    Post subject: Reply with quote

it could be as simple as
Code:

#!/bin/sh
echo "stream $1 has just started" | mail -s "$1 started" account@addr.org


As you can see, not a really difficult thing to understand

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber