HLS Stream Monitoring

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
sarantosh
Posts: 5
Joined: Tue Nov 03, 2015 1:41 pm

HLS Stream Monitoring

Post by sarantosh »

Hi, I have installed Nagios Core with the latest plugins on my VM environment in Centos7. I am able to monitor the servers and other network devices but my major concern is that we need to monitor the HLS streaming URL's. Kindly help us in doing the same and we are not able to find the plugin or anything in the blogs.

Test URL: http://103.254.240.38/live/nagios.stream/playlist.m3u8
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: HLS Stream Monitoring

Post by hsmith »

Can you take a look at this project and see if it suits your needs?

https://github.com/rbowlby/check_hls
Former Nagios Employee.
me.
sarantosh
Posts: 5
Joined: Tue Nov 03, 2015 1:41 pm

Re: HLS Stream Monitoring

Post by sarantosh »

Hi Smith,

Ya i think it might help because it says check_hls but i am not good in configuration, i bearly understand what to do with it.

Is it possible if you can guide me in doing it.

Thanks in advance.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: HLS Stream Monitoring

Post by hsmith »

Looking further at that plugin, we may not need this.

Does this command give you the information that you are looking for?

Code: Select all

./check_http -H 103.254.240.38 -u /live/nagios.stream/playlist.m3u8 -s CODECS
Former Nagios Employee.
me.
sarantosh
Posts: 5
Joined: Tue Nov 03, 2015 1:41 pm

Re: HLS Stream Monitoring

Post by sarantosh »

Hi Smith,

Thank you mate, i am now able to monitor the stream and also i am getting mail alert when the stream is down.

But still i have an issue when the stream is up i can see that the stream is up in the GUI but i don't get mail that the stream is up. But when it is down i am able to receive stating its down. Below id my service configuration

define service{
use generic-service ; check_http
host_name Monitoring Desktop
service_description stream monitoring
is_volatile 0
check_period 24x7
max_check_attempts 1
normal_check_interval 1
retry_check_interval 1
notification_interval 1
notification_period 24x7
notification_options c
check_command check_http! -H 103.254.240.38 -u /live/nagios.stream/playlist.m3u8 -s CODECS
}



Kindly help me in resolving the same. Also attached screenshots for your reference.
Attachments
Stream UP.JPG
Notification.JPG
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: HLS Stream Monitoring

Post by hsmith »

Change notification_options c to notification_options c, r

Let me know if that works.
Former Nagios Employee.
me.
sarantosh
Posts: 5
Joined: Tue Nov 03, 2015 1:41 pm

Re: HLS Stream Monitoring

Post by sarantosh »

Hi Smith,

It works perfectly mate...Many thanks to u...

Also smith i have one more query, is there a way where we can have a GUI configured which will interact with the files in the backend instead of us doing it manually. I saw comething called check_mk but not sure, can you suggest me on that because if i have an GUI configured it would be very easy to configure host and services.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: HLS Stream Monitoring

Post by hsmith »

Hi, sarantosh

I'm glad to hear the check is working out for you.

I cannot provide support for check_mk here as it is not one of our plugins, but it's something people have had some luck with. Checking out their website would be the best solution if you are seeking advice with that product. As far as having a GUI to configure things, you may want to check out NagiosQL. It looks like it may not have had an update in awhile, but it's something to take a look at. Otherwise, if you have a small amount of checks, you may want to look into taking Nagios XI for a test run. It is our commercial product, and by far our most polished one.
Former Nagios Employee.
me.
Locked