[mythtv-users] Nagios MythTV Plugin?

Ian Forde ian at duckland.org
Thu Aug 5 22:34:23 EDT 2004

Matt Perry wrote:

> Hi all,
> After a bit of googling, I've come to the conclusion that an official Nagios 
> plugin for monitoring MythTV doesn't exist.
> Has anyone written one?  Before I write one, I just figured I'd ask.  I have 
> no idea how much work I'm getting myself into, since I've never coded 
> anything for Nagios before :)

No need.  Between check_mysql and check_procs, you should be all set.

As an example, in services.cfg, you can do something like:

define service{
         use                             generic-service         ; Name 
of service template to use

         host_name                       mymythhost
         service_description             MYSQL
         is_volatile                     0
         check_period                    24x7
         max_check_attempts              3
         normal_check_interval           5
         retry_check_interval            1
         contact_groups                  linux-admins
         notification_interval           120
         notification_period             24x7
         notification_options            w,u,c,r

And for the backend, you can do use a nrpe check that executes a local 
check_procs.  You can even use check_disk (from nrpe or directly) and 
check_tcp for the mythbackend listening port.

Not to mention check_log for watching the backend log, if so inclined.

There really isn't a need to write a custom plugin... just watch various 
aspects of myth and you'll know it's still running...


More information about the mythtv-users mailing list