Page 1 of 1

wrong color in metrics

Posted: Tue Jul 14, 2020 6:04 am
by progressive.nagiosXI
Hi

Top 10 memory metrics showing showing wrong color in %Utilization column

"showing green color for drive in warning state"
warning = 80%
crritical = 85%

Thanks

Re: wrong color in metrics

Posted: Tue Jul 14, 2020 4:19 pm
by benjaminsmith
Hi,

That's strange. Is this just limited to the table in the Metrics page? In other words, if you go to Home > Service Status and find/search for those services, is the correct color shown in the table?

Have you used the Custom Includes component to alter any of the front-end CSS values?

Lastly, what version of Nagios XI are you using? I checked this on my 5.7.2 system, and it's working as expected. Thanks, Benjamin
metrics-component.png

Re: wrong color in metrics

Posted: Thu Aug 06, 2020 9:34 am
by progressive.nagiosXI
Hi Benjamin ,

Please find below update

That's strange. Is this just limited to the table in the Metrics page? In other words, if you go to Home > Service Status and find/search for those services, is the correct color shown in the table? >>>> yes , problem observed only in Metrics (top 10,..)

Have you used the Custom Includes component to alter any of the front-end CSS values? >>>> no

Lastly, what version of Nagios XI are you using? I checked this on my 5.7.2 system, and it's working as expected. >>>> currently using 5.6.14 >>> first observed at the time of Client demo last month and not observed before.

Thanks

Re: wrong color in metrics

Posted: Thu Aug 06, 2020 5:00 pm
by benjaminsmith
Hi,

I did find a bug in an older version of the metrics component related to dashlet colors, so let's upgrade this component to the latest version on this system. Go to Admin > System Extensions > Manage Components, and then select Check for Update and then Install Updates.

If that does not resolve the issue, let's check the output code for this check command, run the check directly from the terminal and then type echo $? to display the exit code, and post it to the thread.

Also, the following kb article explains how to test plugins from the command line.

Nagios XI - How To Test Check Commands From The Command-line

Re: wrong color in metrics

Posted: Fri Sep 25, 2020 8:21 am
by progressive.nagiosXI
Hi Support Team,

This time we run and check from command also.
Please check attachment

2 IP address highlighted

Thanks

Re: wrong color in metrics

Posted: Fri Sep 25, 2020 4:10 pm
by benjaminsmith
Hi,

Did you upgrade the component before taking those screenshots, What is the current version of the Metrics component on this system? To find out, go to Admin > System Extensions > Manage Components.
metrics-version.png
Regards,
Benjamin

Re: wrong color in metrics

Posted: Wed Sep 30, 2020 11:37 am
by progressive.nagiosXI
Hi Benjamin,

Metrics 1.3.4 up-to-date

we also do check for update but this is the latest version showing ==> no update available

Thanks

Re: wrong color in metrics

Posted: Thu Oct 01, 2020 9:19 am
by ssax
Please attach this file so I can review it:

Code: Select all

/usr/local/nagiosxi/html/includes/utils-metrics.inc.php

Re: wrong color in metrics

Posted: Thu Oct 01, 2020 11:28 am
by progressive.nagiosXI
Hi Sean,

Please find attachment

Thanks

Re: wrong color in metrics

Posted: Fri Oct 02, 2020 11:52 am
by ssax
That's the same file I have.

I'm able to replicate it on my system now.

This is a bug in the metrics component, I have submitted a bug report so the developers can fix the calculations for it:

NEW TASK ID 15352 created - Nagios XI Bug Report: XI - Metrics Component - NCPA memory/virtual shows WARNING but Home > Metrics shows CRITICAL for % Utilization color.