cleanup, data of the monitor page refreshed automaticly (not using page refresh)
[psensor.git] / www / monitor.html
1 <html>
2   <head>
3     <meta charset="utf-8">
4     <title>Psensor Server Monitoring</title>
5
6     <link type="text/css" href="style.css" rel="stylesheet" />  
7     <script type="text/javascript" src="jquery.js"></script>
8     <script type="text/javascript" src="psensor.js"></script>
9     <script>  
10         $(document).ready(function() {          
11                 update_summary_sensors();
12                 update_summary_sysinfo();      
13
14                 $(document).ready(function() {
15                         setInterval(function() {
16                                 update_summary_sensors();
17                                 update_summary_sysinfo();
18                         }, 1000);
19                 });
20          
21
22       });
23     </script>
24   </head>
25   <body>
26     <h1>Psensor Server Monitoring</h1>
27
28     <p><em>Uptime</em>: <span id='uptime'></span></p>
29
30     <h2>CPU</h2>
31     
32     <table id='cpu' border='0' cellspacing='0' cellpadding='0'>
33       <thead>
34         <tr>
35           <th>Current usage</th>
36           <th>Load 1mn</th>
37           <th>Load 5mn</th>
38           <th>Load 15mn</th>
39         </tr>
40       </thead>
41       <tbody></tbody>
42     </table>
43     
44     <h2>Memory</h2>
45     
46     <table border='0' cellspacing='0' cellpadding='0'>
47       <thead>
48         <tr>
49           <th></th>
50           <th>Total</th>
51           <th>Used</th>
52           <th>Free</th>
53           <th>Shared</th>
54           <th>Buffer</th>
55         </tr>
56       </thead>
57       <tbody>
58         <tr id='memory'></tr>
59         <tr id='swap'></tr>
60       </tbody>
61     </table>
62
63     <h2>Network</h2>
64     
65     <table id='net' border='0' cellspacing='0' cellpadding='0'>
66       <thead>
67         <tr>
68           <th>Interface</th>
69           <th>Bytes In</th>
70           <th>Bytes Out</th>
71         </tr>
72       </thead>
73       <tbody>
74       </tbody>
75     </table>
76
77     <h2>Sensors</h2>
78     
79     <table id='sensors' border='0' cellspacing='0' cellpadding='0'>
80       <thead>
81         <tr>
82           <th>Name</th>
83           <th>Value</th>
84           <th>Min</th>
85           <th>Max</th>
86           <th>Type</th>
87         </tr>
88       </thead>
89       <tbody id ="sensors"></tbody>
90     </table>
91
92     <div id="footer">
93       Generated by <a href='http://wpitchoune.net/psensor'>psensor-server</a>
94     </div>
95   </body>
96 </html>