Discussion:
[cricket-users] graph displays daily but not weekly/monthly/yearly stats
Ed Ravin
2010-08-19 15:29:00 UTC
Permalink
This is strange - starting last week, one of my Cricket graphs stopped
displaying data for the weekly/monthly/yearly graph.

The daily graph continues to show current data collected today.

But all the other graphs show a dropoff to zero at the day the problem
started.

I don't see any error messages in the Cricket logs, other than one
of the datasets being collected returns "U", but that's normal
for this setup, where the data is collected by a bunch of EXEC
scripts and some of the values aren't always available.

I dumped the RRD file out to XML and restored it, and just for laughs
I deleted the Cricket image cache, but nothing helped. I do see
when looking at the RRD XML that all of the RRAs have recent values.

Any idea how to debug this further?

Thanks,

-- Ed
Kiss Gabor (Bitman)
2010-08-19 16:53:01 UTC
Permalink
Post by Ed Ravin
Any idea how to debug this further?
grapher.cgi, line 62:
$log = 'debug';

Then look for rrdtool command line in http server's error log.

Gabor
Ed Ravin
2010-08-19 18:03:35 UTC
Permalink
Post by Kiss Gabor (Bitman)
Post by Ed Ravin
Any idea how to debug this further?
$log = 'debug';
Then look for rrdtool command line in http server's error log.
Here they are. I don't see anything amiss with this.

[19-Aug-2010 13:44:41 ] RRDs::graph /tmp/cricket-cache/cricket-28a95e55.png -a PNG --base 1000 --start -151200 --vertical-label Delay --width 500 --height 200 DEF:ds0=/cricket/maillogs.rrd:ds2:AVERAGE DEF:ds1=/cricket/maillogs.rrd:ds3:AVERAGE AREA:ds0#00cc00:average delay per message sent by Postfix LINE1:ds1#ff0000:standard deviation of delay per message sent by Postfix VRULE:1282190400#ff0000: VRULE:1282104000#ff0000:
[19-Aug-2010 13:44:41 ] RRDs::graph /tmp/cricket-cache/cricket-387ac561.png -a PNG --base 1000 --start -41472000 --vertical-label Delay --width 500 --height 200 DEF:ds0=/cricket/maillogs.rrd:ds2:AVERAGE DEF:ds1=/cricket/maillogs.rrd:ds3:AVERAGE AREA:ds0#00cc00:average delay per message sent by Postfix LINE1:ds1#ff0000:standard deviation of delay per message sent by Postfix VRULE:1262318400#ff0000:
[19-Aug-2010 13:44:42 ] RRDs::graph /tmp/cricket-cache/cricket-80bb26e1.png -a PNG --base 1000 --start -3628800 --vertical-label Delay --width 500 --height 200 DEF:ds0=/cricket/maillogs.rrd:ds2:AVERAGE DEF:ds1=/cricket/maillogs.rrd:ds3:AVERAGE AREA:ds0#00cc00:average delay per message sent by Postfix LINE1:ds1#ff0000:standard deviation of delay per message sent by Postfix VRULE:1280635200#ff0000:
[19-Aug-2010 13:44:42 ] RRDs::graph /tmp/cricket-cache/cricket-ef141937.png -a PNG --base 1000 --start -864000 --vertical-label Delay --width 500 --height 200 DEF:ds0=/cricket/maillogs.rrd:ds2:AVERAGE DEF:ds1=/cricket/maillogs.rrd:ds3:AVERAGE AREA:ds0#00cc00:average delay per message sent by Postfix LINE1:ds1#ff0000:standard deviation of delay per message sent by Postfix VRULE:1281931200#ff0000:

