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.11
Committed: Sun Oct 13 12:41:16 2002 UTC (22 years, 1 month ago) by tdb
Branch: MAIN
Changes since 1.10: +16 -16 lines
Log Message:
Updated the "latest data" page to link to the newer graphs.php script
rather than the obselete browser.php script.

File Contents

# User Rev Content
1 pjm2 1.1 <?
2    
3     # Display the following data.
4    
5 pjm2 1.6
6     printLine("Machine identification");
7 pjm2 1.5
8 pjm2 1.1 showStat("Machine Name", "packet.attributes.machine_name", $input);
9 pjm2 1.2 showStat("I.P. Address", "packet.attributes.ip", $input);
10    
11 pjm2 1.6
12     printLine("Load");
13    
14 tdb 1.11 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 pjm2 1.6
18    
19     printLine("Memory graphs");
20    
21 tdb 1.11 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 pjm2 1.6
24    
25     printLine("CPU graphs");
26    
27 tdb 1.11 showBar("User CPU", "packet.cpu.user", 100, "%", $input, "cpu");
28     showBar("Swap CPU", "packet.cpu.swap", 100, "%", $input, "cpu");
29     showBar("Idle CPU", "packet.cpu.idle", 100, "%", $input, "cpu");
30     showBar("Kernel CPU", "packet.cpu.kernel", 100, "%", $input, "cpu");
31     showBar("IO wait CPU", "packet.cpu.iowait", 100, "%", $input, "cpu");
32 pjm2 1.6
33    
34 pjm2 1.5 printLine("Operating System");
35 pjm2 1.2
36 pjm2 1.4 showStat("Operating System Release", "packet.os.release", $input);
37     showStat("Operating System Version", "packet.os.version", $input);
38     showStat("Operating System Name", "packet.os.name", $input);
39 pjm2 1.6 showStat("Operating System Platform", "packet.os.platform", $input);
40 pjm2 1.4 showStat("System Name", "packet.os.sysname", $input);
41 pjm2 1.6
42 pjm2 1.2
43 pjm2 1.5 printLine("Processes");
44 pjm2 1.2
45 tdb 1.11 showStat("Total Processes", "packet.processes.total", $input, "proc");
46     showStat("CPU Processes", "packet.processes.cpu", $input, "proc");
47     showStat("Sleeping Processes", "packet.processes.sleeping", $input, "proc");
48     showStat("Zombie Processes", "packet.processes.zombie", $input, "proc");
49     showStat("Stopped Processes", "packet.processes.stopped", $input, "proc");
50 pjm2 1.6
51 pjm2 1.2
52 pjm2 1.5 printLine("Uptime");
53 pjm2 1.2
54 pjm2 1.10 showStat("Seconds Uptime", "packet.os.uptime", $input);
55 pjm2 1.2
56 pjm2 1.6
57 pjm2 1.9 printLine("Disks");
58    
59     showDisks("packet.disk", "Kb", $input);
60    
61    
62 pjm2 1.6 printLine("Packet");
63 pjm2 1.2
64     showStat("Last sequence number", "packet.attributes.seq_no", $input);
65    
66 pjm2 1.6
67 pjm2 1.5 printLine("Users");
68 pjm2 1.2
69 tdb 1.11 showStat("Number of users", "packet.users.count", $input, "users");
70 pjm2 1.2 showStat("User list", "packet.users.list", $input);
71    
72 pjm2 1.8 ?>