Question on dashlets

This support forum board is for questions relating to Nagios Fusion.
Locked
jiec168
Posts: 26
Joined: Thu May 19, 2016 10:55 am

Question on dashlets

Post 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.
User avatar
jdunitz
Posts: 235
Joined: Wed Feb 05, 2020 2:50 pm

Re: Question on dashlets

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
jiec168
Posts: 26
Joined: Thu May 19, 2016 10:55 am

Re: Question on dashlets

Post 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.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Question on dashlets

Post 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/
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked