Page 1 of 1

csf --graphs saving images wrong

Posted: 05 Oct 2014, 13:41
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.

Re: csf --graphs saving images wrong

Posted: 05 Oct 2014, 13:48
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.

Re: csf --graphs saving images wrong

Posted: 06 Oct 2014, 20:25
by marcele
Sorry just realized that this should have been submitted in the bug reports section.

Re: csf --graphs saving images wrong

Posted: 07 Oct 2014, 16:51
by ForumAdmin
This is intentional to allow for prefixing of the file names if desired.

Re: csf --graphs saving images wrong

Posted: 07 Oct 2014, 23:50
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.

Re: csf --graphs saving images wrong

Posted: 08 Oct 2014, 09:44
by ForumAdmin
We'll look into that for the next release.