function get_from_master($variable) { return send_to_master($variable); }
function send_system_monitor_message_to_admin($prog) { global $gbl, $sgbl, $login, $ghtml; $hst = trim(`hostname`); $dt = @date('M-d h:i'); $mess = "Host: {$hst}\nDate: {$dt}\n{$prog}\n\n\n"; $rmt = new Remote(); $rmt->cmd = "sendemail"; $rmt->subject = "System Monitor on {$hst}"; $rmt->message = $mess; send_to_master($rmt); }