How to monitor video stream in Nagios.
-
imran_khan
- Posts: 196
- Joined: Mon May 27, 2013 3:16 pm
Re: How to monitor video stream in Nagios.
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
Re: How to monitor video stream in Nagios.
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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
imran_khan
- Posts: 196
- Joined: Mon May 27, 2013 3:16 pm
Re: How to monitor video stream in Nagios.
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?
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.
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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
imran_khan
- Posts: 196
- Joined: Mon May 27, 2013 3:16 pm
Re: How to monitor video stream in Nagios.
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?
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?
Last edited by slansing on Fri May 31, 2013 12:34 pm, edited 1 time in total.
Reason: stop double posting, we will not help you any faster by doing that........
Reason: stop double posting, we will not help you any faster by doing that........
-
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.
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..
Incidentally, please stop double posting, this is your 3rd warning. We will not help you any faster by doing that..
-
imran_khan
- Posts: 196
- Joined: Mon May 27, 2013 3:16 pm
Re: How to monitor video stream in Nagios.
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.
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.
-
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.
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.
-
imran_khan
- Posts: 196
- Joined: Mon May 27, 2013 3:16 pm
Re: How to monitor video stream in Nagios.
Hello,
You mean to say, I cannot add external video stream link or any external website link in Nagios system?
You mean to say, I cannot add external video stream link or any external website link in Nagios system?
-
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.
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.