From b1f7ca0d7cb69e3fc4a8a9c620e1e2573b83b2c5 Mon Sep 17 00:00:00 2001 From: "Paulius M." Date: Tue, 14 Jan 2014 18:11:57 +0200 Subject: [PATCH] Update README.md --- README.md | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7df74b6..2695198 100644 --- a/README.md +++ b/README.md @@ -10,10 +10,13 @@ Just clone this repo somewhere, or download latest version of this plugin from h Requirements ------------ Python 2.x, probably would work with 3.x, but untested (please send feedback). +Also you need `python-pycurl` package - get your OS's supported package, or via pip. How it works? ------------- - +Script fetches playlist content from wowza server, parses it, then fetches chunklist, then medialist, and finaly mpeg stream. If mpeg stream begins with 'G', it considers it valid, and exits returning 0 (OK). +In any other case it would return 2 (critical). +I know, it's not perfect, but for now works for me. Usage ----- @@ -22,7 +25,17 @@ Add to nrpe.cfg lines like: ```` command[check_stream_records]=/usr/lib64/nagios/plugins/check-hls-records.py recorder.tld stream 1 5 ```` -And setup check in nagios. + +And setup service check in nagios config: +```` +define service { + service_description NRPE_stream_records + use + host_name recorder.tld + max_check_attempts 3 + check_command check_nrpe!check_stream_records! +} +```` BUGS ------------ @@ -31,7 +44,7 @@ There are some, for sure... FAQ --- -`Q:` ? +`Q:` Will it works only on wowza? -`A:` No. +`A:` For now yes, but could be easily adopted to work with other HLS VOD software.