Monitoring Remote Services

Discussion in 'Server Operation' started by bschultz, Dec 29, 2011.

  1. bschultz

    bschultz Member

    I work at a radio station. We stream our audio streams via a Linux server running Icecast2. On the "server" machine, I have two Lexicon Alpha USB soundcards running two of the "live" streams (using Darkice). On a separtate Mac OSX server (not my choice, but it's what was available to me) I am creating another stream (using a program called Nicecast) to send the audio to the Linux server as a separate mountpoint...and then a Windows PC sending the fourth stream as yet another mountpoint.

    Is there any way to monitor the Mac and the Windows machines to see if the streams are being "sent" to the Linux box and the Icecast Server?

    Is there a way to check the stream on the Linux box (or any sever) to see if it exists like this:

    Code:
    if exists (ip:port/mountpoint1.mp3) {do nothing} else { echo "something is wrong with mountpoint 1" }
    
    if exists (ip:port/mountpoint2.mp3) {do nothing} else { echo "something is wrong with mountpoint 2" }
    
    if exists (ip:port/mountpoint3.mp3) {do nothing} else { echo "something is wrong with mountpoint 3" }
    
    if exists (ip:port/mountpoint4.mp3) {do nothing} else { echo "something is wrong with mountpoint 4" }
    
    
    Thanks!
     

Share This Page