Hi, am trying to monitor m3u8 http url, and here is what i need. A script that can monitor this.
- get the http response from m3u8 url, the response generally contains a parameter bandwidth=some digit within that response in plain text.
- script needs to read this digit, and should trigger a second set of script if the above digit is less than a number say 500000
- second set of script, should be able to ssh to a external box, get the PID using a particular grep command, issue a kill on the pid.
- send a email as work is done.
- that should be it.
script should run on centos. any takers. basically i need to do this for like 10 urls, every 5min.
thank you very much.
http://ift.tt/1dvHQ0Z
0 comments:
Post a Comment