2017年7月2日 星期日

Stream paulse for stream monitoring

After months of research I have found only one way it can be done.
1. You will need a program called Steam Pulse: http://streampulse.net. Try the 30 day trial. Install it according to there directions. (Do not install it on the wowza server. It should be on some other box that can access the wowza stream.) I will call this your Monitoring machine. You will have to open up your firewall so that your prtg server can access the Monitoring machine.
2. Test the monitoring machine using any web browser. Enter your stream pulse command. It will look something like this:
http://MonitoringMachineIP:5052/check?url=rtmp://YourWowzaServer.com:1935/live/streamename.stream&time=30
After about 30 seconds it should return a value similar to this:
[200] OK - Flash media is still playing OK. BufferLength: [0.001]; BufferTime: [0]; BytesLoaded: [0]; BytesTotal: [0]; CanSeek: [true]; CurrentTime: [25.85]; Duration: [NaN]; DynamicStreamSwitching: [false]; HasAudio: [true]; HasDRM: [false]; IsDynamicStream: [false]; Loop: [false]; MediaHeight: [368]; MediaWidth: [640]; NumDynamicStreams: [0]; State: [playing];
3. Next we setup the PRTG Sensor. The type of sensor you need is the HTTP Content Sensor. For best results set the timeout to 120. Insert the stream pulse test command in the script url. I recommend that you set the interval for at least 15 minutes. Under number of channels I put 5. It returns 16 or 17 values but PRTG will ignore the text values anyway, so I just picked up the first 5.
There you have it. You can similarly use StreamChecker (another product by the same company) to monitor Windows Media Streams.
Note: The guys over at StreamPulse worked with me to get this working. They even modified the output of the StreamChecker and StreamPulse in order for it to work. So, Kudos to them!
REF: https://kb.paessler.com/en/topic/8733-how-do-i-monitor-a-video-stream-rtmp-via-wowza

沒有留言:

張貼留言