CC-3702: System -> Status: No difference between a service is failed vs a service is not monitor

-fixed
This commit is contained in:
Martin Konecny 2012-04-23 17:18:34 -04:00
parent 5e5ced6fe5
commit b9ab11ce28
4 changed files with 24 additions and 7 deletions

View file

@ -39,7 +39,7 @@ class Application_Model_Systemstatus
"name"=>"",
"process_id"=>"STARTING...",
"uptime_seconds"=>"-1",
"status"=>true,
"status"=>0,
"memory_perc"=>"0%",
"memory_kb"=>"0",
"cpu_perc"=>"0%");
@ -47,8 +47,8 @@ class Application_Model_Systemstatus
$notMonitored = array(
"name"=>$p_serviceName,
"process_id"=>"NOT MONITORED",
"uptime_seconds"=>"-1",
"status"=>false,
"uptime_seconds"=>"1",
"status"=>1,
"memory_perc"=>"0%",
"memory_kb"=>"0",
"cpu_perc"=>"0%"
@ -58,7 +58,7 @@ class Application_Model_Systemstatus
"name"=>$p_serviceName,
"process_id"=>"FAILED",
"uptime_seconds"=>"-1",
"status"=>false,
"status"=>0,
"memory_perc"=>"0%",
"memory_kb"=>"0",
"cpu_perc"=>"0%"
@ -97,7 +97,7 @@ class Application_Model_Systemstatus
$process_id = $item->getElementsByTagName("pid");
if ($process_id->length > 0){
$data["process_id"] = $process_id->item(0)->nodeValue;
$data["status"] = true;
$data["status"] = 0;
}
$uptime = $item->getElementsByTagName("uptime");