ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/reports/php/latest/latest_display.inc.php
Revision: 1.5
Committed: Fri Mar 9 09:29:01 2001 UTC (23 years, 2 months ago) by pjm2
Branch: MAIN
Changes since 1.4: +11 -9 lines
Log Message:
Layout changes.  Each section is now titled.  Horizontal rules are now
where they should be ;)
Font sizes are slightly smaller as well.

File Contents

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