How to monitor video stream in Nagios.

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.
imran_khan
Posts: 196
Joined: Mon May 27, 2013 3:16 pm

Re: How to monitor video stream in Nagios.

Post by imran_khan »

Hello,

I have added the host :- XYZ.COM_V_Stream in Nagios system and added the below command in linux-services.cfg file.

define service{
use generic-service ; Name of service template to use
host_name IndiMusic_TV_V_Stream
service_description http://video_stream_sevice_provider.com/abcdl/on/pqrvsd/playlist.m3u8
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 1
retry_check_interval 1
contact_groups abcd
notification_interval 120
notification_period 24x7
notification_options c
check_command check_http!-H http://video_stream_sevice_provider.com -u /abcdl/on/pqrvsd/playlist.m3u8 -s CODECS
}

But thing is that, if manually run the below command on Nagios system it is showing the size 428 bytes and Nagios monitoring system (on web based) it is showing 296 bytes. Why it is showing different size?

/usr/lib64/nagios/plugins/check_http http://video_stream_sevice_provider.com -u /abcdl/on/pqrvsd/playlist.m3u8 -s CODECS
HTTP OK: HTTP/1.1 200 OK - 428 bytes in 9.315 second response time |time=9.314595s;;;0.000000 size=428B;;;0

From Nagios (Web based):- HTTP OK: HTTP/1.0 200 OK - 296 bytes in 1.944 second response time | time=1.944229s;;;0.000000 size=296B;;;0
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: How to monitor video stream in Nagios.

Post by slansing »

That will change more than likely each time you run the check, which is expected.. also, it is taking 8 seconds longer to ping the address in your first check so it is logical it will return more data.

imran_khan, please stop bumping your posts, you have been asked 4 times now
sarantosh
Posts: 5
Joined: Tue Nov 03, 2015 1:41 pm

Re: How to monitor video stream in Nagios.

Post by sarantosh »

Hi Imran,

Where you able to monitor the stream using Nagios Core?? If you can you plz guide me on the same.

I am too trying to do it but i am not very good in Nagios configuration and so struggling to do it.

Your help would be very much appreciated.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: How to monitor video stream in Nagios.

Post by tmcdonald »

This user has not been back to the forums in quite a while, and this thread is very old. If you need assistance with this, please open a new topic and describe the issue you are having, and link back to this thread for reference.
Former Nagios employee
Locked