Koozali.org: home of the SME Server

vnstat no graph

Offline smeerbartje

  • *
  • 71
  • +0/-0
vnstat no graph
« on: March 03, 2009, 10:46:59 PM »
Hi, I've just installed vnstat on my server, but now the graph part does not work. For an example, please visit this page. As you can see the vnstat command is found by the php script. Only the graphs are not shown well. I also tried to configure as "PNG", but here the graph also does not show up.

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: vnstat no graph
« Reply #1 on: March 04, 2009, 01:23:06 AM »
Please file a bug report so that this issue can be investigated further.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: vnstat no graph
« Reply #2 on: March 04, 2009, 07:32:09 AM »
Please file a bug report so that this issue can be investigated further.
There is no need for that as it is not a contrib or a core pacakage AFAIK.

As you can see the vnstat command is found by the php script.
I see no proof for that, I can only see that a few scripts are executed.

Only the graphs are not shown well. I also tried to configure as "PNG", but here the graph also does not show up.
Perhaps, since it is a PHP application you are running into a PHP BaseDir restriction. Read this page and check /var/log/messages (and perhaps /var/log/httpd/error_log) to see if the described symptoms match yours. You can also (temporarily) enable the display_error options to see what errors are presented (only for debugging, not production as this might cause security issues when left enabled).
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline smeerbartje

  • *
  • 71
  • +0/-0
Re: vnstat no graph
« Reply #3 on: March 04, 2009, 08:34:51 AM »
Thank you all for your help, but I don't think it has something to do with PHP BaseDir restrictions, since the output of vnstat is available in the script. (the script runs an exec('vnstat') and parses the output into a svg or png image) You all can see that the values are parsed correct, but only the graph is not showing up.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: vnstat no graph
« Reply #4 on: March 04, 2009, 08:55:46 AM »
Thank you all for your help, but I don't think it has something to do with PHP BaseDir restrictions, since the output of vnstat is available in the script. (the script runs an exec('vnstat') and parses the output into a svg or png image)
That is exactly why you are running into a PHP Base dir restriction I guess. You are executing some program on your server that is most likely not within the allowed tree. Please check your log files as stated.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)