> I agree there hasn't been a way to be sure BackupPC is running ok. > > In BackupPC 3.0.0beta there is a new option to BackupPC_sendEmail: > > -c check if BackupPC is alive and send an email if not > > That allows you to run BackupPC_sendEmail -c from cron and > it will send an email to $Conf{EMailAdminUserName} if it > can't contact the BackupPC server.
another technic to monitor BackupPC is to use Nagios (with nrpe) for interested peoples, here is a plugin to check BackupPC with the "buildin" command : "BackupPC_serverMesg status info" regards jmb ----------------------------------------------------------------------- #! /usr/bin/perl -wT use strict; use Getopt::Long; use vars qw($opt_V $opt_h $opt_w $opt_c $opt_H $opt_C $PROGNAME $status); use lib "/usr/lib64/nagios/plugins" ; use utils qw(%ERRORS &print_revision &support &usage); $PROGNAME = "check_BackupPC"; sub print_help (); sub print_usage (); $ENV{'PATH'}=''; $ENV{'BASH_ENV'}=''; $ENV{'ENV'}=''; Getopt::Long::Configure('bundling'); GetOptions ("V" => \$opt_V, "version" => \$opt_V, "c" => \$opt_c, "command" => \$opt_c, "h" => \$opt_h, "help" => \$opt_h); if ($opt_V) { print_revision($PROGNAME,'$Revision: 1.0 $'); exit $ERRORS{'OK'}; } if ($opt_h) {print_help(); exit $ERRORS{'OK'};} my $status=0; my $sig=''; $sig=`/usr/local/BackupPC/bin/BackupPC_serverMesg status info`; if ( $sig =~ /^Got reply: %Info = /) { $status = 1; } else { $status = 0; } if ($status == 1) { print "Status : BackupPC running...\n"; } if ($status == 0) { print "Status : BackupPC is stopped !!\n"; } exit $ERRORS{'CRITICAL'} if ($status == 0); exit $ERRORS{'OK'}; sub print_usage () { print "Usage: $PROGNAME -H <host> -c <command>\n"; } sub print_help () { print_revision($PROGNAME,'$Revision: 1.0 $'); print "Copyright (c) 2005 J-M Beuken This plugin reports the status of the BackupPC process "; print_usage(); print " -H, --hostname=HOST Name or IP address of host to check -c, --command=command Command 'BackupPC_serverMesg status info' "; support(); } ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/