You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I use deepl for translating german/english.
I have had opendcim in function for a while and enjoy the database application. Unfortunately, I also keep running into problems.
Now I have come across the strange calculation after looking at the code for me and don't understand the connection. The programmer may have thought of something that is not clear to me.
$dcStats["Available"]=$dcStats["TotalU"] - $dcStats["Occupied"] - $dcStats["Infrastructure"] - $dcStats["Allocated"]; With this calculation I only have "negative" results for the value "Available" in my datacenter.
Why is everything added to Infrastructure if the status is not SERVER or Storage?
$sql="SELECT SUM(a.Height) as TotalU FROM fac_Device a,fac_Cabinet b WHERE
a.Cabinet=b.CabinetID AND b.DataCenterID=$this->DataCenterID AND ParentDevice=0 AND
a.DeviceType NOT IN ('Server','Storage Array') and a.Status NOT IN ('Reserved', 'Salvage') and a.Cabinet>0;";
$dcStats["Infrastructure"]=($test=$this->query($sql)->fetchColumn())?$test:0;
By infrastructure I mean that this is "necessary" hardware or panels. Then I can label that hardware "infrastucture". In opendcim, however, components are counted which are DeviceType not Server or Storage Array.
In my case I have
TOTAL U 3,470; Infrastructure 1,493; Occupied 783; Allocated 2,262 => Avaible -1,068
According to this, my data centre would be 1.068 U over-occupied!
I would like to adjust/correct this calculation (zone_stats.php), or give the table other headings.
Also reserved units are not shown.
I would also like to discuss the topic and understand the previous context if necessary. I would assign/assign the theme (ID) infrastructure manually and not via the rule.
What does "salvage" stand for?
I look forward to feedback.
The text was updated successfully, but these errors were encountered:
Hello,
I use deepl for translating german/english.
I have had opendcim in function for a while and enjoy the database application. Unfortunately, I also keep running into problems.
Now I have come across the strange calculation after looking at the code for me and don't understand the connection. The programmer may have thought of something that is not clear to me.
$dcStats["Available"]=$dcStats["TotalU"] - $dcStats["Occupied"] - $dcStats["Infrastructure"] - $dcStats["Allocated"]; With this calculation I only have "negative" results for the value "Available" in my datacenter.
Why is everything added to Infrastructure if the status is not SERVER or Storage?
$sql="SELECT SUM(a.Height) as TotalU FROM fac_Device a,fac_Cabinet b WHERE
a.Cabinet=b.CabinetID AND b.DataCenterID=$this->DataCenterID AND ParentDevice=0 AND
a.DeviceType NOT IN ('Server','Storage Array') and a.Status NOT IN ('Reserved', 'Salvage') and a.Cabinet>0;";
$dcStats["Infrastructure"]=($test=$this->query($sql)->fetchColumn())?$test:0;
By infrastructure I mean that this is "necessary" hardware or panels. Then I can label that hardware "infrastucture". In opendcim, however, components are counted which are DeviceType not Server or Storage Array.
In my case I have
TOTAL U 3,470; Infrastructure 1,493; Occupied 783; Allocated 2,262 => Avaible -1,068
According to this, my data centre would be 1.068 U over-occupied!
I would like to adjust/correct this calculation (zone_stats.php), or give the table other headings.
Also reserved units are not shown.
I would also like to discuss the topic and understand the previous context if necessary. I would assign/assign the theme (ID) infrastructure manually and not via the rule.
What does "salvage" stand for?
I look forward to feedback.
The text was updated successfully, but these errors were encountered: