示例#1
0
 function __construct($functional = "")
 {
     parent::__construct();
     $this->name = "mysql";
     //are same for functional and sla tests
     $this->validate_connection();
 }
示例#2
0
 function __construct($functional = "")
 {
     parent::__construct();
     $this->name = "memcache";
     $this->servers = implode(",", $this->config['memcache_hosts']);
     if ($functional) {
         $this->validate_connection();
         $this->validate_operations();
     } else {
         $this->validate_connection();
     }
 }
示例#3
0
 function __construct($functional = "")
 {
     parent::__construct();
     $this->name = "sieve";
     if (!($this->sieve_users = $this->config['rc_monitor_sieve_users'])) {
         $this->sieve_users = array(array('user' => '*****@*****.**', 'pass' => 'pass123', 'host' => 'imap.domain.com', 'port' => 4190, 'auth_type' => 'LOGIN'));
     }
     if ($functional) {
         $this->validate_connection();
         $this->validate_operations();
     } else {
         $this->validate_connection();
     }
 }
示例#4
0
 function __construct($functional = "")
 {
     parent::__construct();
     $this->name = "imap";
     $this->conn = new rcube_imap_generic();
     # to enable imap debug
     #$this->conn->setDebug(true);
     $this->imap_users = $this->config['rc_monitor_imap_users'];
     if ($functional) {
         $this->validate_connection();
         $this->validate_operations();
     } else {
         $this->validate_connection();
     }
 }
示例#5
0
 function __construct($functional = "")
 {
     parent::__construct();
     $this->name = "calendar";
     if (!($this->calendar_users = $this->config['rc_monitor_calendar_users'])) {
         $this->calendar_users = array();
     }
     if (!($this->calendar_url = $this->config['rc_monitor_calendar_url'])) {
         $this->calendar_url = 'http://local-owncloud/apps/calendar/caldav.php/calendars/#USER#/default%20calendar';
     }
     if ($functional) {
         $this->validate_connection();
         $this->validate_operations();
     } else {
         $this->validate_connection();
     }
 }