aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin/hddtemp.php
blob: 1d366a986a4ef7c1946b9d8daba077f5f7a459e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php

# Collectd HDDTemp plugin

require_once 'conf/common.inc.php';
require_once 'type/Default.class.php';

## LAYOUT
# hddtemp/temperature-<disk>.rrd

$obj = new Type_Default($CONFIG, $_GET);
$obj->ds_names = array('temperature' => 'Temperature');
$obj->rrd_title = 'HDD Temperature';
$obj->rrd_vertical = '°C';
$obj->rrd_format = '%.1lf';

$obj->rrd_graph();