Esempio n. 1
0
 static function addOneWatchdog($pserver, $service, $port, $command)
 {
     $v = new watchdog(null, $pserver, "{$service}___{$pserver}");
     $v->get();
     if ($v->dbaction !== 'add') {
         dprint("{$service} {$pserver} already exists...\n");
         return;
     }
     $v->servicename = $service;
     $v->port = $port;
     $v->action = $command;
     $v->status = "on";
     $v->added_by_system = "on";
     $v->syncserver = $pserver;
     $v->parent_clname = createClName('pserver', $pserver);
     $v->dbaction = 'add';
     $v->createExtraVariables();
     $v->was();
 }