stat4u MDM-IT - News - check_multimedia_streams
 

MDM-IT

IT Systems and Software Development

  • Increase font size
  • Default font size
  • Decrease font size
Print

check_multimedia_stream is Nagios plugins to monitoring mpeg's transport stream.

Download check_multimedia_stream.


Install Pre-Requisites
----------------------

Install (compile and install) ffmpeg from http://ffmpeg.org. This software tested with 0.10.2 version of ffmpeg.

Installation
------------------------------

- Copy "check_multimedia_stream.php" to Nagios libexec directory.
- Edit "check_multimedia_stream.php" end set following:

$ffprobe="/var/www/html/dvbinspector/mpeginspector/bin/ffprobe";  #full path to ffprobe programm

$tmppath="/tmp/";                                                 #tmp dir



IMPORTANT !!

- Add to routing table multicast net (for example access to multicast 239.1.0.10):
route add -net 239.1.0.0 netmask 255.255.0.0 dev eth0


In Nagios edit "commands.cfg" file and add:

define command{
command_name    check_multimedia_stream
command_line    $USER1$/check_multimedia_stream.php $ARG1$ $ARG2$ $ARG3$ $ARG4$
}

Where:

$ARG1$ - multicast address

$ARG2$ - port (for example: 1234)

$ARG3$ - protocol (for example: udp)

$ARG4$ - PID of stream

Reload Nagios.

Example:

# 'HOST' host definition
define host{
use                     generic-host            ; Name of host template to use
host_name               EDUSAT
alias                   EDUSAT
address                 192.168.200.180
check_command       check-host-alive
max_check_attempts 3
notification_interval   none
notification_period     none
notification_options    d,u,r
contact_groups          linux-admins
}


define service{
use                             generic-service         ; Name of service template to use
host_name                       EDUSAT
service_description             EDUSAT_PID_0xa6_video
is_volatile                     0
check_period                    24x7
max_check_attempts              3
normal_check_interval           5
retry_check_interval            5
process_perf_data               1
contact_groups                  linux-admins
notification_interval           none
notification_period             none
notification_options            w,c,r
check_command                   check_stream!239.1.1.128!1234!udp!0xa6
}

define service{
use                             generic-service         ; Name of service template to use
host_name                       EDUSAT
service_description             EDUSAT_PID_0x68_audio
is_volatile                     0
check_period                    24x7
max_check_attempts              3
normal_check_interval           5
retry_check_interval            5
process_perf_data               1
contact_groups                  linux-admins
notification_interval           none
notification_period             none
notification_options            w,c,r
check_command                   check_stream!239.1.1.128!1234!udp!0x68
}
Last Updated on Wednesday, 18 April 2012 13:15  

Online

We have 18 guests online

Stat

Content View Hits : 55250