CC-2989: airtime-check-system should deal with the case when the web server is not accessible
-fixed some more inaccessible issues
This commit is contained in:
parent
aace5d0776
commit
153e0df409
2 changed files with 74 additions and 30 deletions
|
@ -141,23 +141,31 @@ class Application_Model_Systemstatus
|
|||
public static function GetShowRecorderStatus(){
|
||||
|
||||
$component = CcServiceRegisterQuery::create()->findOneByDbName("show-recorder");
|
||||
$ip = $component->getDbIp();
|
||||
|
||||
$docRoot = self::GetMonitStatus($ip);
|
||||
$data = self::ExtractServiceInformation($docRoot, "airtime-show-recorder");
|
||||
if (is_null($component)){
|
||||
return null;
|
||||
} else {
|
||||
$ip = $component->getDbIp();
|
||||
|
||||
$docRoot = self::GetMonitStatus($ip);
|
||||
$data = self::ExtractServiceInformation($docRoot, "airtime-show-recorder");
|
||||
|
||||
return $data;
|
||||
return $data;
|
||||
}
|
||||
}
|
||||
|
||||
public static function GetMediaMonitorStatus(){
|
||||
|
||||
$component = CcServiceRegisterQuery::create()->findOneByDbName("media-monitor");
|
||||
$ip = $component->getDbIp();
|
||||
|
||||
$docRoot = self::GetMonitStatus($ip);
|
||||
$data = self::ExtractServiceInformation($docRoot, "airtime-media-monitor");
|
||||
if (is_null($component)){
|
||||
return null;
|
||||
} else {
|
||||
$ip = $component->getDbIp();
|
||||
|
||||
$docRoot = self::GetMonitStatus($ip);
|
||||
$data = self::ExtractServiceInformation($docRoot, "airtime-media-monitor");
|
||||
|
||||
return $data;
|
||||
return $data;
|
||||
}
|
||||
}
|
||||
|
||||
public static function GetIcecastStatus(){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue