mrdsam
(Mrdsam)
May 7, 2024, 5:45pm
1
Is there a way to influence the sort order:
by setting a default somewhere
by modifying the links in, e.g., the HostGroup links
When I’m listing Host Groups, and then click on the column “xx Hosts” or “yy Services”, a new pane opens on the right side displaying those “xx Hosts” or “yy Services”.
But these are sorted by name. In IcingaWeb / IDO, they were sorted by severity. Can I change this behaviour somewhere?
you can only change it in the code directly
->addSlice($this->summary->hosts_up, ['class' => 'slice-state-ok'])
->addSlice($this->summary->hosts_down_handled, ['class' => 'slice-state-critical-handled'])
->addSlice($this->summary->hosts_down_unhandled, ['class' => 'slice-state-critical'])
->addSlice($this->summary->hosts_pending, ['class' => 'slice-state-pending']);
return HtmlString::create($donut->render());
}
protected function createTotal(): ValidHtml
{
$url = Links::hosts();
if ($this->hasBaseFilter()) {
$url->setFilter($this->getBaseFilter());
}
return new Link(
(new VerticalKeyValue(
tp('Host', 'Hosts', $this->summary->hosts_total),
$this->shortenAmount($this->summary->hosts_total)
))->setAttribute('title', $this->summary->hosts_total),
$url
->addSlice($this->summary->services_critical_unhandled, ['class' => 'slice-state-critical'])
->addSlice($this->summary->services_unknown_handled, ['class' => 'slice-state-unknown-handled'])
->addSlice($this->summary->services_unknown_unhandled, ['class' => 'slice-state-unknown'])
->addSlice($this->summary->services_pending, ['class' => 'slice-state-pending']);
return HtmlString::create($donut->render());
}
protected function createTotal(): ValidHtml
{
$url = Links::services();
if ($this->hasBaseFilter()) {
$url->setFilter($this->getBaseFilter());
}
return new Link(
(new VerticalKeyValue(
tp('Service', 'Services', $this->summary->services_total),
$this->shortenAmount($this->summary->services_total)
))->setAttribute('title', $this->summary->services_total),
$url
1 Like
theFeu
(Feu Mourek (they / them))
May 8, 2024, 11:10am
3
If you think that this is a feature that Icinga DB Web would benefit from, you could open a feature request in the repository