Page 1 of 1

Change colors of performance data in performance graph ?

Posted: Thu Jan 30, 2020 5:49 am
by riahc3
Hello

We have a script that returns OK, Warn and Crit with numbres for performance data. For clarity purposes, in the performance graphc, we want OK to be in green, warn to be in yellow, and crit to be in red.

How can we change the color of the graph to reflect this?

Re: Change colors of performance data in performance graph ?

Posted: Thu Jan 30, 2020 6:11 pm
by Box293
Can you please provide a screenshot showing exactly what screen you are seeing this on and highlight it on the screenshot. There's quite a few different areas in Nagios XI so I want to see exactly what you are talking about.

Re: Change colors of performance data in performance graph ?

Posted: Mon Feb 03, 2020 11:30 am
by riahc3
Box293 wrote:Can you please provide a screenshot showing exactly what screen you are seeing this on and highlight it on the screenshot. There's quite a few different areas in Nagios XI so I want to see exactly what you are talking about.
Sure:

https://i.imgur.com/Bufp9V0.png

Image

Re: Change colors of performance data in performance graph ?

Posted: Tue Feb 04, 2020 12:27 pm
by riahc3
Does the screenshot clear it up?

Re: Change colors of performance data in performance graph ?

Posted: Tue Feb 04, 2020 5:12 pm
by Box293
Unfortunately there is no way to customize the colors. Simply because the graph engine receives data that it has to plot, it has no understanding what the data actually relates to.

Re: Change colors of performance data in performance graph ?

Posted: Thu Mar 05, 2020 6:57 am
by riahc3
Box293 wrote:Unfortunately there is no way to customize the colors. Simply because the graph engine receives data that it has to plot, it has no understanding what the data actually relates to.
That makes 0 sense. In some place, it is stored because the color is always the same. If it wasnt the same, it would be changing colors almost all the time.

Re: Change colors of performance data in performance graph ?

Posted: Thu Mar 05, 2020 6:01 pm
by Box293
The colours are used in a default order, however on the graphs there is no correlation between state and colour (OK and green).

In other areas of Nagios like in the status tables the colours relate to the current status.

We have no user configurable way to change what colours are used on the charts.