Re: How to monitor video stream in Nagios.
Posted: Fri May 31, 2013 10:48 am
Hello,
I am able to ping video stream link from Nagios and our server on which xyz.com is hosted. Please find the details for the same.
NRPE file setting:-
command[check_http]=/usr/lib64/nagios/plugins/check_http -w 5 -c 10 -H www.xyz.com
command[check_http]=/usr/lib64/nagios/plugins/check_http -w 5 -c 10 -I Service_Provider_IP -H http://video_stream_sevice_provider/abcdl/on/pqrvsd/playlist.m3u8
Nagios setting:-
define service{
use generic-service ; Name of service template to use
host_name xyz.com
service_description www.xyz.com
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 1
retry_check_interval 1
contact_groups linuxadm
notification_interval 120
notification_period 24x7
notification_options c
check_command check_nrpe!check_http! www.xyz.com/index.php!Home
}
define service{
use generic-service ; Name of service template to use
host_name xyz.com
service_description http://video_stream_sevice_provider/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 linuxadm
notification_interval 120
notification_period 24x7
notification_options c
check_command check_http!-H Service_Provider_IP -u http://video_stream_sevice_provider/abcdl/on/pqrvsd/playlist.m3u8 -s CODECS
}
If xyz.com goes down, video stream link also showing down in Nagios system also it shows the same size in byte. I can easily add the video stream link in Nagios but this server is not in my control. Please suggest me on this…
HTTP OK: HTTP/1.1 302 Moved Temporarily - 216 bytes in 1.246 second response time |time=1.245823s;5.000000;10.000000;0.000000 size=216B;;;0
I am able to ping video stream link from Nagios and our server on which xyz.com is hosted. Please find the details for the same.
NRPE file setting:-
command[check_http]=/usr/lib64/nagios/plugins/check_http -w 5 -c 10 -H www.xyz.com
command[check_http]=/usr/lib64/nagios/plugins/check_http -w 5 -c 10 -I Service_Provider_IP -H http://video_stream_sevice_provider/abcdl/on/pqrvsd/playlist.m3u8
Nagios setting:-
define service{
use generic-service ; Name of service template to use
host_name xyz.com
service_description www.xyz.com
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 1
retry_check_interval 1
contact_groups linuxadm
notification_interval 120
notification_period 24x7
notification_options c
check_command check_nrpe!check_http! www.xyz.com/index.php!Home
}
define service{
use generic-service ; Name of service template to use
host_name xyz.com
service_description http://video_stream_sevice_provider/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 linuxadm
notification_interval 120
notification_period 24x7
notification_options c
check_command check_http!-H Service_Provider_IP -u http://video_stream_sevice_provider/abcdl/on/pqrvsd/playlist.m3u8 -s CODECS
}
If xyz.com goes down, video stream link also showing down in Nagios system also it shows the same size in byte. I can easily add the video stream link in Nagios but this server is not in my control. Please suggest me on this…
HTTP OK: HTTP/1.1 302 Moved Temporarily - 216 bytes in 1.246 second response time |time=1.245823s;5.000000;10.000000;0.000000 size=216B;;;0