[freeside-commits] freeside/FS/bin freeside-check,NONE,1.1.2.2
Ivan,,,
ivan at wavetail.420.am
Sat Mar 21 16:34:38 PDT 2009
Update of /home/cvs/cvsroot/freeside/FS/bin
In directory wavetail.420.am:/tmp/cvs-serv26604/FS/bin
Added Files:
Tag: FREESIDE_1_7_BRANCH
freeside-check
Log Message:
adding local checking on 1.7, RT#4610
--- NEW FILE: freeside-check ---
#!/usr/bin/perl -w
use strict;
use Email::Send;
use FS::UID qw( adminsuidsetup );
use FS::Cron::check qw(
check_queued check_selfservice check_apache check_bop_failures
alert error_msg
);
my $user = shift or die &usage;
my @emails = @ARGV;
#die "no notification email given" unless @emails;
eval { adminsuidsetup $user };
if ( $@ ) { alert("Database down: $@", @emails); exit; }
check_queued or alert("Queue daemon not running", @emails);
check_selfservice or alert(error_msg(), @emails);
check_apache or alert("Apache not running: ". error_msg(), @emails);
check_bop_failures or alert(error_msg(), @emails);
More information about the freeside-commits
mailing list