root/stats/google_graph.sh

Revision 593, 1.4 kB (checked in by mankoff, 2 years ago)

force lower limit to 0

  • Property svn:executable set to *
Line 
1#!/bin/bash
2
3/sw/bin/rrdtool graph google.png -a PNG --title="Google Hits" \
4--vertical-label "Hits" \
5--lower-limit 0 \
6'DEF:all=google.rrd:all:AVERAGE' \
7'DEF:edu=google.rrd:edu:AVERAGE' \
8'CDEF:notedu=all,edu,-' \
9'LINE1:edu#ff0000:edu sites' \
10'LINE1:all#0000FF:all sites'
11
12/sw/bin/rrdtool graph google_hour.png -a PNG --title="Google Hits" \
13--vertical-label "Hits" \
14--lower-limit 0 \
15--start "-6hour" \
16'DEF:all=google.rrd:all:AVERAGE' \
17'DEF:edu=google.rrd:edu:AVERAGE' \
18'CDEF:notedu=all,edu,-' \
19'LINE1:edu#ff0000:edu sites' \
20'LINE1:all#0000FF:all sites'
21
22/sw/bin/rrdtool graph google_week.png -a PNG --title="Google Hits" \
23--vertical-label "Hits" \
24--lower-limit 0 \
25--start "-1week" \
26'DEF:all=google.rrd:all:AVERAGE' \
27'DEF:edu=google.rrd:edu:AVERAGE' \
28'CDEF:notedu=all,edu,-' \
29'LINE1:edu#ff0000:edu sites' \
30'LINE1:all#0000FF:all sites'
31
32
33/sw/bin/rrdtool graph google_month.png -a PNG --title="Google Hits" \
34--vertical-label "Hits" \
35--lower-limit 0 \
36--start "-1month" \
37'DEF:all=google.rrd:all:AVERAGE' \
38'DEF:edu=google.rrd:edu:AVERAGE' \
39'CDEF:notedu=all,edu,-' \
40'LINE1:edu#ff0000:edu sites' \
41'LINE1:all#0000FF:all sites'
42
43
44/sw/bin/rrdtool graph google_year.png -a PNG --title="Google Hits" \
45--vertical-label "Hits" \
46--lower-limit 0 \
47--start "-1year" \
48'DEF:all=google.rrd:all:AVERAGE' \
49'DEF:edu=google.rrd:edu:AVERAGE' \
50'CDEF:notedu=all,edu,-' \
51'LINE1:edu#ff0000:edu sites' \
52'LINE1:all#0000FF:all sites'
Note: See TracBrowser for help on using the browser.