#!/usr/bin/php log(__FILE__, "function: checkWathdog"); $ta = null; try { // start transaction $ta = Transaction::getInstance("AlarmInterface"); $ta->startTA(); // call implementation require_once 'AlarmInterface/Watchdog/Watchdog.php'; Watchdog::checkRemoteWatchdog(); //Watchdog::checkPingWatchdog(); $ta->commitTA(); } catch(Exception $e) { // rollback TA $logger->logException(__CLASS__, $e); $ta->rollbackTA(); exit(99); }