Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Date separator is ignored on graphs #2321

Closed
tinola opened this issue Jan 18, 2019 · 10 comments
Closed

Date separator is ignored on graphs #2321

tinola opened this issue Jan 18, 2019 · 10 comments
Labels
resolved A fixed issue

Comments

@tinola
Copy link

tinola commented Jan 18, 2019

OS: FreeBSD 11.2-STABLE, Cacti is installed from the ports tree (cacti-1.2.0_2)
How to reproduce? In user settings change the default date separator "/" to "-", save change and refresh your graphs.
Date format remains Y/m/d but should be Y-m-d

@netniV
Copy link
Member

netniV commented Jan 18, 2019

Can you provide a screenshot highlighting this issue?

@tinola
Copy link
Author

tinola commented Jan 18, 2019

Of course :)

cacti_settings

cacti_graph_42

@netniV
Copy link
Member

netniV commented Jan 18, 2019

Can you now get me a screenshot of the graph info? If you go to the graph and edit it, then click on the info or debug button, one should show how it is creating the graph. It would be useful to know if we are passing that or RRD is creating it. I think it is us so that should be in there.

@netniV
Copy link
Member

netniV commented Jan 18, 2019

Also, what are the system settings for date/time?

@tinola
Copy link
Author

tinola commented Jan 18, 2019

if I understood correctly, I paste the screenshot below

graph

And after "click" ;)

RRDtool Command:

/usr/local/bin/rrdtool graph - \
--imgformat=PNG \
--start='1547722680' \
--end='1547808788' \
--pango-markup  \
--title='(cutted) - Traffic - igb1' \
--vertical-label='bits per second' \
--slope-mode \
--base=1000 \
--height=200 \
--width=700 \
--rigid \
--alt-autoscale-max \
--lower-limit='0' \
COMMENT:"From 2019/01/17 11\:58\:00 To 2019/01/18 11\:53\:08\c" \
COMMENT:"  \n" \
--color BACK#F3F3F3 \
--color CANVAS#FDFDFD \
--color SHADEA#CBCBCB \
--color SHADEB#999999 \
--color FONT#000000 \
--color AXIS#2C4D43 \
--color ARROW#2C4D43 \
--color FRAME#2C4D43 \
--border 1 --font TITLE:11:'Arial' \
--font AXIS:8:'Arial' \
--font LEGEND:8:'Courier' \
--font UNIT:8:'Arial' \
--font WATERMARK:6:'Arial' \
--slope-mode \
DEF:a='/var/db/cacti/rra/(cutted)_traffic_in_50.rrd':'traffic_in':MAX \
DEF:b='/var/db/cacti/rra/(cutted)_traffic_in_50.rrd':'traffic_in':AVERAGE \
DEF:c='/var/db/cacti/rra/(cutted)_traffic_in_50.rrd':'traffic_out':MAX \
DEF:d='/var/db/cacti/rra/(cutted)_traffic_in_50.rrd':'traffic_out':AVERAGE \
CDEF:cdefa='a,8,*' \
CDEF:cdefb='b,8,*' \
CDEF:cdefg='c,8,*' \
CDEF:cdefh='d,8,*' \
LINE1:cdefa#00CF00FF:  \
AREA:cdefb#00CF007F:'Inbound '  \
GPRINT:cdefb:LAST:'Current\:%8.2lf %s'  \
GPRINT:cdefb:AVERAGE:'Average\:%8.2lf %s'  \
GPRINT:cdefb:MAX:'Maximum\:%8.2lf %s'  \
COMMENT:'Total In\:  4.26 GB\n'  \
LINE1:cdefg#002A97FF:  \
AREA:cdefh#002A977F:'Outbound'  \
GPRINT:cdefh:LAST:'Current\:%8.2lf %s'  \
GPRINT:cdefh:AVERAGE:'Average\:%8.2lf %s'  \
GPRINT:cdefh:MAX:'Maximum\:%8.2lf %s'  \
COMMENT:'Total Out\: 654.97 MB\n' 

RRDtool Says:
OK

@netniV
Copy link
Member

netniV commented Jan 18, 2019

COMMENT:"From 2019/01/17 11\:58\:00 To 2019/01/18 11\:53\:08\c" \

So this bit here is the part that is wrong. We will investigate and come back to you. You didn't say what the system settings were though for date/time ? You've only posted the user specific settings?

@tinola
Copy link
Author

tinola commented Jan 18, 2019

Oh, do you mean OS date/time settings? I didn't touch it, just default.

# env | grep LANG
LANG=pl_PL.UTF-8
# date
pt. 18 sty 2019 14:07:43 CET
# LANG=en_EN.UTF-8 date
Fri Jan 18 14:08:21 CET 2019

In php.ini timezone variable is set as 'Europe/Warsaw'.

@netniV
Copy link
Member

netniV commented Jan 18, 2019

No, I mean under Console -> Configuration -> Settings -> General -> Other Defaults 👍

@tinola
Copy link
Author

tinola commented Jan 18, 2019

Here you are :)

general

cigamit added a commit that referenced this issue Jan 18, 2019
Date separator not being used properly for graphs
@cigamit cigamit added the resolved A fixed issue label Jan 18, 2019
@tinola
Copy link
Author

tinola commented Jan 18, 2019

Thx! problem has gone 👍

@tinola tinola closed this as completed Jan 18, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
resolved A fixed issue
Projects
None yet
Development

No branches or pull requests

3 participants