18 |
|
|
19 |
|
printLine("Memory graphs"); |
20 |
|
|
21 |
< |
showBar("Swap Free", "packet.swap.free", "packet.swap.total", $input); |
22 |
< |
showBar("Memory Free", "packet.memory.free", "packet.memory.total", $input); |
21 |
> |
showBar("Swap Used", "packet.swap.free", "packet.swap.total", "Mb", $input, 'swap'); |
22 |
> |
showBar("Memory Used", "packet.memory.free", "packet.memory.total", "Mb", $input, 'swap'); |
23 |
|
|
24 |
|
|
25 |
|
printLine("CPU graphs"); |
26 |
|
|
27 |
< |
showBar("User CPU", "packet.cpu.user", 100, $input); |
28 |
< |
showBar("Swap CPU", "packet.cpu.swap", 100, $input); |
29 |
< |
showBar("Idle CPU", "packet.cpu.idle", 100, $input); |
30 |
< |
showBar("Kernel CPU", "packet.cpu.kernel", 100, $input); |
31 |
< |
showBar("IO wait CPU", "packet.cpu.iowait", 100, $input); |
27 |
> |
showBar("User CPU", "packet.cpu.user", 100, "%", $input); |
28 |
> |
showBar("Swap CPU", "packet.cpu.swap", 100, "%", $input); |
29 |
> |
showBar("Idle CPU", "packet.cpu.idle", 100, "%", $input); |
30 |
> |
showBar("Kernel CPU", "packet.cpu.kernel", 100, "%", $input); |
31 |
> |
showBar("IO wait CPU", "packet.cpu.iowait", 100, "%", $input); |
32 |
|
|
33 |
|
|
34 |
|
printLine("Operating System"); |
64 |
|
showStat("Number of users", "packet.users.count", $input); |
65 |
|
showStat("User list", "packet.users.list", $input); |
66 |
|
|
67 |
< |
?> |
67 |
> |
?> |