Discussion:
[rrd-users] custom start/end time not working
(too old to reply)
Jagga Soorma
2016-06-28 21:25:25 UTC
Permalink
Hi Guys,

I am running version ganglia version 3.6.0-1 and the web version 3.6.2
which uses rrdtool to build its graphs. Looks like if I use the
predefined time tabs for "Last - hour/2hr/4h/day/week/month/year/job"
my stacked graph shows up just fine. However if I add a custom time
range with the start time being before the end time the stacked graph
does not display and I get the following in the apache error logs:

ERROR: start time: There should be number after '-'

The link to the broken image shows:

http://{ganglia-web}/stacked.php?m=load_one&c=rescomp&r=custom&st=1467142510&host_regex=

Looks like potentially the correct start time is not being generated
from the web ui and passed to rrdtool? Am I missing something here?
Has anyone seen this issue and if so how can I fix it?

Thanks in advance for your help with this!
Alex van den Bogaerdt
2016-06-29 08:17:27 UTC
Permalink
Post by Jagga Soorma
my stacked graph shows up just fine. However if I add a custom time
range with the start time being before the end time the stacked graph
ERROR: start time: There should be number after '-'
Which does make me guess the generated code is "--start end-{$variableName}".
If you entered 1467142510, the resulting starttime will be too low.

Try entering the number 86400. Does this work? If so, my guess is right
and you need to enter the length (time wise) of the graph, not the start
time of it.
Jagga Soorma
2016-06-29 14:57:48 UTC
Permalink
Unfortunately that does not work either. When I enter 86400 it starts
giving me this error:

ERROR: end time: did you really mean month 86400?

Attached is the php file that triggers the rrdtool but I am not sure
how this is happening.

Thanks for your help with this.

On Wed, Jun 29, 2016 at 1:17 AM, Alex van den Bogaerdt
Post by Alex van den Bogaerdt
Post by Jagga Soorma
my stacked graph shows up just fine. However if I add a custom time
range with the start time being before the end time the stacked graph
ERROR: start time: There should be number after '-'
Which does make me guess the generated code is "--start end-{$variableName}".
If you entered 1467142510, the resulting starttime will be too low.
Try entering the number 86400. Does this work? If so, my guess is right
and you need to enter the length (time wise) of the graph, not the start
time of it.
_______________________________________________
rrd-users mailing list
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
Loading...