| 1 |
pjm2 |
1.1 |
<? |
| 2 |
|
|
|
| 3 |
|
|
# Display the following data. |
| 4 |
|
|
|
| 5 |
|
|
showStat("Machine Name", "packet.attributes.machine_name", $input); |
| 6 |
pjm2 |
1.2 |
showStat("I.P. Address", "packet.attributes.ip", $input); |
| 7 |
|
|
|
| 8 |
|
|
printLine(); |
| 9 |
|
|
|
| 10 |
pjm2 |
1.3 |
#showStat("Operating System Release", "packet.os.release", $input); |
| 11 |
|
|
#showStat("Operating System Version", "packet.os.version", $input); |
| 12 |
|
|
#showStat("Operating System Name", "packet.os.name", $input"); |
| 13 |
|
|
#showStat("System Name", "packet.os.sysname", $input); |
| 14 |
|
|
#showStat("Operating System Platform", "packet.os.platform", $input); |
| 15 |
pjm2 |
1.2 |
|
| 16 |
|
|
printLine(); |
| 17 |
|
|
|
| 18 |
|
|
showStat("Sleeping Processes", "packet.processes.sleeping", $input); |
| 19 |
|
|
showStat("Zombie Processes", "packet.processes.zombie", $input); |
| 20 |
|
|
showStat("Stopped Processes", "packet.processes.stopped", $input); |
| 21 |
|
|
showStat("CPU Processes", "packet.processes.cpu", $input); |
| 22 |
|
|
showStat("Total Processes", "packet.processes.total", $input); |
| 23 |
|
|
|
| 24 |
|
|
printLine(); |
| 25 |
|
|
|
| 26 |
|
|
showStat("Uptime (um... seconds)", "packet.os.uptime", $input); |
| 27 |
|
|
|
| 28 |
|
|
printLine(); |
| 29 |
|
|
|
| 30 |
|
|
showStat("Last sequence number", "packet.attributes.seq_no", $input); |
| 31 |
|
|
|
| 32 |
|
|
printLine(); |
| 33 |
|
|
|
| 34 |
|
|
showStat("Number of users", "packet.users.count", $input); |
| 35 |
|
|
showStat("User list", "packet.users.list", $input); |
| 36 |
|
|
|
| 37 |
|
|
printLine(); |
| 38 |
|
|
|
| 39 |
|
|
showStat("Load 1", "packet.load.load1", $input); |
| 40 |
|
|
showStat("Load 5", "packet.load.load5", $input); |
| 41 |
|
|
showStat("Load 15", "packet.load.load15", $input); |
| 42 |
|
|
|
| 43 |
|
|
printLine(); |
| 44 |
|
|
|
| 45 |
|
|
showBar("User CPU", "packet.cpu.user", 100, $input); |
| 46 |
|
|
showBar("Swap CPU", "packet.cpu.swap", 100, $input); |
| 47 |
|
|
showBar("Idle CPU", "packet.cpu.idle", 100, $input); |
| 48 |
|
|
showBar("Kernel CPU", "packet.cpu.kernel", 100, $input); |
| 49 |
|
|
showBar("IO wait CPU", "packet.cpu.iowait", 100, $input); |
| 50 |
|
|
|
| 51 |
|
|
printLine(); |
| 52 |
|
|
|
| 53 |
|
|
showBar("Swap Free", "packet.swap.free", "packet.swap.total", $input); |
| 54 |
pjm2 |
1.1 |
showBar("Memory Free", "packet.memory.free", "packet.memory.total", $input); |
| 55 |
|
|
|
| 56 |
|
|
|
| 57 |
|
|
?> |