Skip to content
This repository has been archived by the owner on Apr 20, 2020. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pauliusm committed Jan 14, 2014
1 parent c6d2ace commit b1f7ca0
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
-----
Expand All @@ -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 <whatever template>
host_name recorder.tld
max_check_attempts 3
check_command check_nrpe!check_stream_records!
}
````

BUGS
------------
Expand All @@ -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.

0 comments on commit b1f7ca0

Please sign in to comment.