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

There has been an error creating the graphs.

Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
12 Posts 4 Posters 6.2k 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.
  • G
    geeknik
    last edited by Feb 13, 2010, 9:29 PM Feb 13, 2010, 9:27 PM

    Unable to view the Memory RRD graph:
    http://imgur.com/GPgrw.jpg

    From the system logs:

    
    Feb 13 15:18:26 	php: /status_rrd_graph_img.php: Failed to create graph with error code 1, the error is: ERROR: Could not parse color in ''/usr/bin/nice -n20 /usr/local/bin/rrdtool graph /tmp/system-memory.rrd-4y.png --start -126489600 -e -86400 --vertical-label "utilization, percent" --color SHADEA#eeeeee --color SHADEB#eeeeee --title "`hostname` - System :: Memory - 4 years - 1 day average" --height 200 --width 620 -x "MONTH:1:YEAR:1:MONTH:3:0:%b" DEF:"active=/var/db/rrd/system-memory.rrd:active:AVERAGE" DEF:"inactive=/var/db/rrd/system-memory.rrd:inactive:AVERAGE" DEF:"free=/var/db/rrd/system-memory.rrd:free:AVERAGE" DEF:"cache=/var/db/rrd/system-memory.rrd:cache:AVERAGE" DEF:"wire=/var/db/rrd/system-memory.rrd:wire:AVERAGE" LINE2:"active#:active" LINE2:"inactive#:inactive" LINE2:"free#:free" LINE2:"cache#:cache" LINE2:"wire#:wire" COMMENT:"\n" COMMENT:" minimum average maximum current\n" COMMENT:"Active. " GPRINT:"active:MIN:%7.2lf %s " GPRINT:"active:AVERAGE:%7.2lf
    Feb 13 15:18:26 	php: /status_rrd_graph_img.php: Failed to create graph with error code 1, the error is: ERROR: Could not parse color in ''/usr/bin/nice -n20 /usr/local/bin/rrdtool graph /tmp/system-memory.rrd-48h.png --start -172800 -e -300 --vertical-label "utilization, percent" --color SHADEA#eeeeee --color SHADEB#eeeeee --title "`hostname` - System :: Memory - 2 days - 5 minutes average" --height 200 --width 620 -x "HOUR:1:HOUR:6:HOUR:2:0:%H" DEF:"active=/var/db/rrd/system-memory.rrd:active:AVERAGE" DEF:"inactive=/var/db/rrd/system-memory.rrd:inactive:AVERAGE" DEF:"free=/var/db/rrd/system-memory.rrd:free:AVERAGE" DEF:"cache=/var/db/rrd/system-memory.rrd:cache:AVERAGE" DEF:"wire=/var/db/rrd/system-memory.rrd:wire:AVERAGE" LINE2:"active#:active" LINE2:"inactive#:inactive" LINE2:"free#:free" LINE2:"cache#:cache" LINE2:"wire#:wire" COMMENT:"\n" COMMENT:" minimum average maximum current\n" COMMENT:"Active. " GPRINT:"active:MIN:%7.2lf %s " GPRINT:"active:AVERAGE:%7.2lf %s
    Feb 13 15:18:26 	php: /status_rrd_graph_img.php: Failed to create graph with error code 1, the error is: ERROR: Could not parse color in ''/usr/bin/nice -n20 /usr/local/bin/rrdtool graph /tmp/system-memory.rrd-16h.png --start -57600 -e -60 --vertical-label "utilization, percent" --color SHADEA#eeeeee --color SHADEB#eeeeee --title "`hostname` - System :: Memory - 16 hours - 1 minute average" --height 200 --width 620 -x "MINUTE:30:HOUR:1:HOUR:1:0:%H" DEF:"active=/var/db/rrd/system-memory.rrd:active:AVERAGE" DEF:"inactive=/var/db/rrd/system-memory.rrd:inactive:AVERAGE" DEF:"free=/var/db/rrd/system-memory.rrd:free:AVERAGE" DEF:"cache=/var/db/rrd/system-memory.rrd:cache:AVERAGE" DEF:"wire=/var/db/rrd/system-memory.rrd:wire:AVERAGE" LINE2:"active#:active" LINE2:"inactive#:inactive" LINE2:"free#:free" LINE2:"cache#:cache" LINE2:"wire#:wire" COMMENT:"\n" COMMENT:" minimum average maximum current\n" COMMENT:"Active. " GPRINT:"active:MIN:%7.2lf %s " GPRINT:"active:AVERAGE:%7.2lf %
    Feb 13 15:18:26 	php: /status_rrd_graph_img.php: Failed to create graph with error code 1, the error is: ERROR: Could not parse color in ''/usr/bin/nice -n20 /usr/local/bin/rrdtool graph /tmp/system-memory.rrd-32d.png --start -2764800 -e -3600 --vertical-label "utilization, percent" --color SHADEA#eeeeee --color SHADEB#eeeeee --title "`hostname` - System :: Memory - 1 month - 1 hour average" --height 200 --width 620 -x "DAY:1:WEEK:1:WEEK:1:0:Week %W" DEF:"active=/var/db/rrd/system-memory.rrd:active:AVERAGE" DEF:"inactive=/var/db/rrd/system-memory.rrd:inactive:AVERAGE" DEF:"free=/var/db/rrd/system-memory.rrd:free:AVERAGE" DEF:"cache=/var/db/rrd/system-memory.rrd:cache:AVERAGE" DEF:"wire=/var/db/rrd/system-memory.rrd:wire:AVERAGE" LINE2:"active#:active" LINE2:"inactive#:inactive" LINE2:"free#:free" LINE2:"cache#:cache" LINE2:"wire#:wire" COMMENT:"\n" COMMENT:" minimum average maximum current\n" COMMENT:"Active. " GPRINT:"active:MIN:%7.2lf %s " GPRINT:"active:AVERAGE:%7.2lf
    Feb 13 15:18:26 	php: /status_rrd_graph_img.php: Failed to create graph with error code 1, the error is: ERROR: Could not parse color in ''/usr/bin/nice -n20 /usr/local/bin/rrdtool graph /tmp/system-memory.rrd-6m.png --start -16070400 -e -43200 --vertical-label "utilization, percent" --color SHADEA#eeeeee --color SHADEB#eeeeee --title "`hostname` - System :: Memory - 6 months - 12 hours average" --height 200 --width 620 -x "WEEK:1:MONTH:1:MONTH:1:0:%b" DEF:"active=/var/db/rrd/system-memory.rrd:active:AVERAGE" DEF:"inactive=/var/db/rrd/system-memory.rrd:inactive:AVERAGE" DEF:"free=/var/db/rrd/system-memory.rrd:free:AVERAGE" DEF:"cache=/var/db/rrd/system-memory.rrd:cache:AVERAGE" DEF:"wire=/var/db/rrd/system-memory.rrd:wire:AVERAGE" LINE2:"active#:active" LINE2:"inactive#:inactive" LINE2:"free#:free" LINE2:"cache#:cache" LINE2:"wire#:wire" COMMENT:"\n" COMMENT:" minimum average maximum current\n" COMMENT:"Active. " GPRINT:"active:MIN:%7.2lf %s " GPRINT:"active:AVERAGE:%7.2
    Feb 13 15:18:26 	php: /status_rrd_graph_img.php: Failed to create graph with error code 1, the error is: ERROR: Could not parse color in ''/usr/bin/nice -n20 /usr/local/bin/rrdtool graph /tmp/system-memory.rrd-1y.png --start -31622400 -e -43200 --vertical-label "utilization, percent" --color SHADEA#eeeeee --color SHADEB#eeeeee --title "`hostname` - System :: Memory - 1 year - 12 hours average" --height 200 --width 620 -x "MONTH:1:MONTH:3:MONTH:1:0:%b" DEF:"active=/var/db/rrd/system-memory.rrd:active:AVERAGE" DEF:"inactive=/var/db/rrd/system-memory.rrd:inactive:AVERAGE" DEF:"free=/var/db/rrd/system-memory.rrd:free:AVERAGE" DEF:"cache=/var/db/rrd/system-memory.rrd:cache:AVERAGE" DEF:"wire=/var/db/rrd/system-memory.rrd:wire:AVERAGE" LINE2:"active#:active" LINE2:"inactive#:inactive" LINE2:"free#:free" LINE2:"cache#:cache" LINE2:"wire#:wire" COMMENT:"\n" COMMENT:" minimum average maximum current\n" COMMENT:"Active. " GPRINT:"active:MIN:%7.2lf %s " GPRINT:"active:AVERAGE:%7.2l
    Feb 13 15:18:26 	php: /status_rrd_graph_img.php: Failed to create graph with error code 1, the error is: ERROR: Could not parse color in ''/usr/bin/nice -n20 /usr/local/bin/rrdtool graph /tmp/system-memory.rrd-4h.png --start -14400 -e -60 --vertical-label "utilization, percent" --color SHADEA#eeeeee --color SHADEB#eeeeee --title "`hostname` - System :: Memory - 4 hours - 1 minute average" --height 200 --width 620 -x "MINUTE:5:MINUTE:10:MINUTE:30:0:%H%:%M" DEF:"active=/var/db/rrd/system-memory.rrd:active:AVERAGE" DEF:"inactive=/var/db/rrd/system-memory.rrd:inactive:AVERAGE" DEF:"free=/var/db/rrd/system-memory.rrd:free:AVERAGE" DEF:"cache=/var/db/rrd/system-memory.rrd:cache:AVERAGE" DEF:"wire=/var/db/rrd/system-memory.rrd:wire:AVERAGE" LINE2:"active#:active" LINE2:"inactive#:inactive" LINE2:"free#:free" LINE2:"cache#:cache" LINE2:"wire#:wire" COMMENT:"\n" COMMENT:" minimum average maximum current\n" COMMENT:"Active. " GPRINT:"active:MIN:%7.2lf %s " GPRINT:"active:AVERAGE:%
    
    

    I also noticed that the Throughput graphics, don't even show up an error message, just a blank page.

    1 Reply Last reply Reply Quote 0
    • J
      jimp Rebel Alliance Developer Netgate
      last edited by Feb 13, 2010, 10:22 PM

      That sounds familiar but I thought it was already fixed.

      What is the date on the snapshot you are running?

      Remember: Upvote with the πŸ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

      Need help fast? Netgate Global Support!

      Do not Chat/PM for help!

      1 Reply Last reply Reply Quote 0
      • G
        geeknik
        last edited by Feb 14, 2010, 11:35 PM Feb 14, 2010, 11:27 PM

        I was running 2.0-BETA1 built on Sat Feb 13 13:23:57 EST 2010 when I posted that. I just checked and I get the same error with 2.0-BETA1 built on Sun Feb 14 15:12:58 EST 2010.

        1 Reply Last reply Reply Quote 0
        • A
          AhnHEL
          last edited by Feb 15, 2010, 9:56 AM

          Ticket #1942 in the Alpha Alpha version.

          I created ticket #330 for this in the Beta for the Code-Red theme but that only applies to the Traffic and Packets Graph.  Geeknik's error is on the System tab, I've tried every theme yet cant find one that gives an error on the System Tab.

          Theme Code-Red's fix for this involves editing the following:

          /usr/local/www/themes/code-red/rrdcolors.inc.php

          Change lines 33,34,35,36

          From:

          $colortrafficup = "666666";
          $colortrafficdown = "990000";
          $colorpacketsup = "666666";
          $colorpacketsdown = "990000";

          Change to:

          $colortrafficup = array("666666", "CCCCCC");
          $colortrafficdown = array("666666", "CCCCCC");
          $colorpacketsup = array("666666", "CCCCCC");
          $colorpacketsdown = array("666666", "CCCCCC");

          AhnHEL (Angel)

          1 Reply Last reply Reply Quote 0
          • J
            jwrascoe
            last edited by Feb 15, 2010, 12:57 PM

            @jimp:

            That sounds familiar but I thought it was already fixed.

            jimp….  I think you posted this change into the git..

            file /usr/local/www/status_rrd_graph_img.php
            at about line 677
            missing initialize of $t = 0

            This Fixed the Queue Graph problem...  but if you look down a few more lines in the code.. the same change needs to be made for the QueueDrops.

            Can you post it into the git?

            Jim

            1 Reply Last reply Reply Quote 0
            • J
              jimp Rebel Alliance Developer Netgate
              last edited by Feb 15, 2010, 1:42 PM

              Can you be a little more specific about where exactly that change is? Perhaps some context around it or a diff?

              I can make the change if I know where it's really needed, rather than guessing.

              Remember: Upvote with the πŸ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

              1 Reply Last reply Reply Quote 0
              • J
                jimp Rebel Alliance Developer Netgate
                last edited by Feb 15, 2010, 2:10 PM

                @onhel:

                I created ticket #330 for this in the Beta for the Code-Red theme but that only applies to the Traffic and Packets Graph.  Geeknik's error is on the System tab, I've tried every theme yet cant find one that gives an error on the System Tab.

                I just committed that fix.

                Remember: Upvote with the πŸ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

                1 Reply Last reply Reply Quote 0
                • J
                  jimp Rebel Alliance Developer Netgate
                  last edited by Feb 15, 2010, 2:19 PM

                  @geeknik:

                  Unable to view the Memory RRD graph:

                  Are you using "the_wall" as your theme, by chance? If so, it should work after the commit I just did. I found it was missing the color definition for the memory graph.

                  Remember: Upvote with the πŸ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                  Need help fast? Netgate Global Support!

                  Do not Chat/PM for help!

                  1 Reply Last reply Reply Quote 0
                  • J
                    jwrascoe
                    last edited by Feb 15, 2010, 2:55 PM

                    @jimp:

                    Can you be a little more specific about where exactly that change is? Perhaps some context around it or a diff?

                    I can make the change if I know where it's really needed, rather than guessing.

                    Sorry about that… here is the code.. I put my line in red.. and the one you did a few weeks ago in green...

                    BTW... I love you book that you and Chris wrote... would you happen to have something that explains how to get started with git?  I would like to contribute fixes..

                    Let me know.

                    Jim

                    elseif((strstr($curdatabase, "-queues.rrd")) && (file_exists("$rrddbpath$curdatabase"))) {
                    /* define graphcmd for queue stats /
                    $graphcmd = "$rrdtool graph $rrdtmppath$curdatabase-$interval.png ";
                    $graphcmd .= "--start -$seconds -e -$average ";
                    $graphcmd .= "--vertical-label "bits/sec" ";
                    $graphcmd .= "--color SHADEA#eeeeee --color SHADEB#eeeeee ";
                    $graphcmd .= "--title "hostname - {$prettydb} - {$hperiod} - {$havg} average" ";
                    $graphcmd .= "--height 200 --width 620 -x "$scale" ";
                    if ($altq) {
                    $a_queues =& $altq->get_queue_list();
                    $t = 0;
                    } else {
                    $a_queues = array();
                    $i = 0;
                    $t = 0;
                    }
                    foreach ($a_queues as $name => $q) {
                    $color = "$colorqueuesup[$t]";
                    if($t > 0) { $stack = ":STACK"; }
                    $graphcmd .= "DEF:"$name=$rrddbpath$curdatabase:$name:AVERAGE" ";
                    $graphcmd .= "CDEF:"$name-bytes_out=$name,0,$speedlimit,LIMIT,UN,0,$name,IF" ";
                    $graphcmd .= "CDEF:"$name-bits_out=$name-bytes_out,8,
                    " ";
                    $graphcmd .= "$AREA:"$name-bits_out#${color}:$name" ";
                    $t++;
                    if($t > 7) { $t = 0; }
                    }
                    $graphcmd .= "COMMENT:"\n" ";
                    $graphcmd .= "COMMENT:"\t\t\t\t\t\t\t\t\t\t\t\t\tdate +\"%b %d %H\:%M\:%S %Y\"" ";
                    }
                    elseif((strstr($curdatabase, "-queuedrops.rrd")) && (file_exists("$rrddbpath$curdatabase"))) {
                    /* define graphcmd for queuedrop stats /
                    $graphcmd = "$rrdtool graph $rrdtmppath$curdatabase-$interval.png ";
                    $graphcmd .= "–start -$seconds -e -$average ";
                    $graphcmd .= "--vertical-label "drops / sec" ";
                    $graphcmd .= "--color SHADEA#eeeeee --color SHADEB#eeeeee ";
                    $graphcmd .= "--title "hostname - {$prettydb} - {$hperiod} - {$havg} average" ";
                    $graphcmd .= "--height 200 --width 620 -x "$scale" ";
                    if ($altq) {
                    $a_queues =& $altq->get_queue_list();
                                  $t = 0;  // Added this.. jwr
                    } else {
                            $a_queues = array();
                    $i = 0;
                    $t = 0;
                    }
                    foreach ($a_queues as $name => $q) {
                    $color = "$colorqueuesdropup[$t]";
                    if($t > 0) { $stack = ":STACK"; }
                    $graphcmd .= "DEF:"$name=$rrddbpath$curdatabase:$name:AVERAGE" ";
                    $graphcmd .= "CDEF:"$name-bytes_out=$name,0,$speedlimit,LIMIT,UN,0,$name,IF" ";
                    $graphcmd .= "CDEF:"$name-bits_out=$name-bytes_out,8,
                    " ";
                    $graphcmd .= "CDEF:"$name-bits_out_neg=$name-bits_out,$multiplier,*" ";
                    $graphcmd .= "$AREA:"$name-bits_out_neg#${color}:$name" ";
                    $t++;
                    if($t > 7) { $t = 0; }
                    }
                    $graphcmd .= "COMMENT:"\n" ";
                    $graphcmd .= "COMMENT:"\t\t\t\t\t\t\t\t\t\t\t\t\tdate +\"%b %d %H\:%M\:%S %Y\"" ";
                    }

                    1 Reply Last reply Reply Quote 0
                    • J
                      jimp Rebel Alliance Developer Netgate
                      last edited by Feb 15, 2010, 3:02 PM

                      I committed the fix. (Actually I found where you were talking about just as you posted this – good timing :-)

                      Here is a doc on working with git:

                      http://devwiki.pfsense.org/GitWorkflow

                      Remember: Upvote with the πŸ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                      Need help fast? Netgate Global Support!

                      Do not Chat/PM for help!

                      1 Reply Last reply Reply Quote 0
                      • A
                        AhnHEL
                        last edited by Feb 15, 2010, 6:48 PM

                        Sorry Jimp, the code should be changed to this for the Code-Red Theme, dont know what happened with the cut and paste.

                        $colortrafficup = array("666666", "CCCCCC");
                        $colortrafficdown = array("990000", "CC0000");
                        $colorpacketsup = array("666666", "CCCCCC");
                        $colorpacketsdown = "array("990000", "CC0000");

                        AhnHEL (Angel)

                        1 Reply Last reply Reply Quote 0
                        • J
                          jimp Rebel Alliance Developer Netgate
                          last edited by Feb 15, 2010, 7:03 PM

                          Whoops. Should be fixed now.

                          Remember: Upvote with the πŸ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                          Need help fast? Netgate Global Support!

                          Do not Chat/PM for help!

                          1 Reply Last reply Reply Quote 0
                          1 out of 12
                          • First post
                            1/12
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                            This community forum collects and processes your personal information.
                            consent.not_received