6 use FS::UID qw( adminsuidsetup );
7 use FS::Cron::check qw(
8 check_queued check_selfservice check_apache check_bop_failures
13 my $user = shift or die &usage;
15 #die "no notification email given" unless @emails;
17 eval { adminsuidsetup $user };
19 if ( $@ ) { alert("Database down: $@", @emails); exit; }
21 check_queued or alert('Queue daemon not running', @emails);
22 check_selfservice or alert(error_msg(), @emails);
23 check_apache or alert('Apache not running: '. error_msg(), @emails);
25 #no-ops unless you are sg
26 check_sg or alert('FS::ClientAPI::SG not responding', @emails);
27 check_sgng or alert('FS::ClientAPI::SGNG not responding', @emails);
29 check_bop_failures or alert(error_msg(), @emails);