Page 1 of 1

Question on dashlets

Posted: Tue Feb 25, 2020 1:14 pm
by jiec168
Hello,

Is there any way we can manipulate dashlets with filters for our custom display need? For example, our favorite dashlet is Open Service Problem. Currently it is listing all un-acknowledged criticals, warnings and unknowns alerts without any order. Due to the limitation of display table height, it is very frustrated that criticals are not able to fully show up but covered by warnings and unknown. I am wondering if there is any general dashlet template that I can develop on to display only the criticals, or bubble up the criticals at the top. Or is there any way we can add filters to the existing dashlets for our custom needs?

Thanks.

Re: Question on dashlets

Posted: Tue Feb 25, 2020 3:44 pm
by jdunitz
What you're after isn't currently available from Fusion.

This has been brought up as a possibility for the future, but for right now, unfortunately, I can't offer you a full solution.

You could do a "Custom URL" dashlet pointed to
http://nagiosxi/nagiosxi/includes/compo ... ustypes=16
or
http://nagiosxi/nagiosxi/includes/compo ... tustypes=4

...but that would only show you service status from one XI server, not all of them.

Re: Question on dashlets

Posted: Tue Feb 25, 2020 4:14 pm
by jiec168
Okay, I have tweaked /usr/local/nagiosfusion/html/includes/components/noc/dashlets/open_service_problems.php and changed line 144
from
if ( $add_to_array )
to
if ( $add_to_array && $svc_array['current_state'] == "2" )

Now it only shows the critical alerts. That serves our usage needs.

Looking forward to having more flexibility from you for users.

Thanks.

Re: Question on dashlets

Posted: Wed Feb 26, 2020 4:36 pm
by benjaminsmith
Hello,

Just to let you know, we are planning dashboard and user interface improvements in Nagios XI 6 to allow more flexibility and better performance. You can follow the roadmap here:

https://www.nagios.com/roadmaps/