Re: How to monitor video stream in Nagios.
Posted: Fri May 31, 2013 3:24 pm
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
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