Page 2 of 3

Re: How to monitor video stream in Nagios.

Posted: Fri May 31, 2013 10:48 am
by imran_khan
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

Re: How to monitor video stream in Nagios.

Posted: Fri May 31, 2013 11:00 am
by abrist
Looks like you are receiving a redirect. The 302 response from the Web server should always include an alternative URL to which redirection should occur, and this is the url you should try to check against.

Re: How to monitor video stream in Nagios.

Posted: Fri May 31, 2013 11:05 am
by imran_khan
Hello,

Sorry, Not understood. My concern is very simple, How can I monitor video stream link which is not hosted/running on my server/which video stream server is not in my control?

Re: How to monitor video stream in Nagios.

Posted: Fri May 31, 2013 11:11 am
by abrist
You will have to identify the actual url you wish to check as the url http://video_stream_sevice_provider/abcdl/on/pqrvsd/playlist.m3u8 is redirected the hosting provider.

Re: How to monitor video stream in Nagios.

Posted: Fri May 31, 2013 11:32 am
by imran_khan
Hello,

Thanks, Actual url/web site is xyz.com which hosted on my server. I have purchased the video stream plans from service provider and that link is http://video_stream_sevice_provider/abcdl/on/pqrvsd/playlist.m3u8. I have successfully configured and monitoring xyz.com from Nagios system. Now I want to monitor video stream link i.e. http://video_stream_sevice_provider/abcdl/on/pqrvsd/playlist.m3u8 , how can I do?

Re: How to monitor video stream in Nagios.

Posted: Fri May 31, 2013 12:37 pm
by slansing
Yes we know you would like to monitor that address, what we are trying to tell you to do is change from monitoring xyz, to the actual address of the stream. If there is no real address than this may not be possible without you creating some sort of custom plugin at the other end. If you cannot reach the other URL "the one you say you would like to monitor" there is nothing you can do to monitor it, you will need to find a way around more than likely by contacting the streaming company.

Incidentally, please stop double posting, this is your 3rd warning. We will not help you any faster by doing that..

Re: How to monitor video stream in Nagios.

Posted: Fri May 31, 2013 12:47 pm
by imran_khan
Hello,

Please go through link http://broadiments.blogspot.in/2012/03/ ... agios.html.
As per link if “video stream link” server’s with me, I can easily monitor/add this in Nagios system.

Re: How to monitor video stream in Nagios.

Posted: Fri May 31, 2013 12:54 pm
by slansing
That is exactly what we are asking you to try out, I suggest following that guide and trying to incorporate it with the "PROPER" URL that you need to check against. It looks like you posted and asked your question there as well, unfortunately if you cannot access the proper URL there is nothing we can do, that is up to the hosting company, though it looks like you added it to your service's config already.

Re: How to monitor video stream in Nagios.

Posted: Fri May 31, 2013 1:02 pm
by imran_khan
Hello,

You mean to say, I cannot add external video stream link or any external website link in Nagios system?

Re: How to monitor video stream in Nagios.

Posted: Fri May 31, 2013 2:13 pm
by slansing
No, I am saying that you need to add the correct URL to your check_http service for monitoring, you said you can ping the URL they gave you, so all you need to do is add it to the check in your service definition where xyz.com was.