diff options
Diffstat (limited to 'FS/bin')
-rw-r--r-- | FS/bin/freeside-check | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/FS/bin/freeside-check b/FS/bin/freeside-check index f2d596b80..ac2fc3d03 100644 --- a/FS/bin/freeside-check +++ b/FS/bin/freeside-check @@ -6,6 +6,7 @@ use Email::Send; use FS::UID qw( adminsuidsetup ); use FS::Cron::check qw( check_queued check_selfservice check_apache check_bop_failures + check_sg check_sgng alert error_msg ); @@ -17,9 +18,13 @@ eval { adminsuidsetup $user }; if ( $@ ) { alert("Database down: $@", @emails); exit; } -check_queued or alert("Queue daemon not running", @emails); +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_apache or alert('Apache not running: '. error_msg(), @emails); + +#no-ops unless you are sg +check_sg or alert('FS::ClientAPI::SG not responding', @emails); +check_sgng or alert('FS::ClientAPI::SGNG not responding', @emails); check_bop_failures or alert(error_msg(), @emails); |