[Box Backup] monitoring bbackupd

Scott McNee boxbackup at fluffy.co.uk
Fri Aug 26 00:34:33 BST 2005


Scott McNee


-----Original Message-----
From: boxbackup-admin at fluffy.co.uk [mailto:boxbackup-admin at fluffy.co.uk] =
Behalf Of Martin Ebourne
Sent: Friday, 26 August 2005 9:32 AM
To: boxbackup at fluffy.co.uk
Subject: RE: [Box Backup] monitoring bbackupd

On Fri, 2005-08-26 at 08:49 +1000, Scott McNee wrote:
> Hi Martin,
> 		Any chance of saving some work and getting a copy of the

I put restart_service (attached) in /etc/nagios/eventhandlers. It's a
generic service restart script, so can be used for anything including
bbstored and bbackupd.

In misccommands.cfg I have:

define command {
  command_name restart_service
  command_line $USER6$/restart_service "$SERVICESTATE$" "$STATETYPE$"
"$SERVICEATTEMPT$" "$SERVICEDESC$" >> /var/log/nagios/event_handler.log =

You'll need to make sure $USER6$ is set for the restart_service script
location, or hard-code it.

I then have the following in services.cfg:

define service {
  use                           generic-service
  host_name                     hordein
  service_description           bbackupd
  check_command                 check_service!bbackupd
  event_handler                 restart_service

define service {
  use                           generic-service
  host_name                     hordein
  service_description           bbstored
  check_command                 check_service!bbstored
  event_handler                 restart_service

You'll need a suitable generic-service set up.

If you want to get a central machine to monitor remote ones then use the
same script on the remote machine and set up nrpe. If you need help with
that then I think the nagios lists would be more appropriate.

One day I'll write one that uses bbackupquery to log in and check the =
out, free space etc.

This is all on Fedora Core. YMMV.



More information about the Boxbackup mailing list