grapher.pl is running in mod-perl, so I restarted the web server a couple
of times to make sure the environment was clean. No change - the graphs
Kiss Gabor (Bitman)
2010-08-19 18:58:33 UTC
Permalink
Post by Ed Ravin
Post by Kiss Gabor (Bitman)
Then look for rrdtool command line in http server's error log.
Here they are. I don't see anything amiss with this.
Now you can issue the same rrdtool graph command by hand.
(Don't forget to quote args containing spaces.)
(The best to create a small shell script.)

Then "morph" the command line from the hourly graph to the daily one
with small modifications and look what happens. What small change
will result constant zero graph?

Gabor
Franz Skale
2010-08-19 19:21:23 UTC
Permalink
Be sure to check the cache file.
Check you cache files.
You defined /tmp/cricket-cache.
So, if deleting it, you must see new graphs generated due to rrdgraph.

Franz
On Thu, Aug 19, 2010 at 06:53:01PM +0200, Kiss Gabor (Bitman)
Post by Ed Ravin
Any idea how to debug this further?
grapher.cgi, line 62: $log = 'debug';
Then look for rrdtool command line in http server's error log.
Here they are. I don't see anything amiss with this.
[19-Aug-2010 13:44:41 ] RRDs::graph
/tmp/cricket-cache/cricket-28a95e55.png -a PNG --base 1000 --start
-151200 --vertical-label Delay --width 500 --height 200
DEF:ds0=/cricket/maillogs.rrd:ds2:AVERAGE
DEF:ds1=/cricket/maillogs.rrd:ds3:AVERAGE AREA:ds0#00cc00:average
delay per message sent by Postfix LINE1:ds1#ff0000:standard
deviation of delay per message sent by Postfix
VRULE:1282190400#ff0000: VRULE:1282104000#ff0000: [19-Aug-2010
13:44:41 ] RRDs::graph /tmp/cricket-cache/cricket-387ac561.png -a
PNG --base 1000 --start -41472000 --vertical-label Delay --width
500 --height 200 DEF:ds0=/cricket/maillogs.rrd:ds2:AVERAGE
DEF:ds1=/cricket/maillogs.rrd:ds3:AVERAGE AREA:ds0#00cc00:average
delay per message sent by Postfix LINE1:ds1#ff0000:standard
deviation of delay per message sent by Postfix
VRULE:1262318400#ff0000: [19-Aug-2010 13:44:42 ] RRDs::graph
/tmp/cricket-cache/cricket-80bb26e1.png -a PNG --base 1000 --start
-3628800 --vertical-label Delay --width 500 --height 200
DEF:ds0=/cricket/maillogs.rrd:ds2:AVERAGE
DEF:ds1=/cricket/maillogs.rrd:ds3:AVERAGE AREA:ds0#00cc00:average
delay per message sent by Postfix LINE1:ds1#ff0000:standard
deviation of delay per message sent by Postfix
VRULE:1280635200#ff0000: [19-Aug-2010 13:44:42 ] RRDs::graph
/tmp/cricket-cache/cricket-ef141937.png -a PNG --base 1000 --start
-864000 --vertical-label Delay --width 500 --height 200
DEF:ds0=/cricket/maillogs.rrd:ds2:AVERAGE
DEF:ds1=/cricket/maillogs.rrd:ds3:AVERAGE AREA:ds0#00cc00:average
delay per message sent by Postfix LINE1:ds1#ff0000:standard
deviation of delay per message sent by Postfix
grapher.pl is running in mod-perl, so I restarted the web server a
couple of times to make sure the environment was clean. No change
- the graphs
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without Enter the BlackBerry Developer
Challenge http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________ cricket-users
https://lists.sourceforge.net/lists/listinfo/cricket-users
- --



kind regards, +43-664-8468643
Franz Skale +43-1-7189880-0
Senior Systems Engineer www.cubit.at
PGP KeyID 0xB294D39A
Key Fingerprint B508 8896 B83C B374 770D 80EF 3AD9 4A66 B294 D39A

Neuer Standort: 1070 Wien, Zieglergasse 67/3/1
Ed Ravin
2010-08-24 13:11:17 UTC
Permalink
Post by Ed Ravin
This is strange - starting last week, one of my Cricket graphs stopped
displaying data for the weekly/monthly/yearly graph.
The daily graph continues to show current data collected today.
But all the other graphs show a dropoff to zero at the day the problem
started.
I don't see any error messages in the Cricket logs, other than one
of the datasets being collected returns "U", but that's normal
for this setup, where the data is collected by a bunch of EXEC
scripts and some of the values aren't always available.
I dumped the RRD file out to XML and restored it, and just for laughs
I deleted the Cricket image cache, but nothing helped.
Starting a day or so after I rebuilt the RRD file from XML, the weekly
graph now displays properly. The monthly and yearly graphs still stop
at the same spot, now 12 days ago.

Perhaps they will catch up after a corresponding amount of time has passed?
Loading...