-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.example.php
More file actions
41 lines (34 loc) · 971 Bytes
/
config.example.php
File metadata and controls
41 lines (34 loc) · 971 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/**** Configuration ****/
// User
$user = "admin";
// Passsword for user
$pass = "ironmaiden";
// Hostname
$hostname = exec("hostname -A");
// Network device
$iface = "venet0";
// Samples for each run, 1 per second
$samples = 1;
// Update interval, must be > $samples
$update_interval = 3;
// Graph list - Ordering in this list sets the graphics positioning
/*
Available graphics:
cpu - CPU utilization
mem - Memory utilization
swp - Swap utilization
top - Top 10 processes
lda - Load average
ifx - $iface received/sent kBytes
tps - I/O transfers/second
met - Metrics
upt - Uptime
*/
$graphs = array('cpu','mem','swp','lda','tps','top','ifx','met','upt');
/***********************/
// Sysstat Graph config
define('SYSSTATDATAPATH','/var/log/sysstat');
define('JSONSTRUCTUREFILENAME','data.json');
define('NETWORKINTERFACELIST',serialize(array($iface)));
//define('NETWORKINTERFACELIST',serialize(array('lo',$iface)));