11 |
|
|
12 |
|
printLine("Load"); |
13 |
|
|
14 |
< |
showStat("Load 1", "packet.load.load1", $input); |
15 |
< |
showStat("Load 5", "packet.load.load5", $input); |
16 |
< |
showStat("Load 15", "packet.load.load15", $input); |
14 |
> |
showStat("Load 1", "packet.load.load1", $input, "load"); |
15 |
> |
showStat("Load 5", "packet.load.load5", $input, "load"); |
16 |
> |
showStat("Load 15", "packet.load.load15", $input, "load"); |
17 |
|
|
18 |
|
|
19 |
|
printLine("Memory graphs"); |
20 |
|
|
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'); |
21 |
> |
showBar("Swap Used", "packet.swap.free", "packet.swap.total", "Mb", $input, "swap", 'swap'); |
22 |
> |
showBar("Memory Used", "packet.memory.free", "packet.memory.total", "Mb", $input, "mem", 'swap'); |
23 |
> |
showStat("Swap Pages in (per sec)", "packet.pages.swapins", $input, "paging"); |
24 |
> |
showStat("Swap Pages out (per sec)", "packet.pages.swapouts", $input, "paging"); |
25 |
|
|
24 |
– |
|
26 |
|
printLine("CPU graphs"); |
27 |
|
|
28 |
< |
showBar("User CPU", "packet.cpu.user", 100, "%", $input); |
29 |
< |
showBar("Swap CPU", "packet.cpu.swap", 100, "%", $input); |
30 |
< |
showBar("Idle CPU", "packet.cpu.idle", 100, "%", $input); |
31 |
< |
showBar("Kernel CPU", "packet.cpu.kernel", 100, "%", $input); |
32 |
< |
showBar("IO wait CPU", "packet.cpu.iowait", 100, "%", $input); |
28 |
> |
showBar("User CPU", "packet.cpu.user", 100, "%", $input, "cpu"); |
29 |
> |
showBar("Swap CPU", "packet.cpu.swap", 100, "%", $input, "cpu"); |
30 |
> |
showBar("Idle CPU", "packet.cpu.idle", 100, "%", $input, "cpu"); |
31 |
> |
showBar("Kernel CPU", "packet.cpu.kernel", 100, "%", $input, "cpu"); |
32 |
> |
showBar("IO wait CPU", "packet.cpu.iowait", 100, "%", $input, "cpu"); |
33 |
|
|
34 |
|
|
35 |
|
printLine("Operating System"); |
43 |
|
|
44 |
|
printLine("Processes"); |
45 |
|
|
46 |
< |
showStat("Total Processes", "packet.processes.total", $input); |
47 |
< |
showStat("CPU Processes", "packet.processes.cpu", $input); |
48 |
< |
showStat("Sleeping Processes", "packet.processes.sleeping", $input); |
49 |
< |
showStat("Zombie Processes", "packet.processes.zombie", $input); |
50 |
< |
showStat("Stopped Processes", "packet.processes.stopped", $input); |
46 |
> |
showStat("Total Processes", "packet.processes.total", $input, "proc"); |
47 |
> |
showStat("CPU Processes", "packet.processes.cpu", $input, "proc"); |
48 |
> |
showStat("Sleeping Processes", "packet.processes.sleeping", $input, "proc"); |
49 |
> |
showStat("Zombie Processes", "packet.processes.zombie", $input, "proc"); |
50 |
> |
showStat("Stopped Processes", "packet.processes.stopped", $input, "proc"); |
51 |
|
|
52 |
|
|
53 |
|
printLine("Uptime"); |
67 |
|
|
68 |
|
printLine("Users"); |
69 |
|
|
70 |
< |
showStat("Number of users", "packet.users.count", $input); |
70 |
> |
showStat("Number of users", "packet.users.count", $input, "users"); |
71 |
|
showStat("User list", "packet.users.list", $input); |
72 |
|
|
73 |
|
?> |