Attachment '605serverstats.diff'
Download 1 diff --git a/cron.d/serverstats b/cron.d/serverstats
2 index a6cb8db..b5bf0fc 100644
3 --- a/cron.d/serverstats
4 +++ b/cron.d/serverstats
5 @@ -1,2 +1,2 @@
6 # Update the serverstatistic every minute.
7 -*/5 * * * * root if [ -x /usr/bin/php5 ] && [ -f /usr/share/serverstats/update.php ]; then /usr/bin/php5 /usr/share/serverstats/update.php > /dev/null; fi
8 +*/2 * * * * root if [ -x /usr/bin/php5 ] && [ -f /usr/share/serverstats/update.php ]; then /usr/bin/php5 /usr/share/serverstats/update.php > /dev/null; fi
9 diff --git a/serverstats/graph.php b/serverstats/graph.php
10 index 3c720c2..43081c6 100644
11 --- a/serverstats/graph.php
12 +++ b/serverstats/graph.php
13 @@ -511,10 +511,12 @@ $config['list'][] = array(
14 // Define what Graphes we want in the detail view (detail.php)
15 $config['types'] = array(
16 // array('title' => 'Hour', 'period' => 3600), // only useful if you have a small step
17 - array('title' => 'Day', 'period' => 86400),
18 - array('title' => 'Week', 'period' => 604800),
19 - array('title' => 'Month', 'period' => 2678400),
20 - array('title' => 'Year', 'period' => 31536000)
21 + array('title' => '4 heures', 'period' => 14400),
22 + array('title' => '10 heures', 'period' => 36000),
23 + array('title' => 'Un jour', 'period' => 86400),
24 + array('title' => 'Une semaine', 'period' => 604800),
25 + array('title' => 'Un mois', 'period' => 2678400),
26 + array('title' => 'Une annee', 'period' => 31536000)
27 );
28 // The period uses in the graph overview (index.php)
29 $config['defaultperiod'] = 86400;
30 diff --git a/serverstats/main.php b/serverstats/main.php
31 index 8f18fa9..f32b64c 100644
32 --- a/serverstats/main.php
33 +++ b/serverstats/main.php
34 @@ -29,7 +29,7 @@ $config = array(
35 // Where to find the rrdtool binary
36 'rrdtool' => '/usr/bin/rrdtool',
37 // step for rrd-files, read 'man rrdcreate'
38 - 'step' => 300
39 + 'step' => 120
40 );
41
42 ?>
43 diff --git a/serverstats/simple.php b/serverstats/simple.php
44 index 0a8bea7..fc65d86 100644
45 --- a/serverstats/simple.php
46 +++ b/serverstats/simple.php
47 @@ -39,8 +39,8 @@ $config['modules'] = array(
48 )
49 ),
50 'disk' => array(
51 - 'used' => false,
52 - 'disks' => array('hda'),
53 + 'used' => true,
54 + 'disks' => array('mmcblk0', 'sda', 'dm-0'),
55 'graphs' => array(
56 'iorate' => array('used' => true, 'title' => 'IO-Rate (%s)')
57 )
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.