csf --graphs saving images wrong

Post Reply
marcele
Junior Member
Posts: 215
Joined: 17 Sep 2007, 17:02

csf --graphs saving images wrong

Post by marcele »

Running the command:
csf --graphs disk /tmp

charts.html, graphs.html is saved to /tmp correctly but all images are saved as:
/tmplfd_cc.gif
/tmplfd_hour.gif
/tmplfd_month.gif
/tmplfd_pie_day.gif
/tmplfd_pie_hour.gif
/tmplfd_pie_year.gif
/tmplfd_systemday.gif
/tmplfd_systemhour.gif
/tmplfd_systemmonth.gif
/tmplfd_systemweek.gif
/tmplfd_year.gif

I think the path is missing the last slash on the directory path so the charts are broken.
marcele
Junior Member
Posts: 215
Joined: 17 Sep 2007, 17:02

Re: csf --graphs saving images wrong

Post by marcele »

Just a note that adding the last slash will correct the issue:
csf --graphs disk /tmp/

Should probably just add the missing slash for the user if it is omitted.
marcele
Junior Member
Posts: 215
Joined: 17 Sep 2007, 17:02

Re: csf --graphs saving images wrong

Post by marcele »

Sorry just realized that this should have been submitted in the bug reports section.
ForumAdmin
Moderator
Posts: 1524
Joined: 01 Oct 2008, 09:24

Re: csf --graphs saving images wrong

Post by ForumAdmin »

This is intentional to allow for prefixing of the file names if desired.
marcele
Junior Member
Posts: 215
Joined: 17 Sep 2007, 17:02

Re: csf --graphs saving images wrong

Post by marcele »

ForumAdmin wrote:This is intentional to allow for prefixing of the file names if desired.
Sorry how is this supposed to work ? If I specify a path without the last slash the graphs.html and charts.html is generated in the directory specified but the actual images are saved to the root of the filesystem. The resulting charts.html and graphs.html have broken images as they are referencing the same directory as the html.
ForumAdmin
Moderator
Posts: 1524
Joined: 01 Oct 2008, 09:24

Re: csf --graphs saving images wrong

Post by ForumAdmin »

We'll look into that for the next release.
Post Reply