Page 1 of 1
Changing the line colour in graph
Posted: Wed Jun 21, 2017 8:49 am
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,
Re: Changing the line colour in graph
Posted: Wed Jun 21, 2017 9:47 am
by padu_3891
Yes .. you can customize from the pnp/templates.dist/<check command .template file>
Re: Changing the line colour in graph
Posted: Wed Jun 21, 2017 10:07 am
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.
Re: Changing the line colour in graph
Posted: Wed Jun 21, 2017 3:08 pm
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.
Re: Changing the line colour in graph
Posted: Thu Jun 22, 2017 2:38 am
by nms
Thanks. Not exactly what we were after, as we wanted to change the highlights.
Thanks for your input once more!
Re: Changing the line colour in graph
Posted: Thu Jun 22, 2017 11:02 am
by tgriep
Your welcome.
Re: Changing the line colour in graph
Posted: Wed Jul 05, 2017 11:30 am
by nms
This thread can be considered as closed
Thank you