Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Centralised and documented colors for RRD

    Scheduled Pinned Locked Moved pfSense Packages
    2 Posts 2 Posters 1.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      craigjl77
      last edited by

      First of all thanks to this link, as it got me started, http://forum.pfsense.org/index.php?topic=16463.0

      as root on ur pfsense box
      cd /usr/local/www/themes
      cp /usr/local/www/themes/the_wall/rrdcolors.inc.php .
      mv rrdcolors.inc.php _rrdcolors.inc.php
      cp _rrdcolors.inc.php _rrdcolors_orig.inc.php
      Note We created a backup. The under score is so the files are omitted from the themes list in general setup.

      edit the colors file to look like this, in its array statements :-

      $colorcaptiveportalusers = array('990000');
      /*                        Red      grn      Blu      Yel      cyan   Black */
      $colormemory      = array('c00000','00c000','0000ff','ffff00','00dfff','000000'); /* mod */
      /*                        Red      grn      Blu      Yel      Fushia   Black */
      $colorprocessor   = array('c00000','00c000','0000ff','ffff00','CC0088','000000'); /* mod */
      /*                        Blu       Red        */
      $colorpacketsdown = array('0000ff', 'C00000'); /* mod */
      /*                        Fushia     Pink      */
      $colorpacketsup   = array('CC0088', 'FFCCEE'); /* mod */
      /*                  Vermillion */
      $colorqualityloss = 'ee0000';
      /**/
      /*                           Yel      Ltgrn    DrkGrn   Blu      Pink     Fushia           */
      $colorqualityrtt     = array('ffff00','00ff00','008080','0000ff','FFCCEE','CC0088'); /* mod */
      /*                            DrkGrey  Blu     Ltgrn    Ltred    Orange   Mauve    Dkmauve  cyan    dkYel */
      $colorqueuesup       = array('666666','0000ff','00ff00','ff0000','ff8000','9f00ff','ff00ff','00dfff','ffdf00'); /* mod */
      /*                            DrkGrey DkBlu    Dkgrn    Brown    LtBrwn   Navy     Purple    Aqua    Camel */
      $colorqueuesdown     = array('666666','000080','008000','800000','804000','000066','800080','007080','807000'); /* mod */
      /*                            DrkGrey  Blu      Ltgrn     Ltred   Orange   Mauve   Dkmauve   cyan    dkYel */
      $colorqueuesdropup   = array('666666','0000ff','00ff00','ff0000','ff8000','9f00ff','ff00ff','00dfff','ffdf00');  /* mod */
      /*                            DrkGrey DkBlu    Dkgrn    Brown    LtBrwn   Navy     Purple    Aqua    Camel */
      $colorqueuesdropdown = array('666666','000080','008000','800000','804000','000066','800080','007080','807000'); /* mod */
      /**/
      /*                        LtPurple White    Purple   Yel      DkGrn    */
      $colorspamdconn   = array('AA00BB','FFFFFF','800080','ffff00','008000');
      /*                        LtSky    DkSky    LtSky    Navy      */
      $colorspamdtime   = array('DDDDFF','AAAAFF','DDDDFF','000066');
      /*                        Red      Grn      Blu      Yel      Fushia    Black*/
      $colorstates      = array('C00000','00c000','0000ff','ffff00','CC0088','000000');  /* mod */
      /*                        Blu       Red     */
      $colortraffic95   = array('0000ff','C00000');/* mod */
      /*                        LtGrn    Black */
      $colortrafficup   = array('00ff00','000000');/* mod */
      /*                        Red      Black */
      $colortrafficdown = array('C00000','000000');/* mod */
      /*                        Brown      */
      $colorvpnusers    = array('800000');
      /*                        Red      LtGrn    Blu*/
      $colorwireless    = array('C00000','00ff00','0000ff'); /* mod */
      
      

      Note u may have to re-align the labels ;-)

      Then for each of the theme dirs in /usr/local/www/themes do
      cd <dirname>rm rrdcolors.inc.php
      ln -s /usr/local/www/themes/_rrdcolors.inc.php rrdcolors.inc.php

      Thats it! Now if you want to change the colors, I don't know why as I think mine look gr8 ;-p, you can do it centrally from /usr/local/www/themes/_rrdcolors.inc.php</dirname>

      1 Reply Last reply Reply Quote 0
      • J
        johnnybe
        last edited by

        Cool! Thanks for the contribution.  ;D

        you would not believe the view up here

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.