Changing the line colour in graph

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nms
Posts: 222
Joined: Wed Sep 28, 2016 9:35 am

Changing the line colour in graph

Post by nms »

Hi,

is it possible to change the colors of the lines in the performance graphs? The default color is blue for a single performance output. Am requested to change this to green, while if having three performance data into one graph, am to make the first one blue, the next red and the third orange.
is there a configuration file where the rrd colors my be changed?

Rgds,
padu_3891
Posts: 50
Joined: Thu Sep 05, 2013 10:12 pm

Re: Changing the line colour in graph

Post by padu_3891 »

Yes .. you can customize from the pnp/templates.dist/<check command .template file>
nms
Posts: 222
Joined: Wed Sep 28, 2016 9:35 am

Re: Changing the line colour in graph

Post by nms »

Hello padu_3891,

Thanks for your response, i managed to find these but it seems there is no template involved in my current check.
Basically i took a look at the rrd and xml file of the current service i'm monitoring and it seems the xml is looking for this template:

Code: Select all

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<NAGIOS>
  <DATASOURCE>
    <TEMPLATE>check_active_calls</TEMPLATE>
    <RRDFILE>/usr/local/nagios/share/perfdata/am1slc03_[OCNCC]/Active_Calls.rrd</RRDFILE>
Not sure this has to do with the template am looking for. This service is a script on a remote machine i check with check_by_ssh. The default.php template doesn't seem to be used here as the colours differ.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Changing the line colour in graph

Post by tgriep »

By default, the Nagios XI server used Highcharts to display the graphs and those cannot be changed. Only the Legacy graphs can be edited through the templates.

To disable Highcharts and enable the legacy graphs, login to the Nagios XU GUI and going to the Admin > System Setting menu and click in the Theme & Display tab, un-check the Use Highcharts box and Update the settings.
Then the templates you would have to edit, can be edited by going to the Admin > Manage Graph Templates menu, there you can edit the template for your graphs.
Be sure to check out our Knowledgebase for helpful articles and solutions!
nms
Posts: 222
Joined: Wed Sep 28, 2016 9:35 am

Re: Changing the line colour in graph

Post by nms »

Thanks. Not exactly what we were after, as we wanted to change the highlights.

Thanks for your input once more!
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Changing the line colour in graph

Post by tgriep »

Your welcome.
Be sure to check out our Knowledgebase for helpful articles and solutions!
nms
Posts: 222
Joined: Wed Sep 28, 2016 9:35 am

Re: Changing the line colour in graph

Post by nms »

This thread can be considered as closed

Thank you
Locked