anyone knows if is possible to create an email alert to notify me when a mount point is connecting and disconnecting? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/icecast/attachments/20130724/b45e9502/attachment.htm
That would be possible if you call out a script in the connect or disconnect actions. I'm told that Icecast pushes the mount point as a variable, but I was unable to find any documentation. Does Icecast push the mount point to the on-connect and on-disconnect scripts as a variable?
Check out <on-connect> and <on-disconnect> for your mountpoint settings.. http://www.icecast.org/docs/icecast-2.3.1/icecast2_config_file.html#mount Cheers, Jordan On 07/24/2013 09:33 AM, Miguel s wrote:> anyone knows if is possible to create an email alert to notify me when > a mount point is connecting and disconnecting? > > > _______________________________________________ > Icecast mailing list > Icecast at xiph.org > http://lists.xiph.org/mailman/listinfo/icecast-- Jordan (PGP: 0xDA470FF8)
It looks like those are bash scripts so try something like be sure your mail binary path is correct it may be somewhere else other then /bin echo "/bin/mail -s connecting someone at somewhere.com" > /home/icecast/bin/source-start chmod 775 /home/icecast/bin/source-start you may have a chown permissions issue too if the user that runs icecast can't see the /home/icecast/bin/source-start do the same for the source-end script -winn On Wed, Jul 24, 2013 at 9:39 AM, Phil - w2lie <w2lie at w2lie.net> wrote:> ** > > That would be possible if you call out a script in the connect or > disconnect actions. > > > > I'm told that Icecast pushes the mount point as a variable, but I was > unable to find any documentation. Does Icecast push the mount point to the > on-connect and on-disconnect scripts as a variable? > > From the online docs: > > <mount> > > <on-connect>/home/icecast/bin/source-start</on-connect> > <on-disconnect>/home/icecast/bin/source-end</on-disconnect> > </mount> > > > > --- > Phil / w2liehttp://www.w2lie.net > > On 2013-07-24 12:33, Miguel s wrote: > > anyone knows if is possible to create an email alert to notify me when a > mount point is connecting and disconnecting? > > _______________________________________________ > Icecast mailing listIcecast at xiph.orghttp://lists.xiph.org/mailman/listinfo/icecast > > > _______________________________________________ > Icecast mailing list > Icecast at xiph.org > http://lists.xiph.org/mailman/listinfo/icecast > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/icecast/attachments/20130724/e791ba77/attachment.htm
Yes, icecast pushes the mount point into the command, so if it's running a shell script, you can pick out the mount point via $1. On 24 Jul 2013, at 17:39, Phil - w2lie <w2lie at w2lie.net> wrote:> That would be possible if you call out a script in the connect or disconnect actions. > > > I'm told that Icecast pushes the mount point as a variable, but I was unable to find any documentation. Does Icecast push the mount point to the on-connect and on-disconnect scripts as a variable? > > From the online docs: > > <mount> > > <on-connect>/home/icecast/bin/source-start</on-connect> > <on-disconnect>/home/icecast/bin/source-end</on-disconnect> > </mount> > > --- > Phil / w2lie > http://www.w2lie.net > On 2013-07-24 12:33, Miguel s wrote: > >> anyone knows if is possible to create an email alert to notify me when a mount point is connecting and disconnecting? >> >> _______________________________________________ >> Icecast mailing list >> Icecast at xiph.org >> http://lists.xiph.org/mailman/listinfo/icecast > _______________________________________________ > Icecast mailing list > Icecast at xiph.org > http://lists.xiph.org/mailman/listinfo/icecast-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/icecast/attachments/20130725/3bb10133/attachment.htm
Hi, this was the code that resolved my problem, thank you all for the help, I could send email alerts to different email the sender of these alerts is "icecast stream server" The subject with these alerts is coming "midominio.com:8000/mountpoint.ogg CONECTADO" #!/bin/bash # THEDATE=$(date +%F" a las "%H:%M) SUBJECT="midominio.com:8000/$1 CONECTADO" EMAIL="usuario at gmail.com, usuario at hotmail.com, usuario at riseup.net, usuario at yaho.com" rm /home/icecast/emailmessage.txt EMAILMESSAGE="/home/icecast/emailmessage.txt" echo "Punto de montaje midominio.com:8000/$1 conectado con el servidor el d?a $THEDATE." > $EMAILMESSAGE # send an email using /bin/mail /usr/bin/mail -s "$SUBJECT" "$EMAIL" < $EMAILMESSAGE From: medios_sin_amos at hotmail.com To: icecast at xiph.org Date: Wed, 24 Jul 2013 11:33:40 -0500 Subject: [Icecast] Alert Email anyone knows if is possible to create an email alert to notify me when a mount point is connecting and disconnecting? _______________________________________________ Icecast mailing list Icecast at xiph.org http://lists.xiph.org/mailman/listinfo/icecast -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/icecast/attachments/20130729/1159ab90/attachment.htm