3 // check if database is workign - used by nagios checking - to see if server is really up.
5 require_once 'Pman.php';
7 class Pman_Core_Heartbeat extends Pman
14 function get($req, $opts = array())
22 $this->initErrorHandling();
23 $cd = DB_DataObject::Factory('core_enum');
25 'etype' => 'heartbeat',
26 'name' => 'last_update'
29 $cd->display_name = date("Y-m-d H:i:s");
31 die("OK - HEARTBEAT WORKING");
35 $cd->display_name = date("Y-m-d H:i:s");
37 die("OK - HEARTBEAT WORKING");
41 function onPearError($err)
46 function onException($err)