]> arthur.barton.de Git - netdata.git/blobdiff - web/index.html
Merge pull request #912 from sehraf/master
[netdata.git] / web / index.html
index 15a6b733b51f94e9d51c3faf35d7706375af62f4..3ea587b52976f0ec3cbd837fe9215ac431d86cb9 100644 (file)
     <script type="text/javascript">
         // enable alarms checking and notifications
         var netdataShowAlarms = true;
+
+        // enable registry updates
+        var netdataRegistry = true;
         
         // --------------------------------------------------------------------
         // urlOptions
     </script>
 
     <!-- load the dashboard manager - it will do the rest -->
-    <script type="text/javascript" src="dashboard.js?v45"></script>
+    <script type="text/javascript" src="dashboard.js?v46"></script>
 </head>
 <body data-spy="scroll" data-target="#sidebar">
     <div id="loadOverlay" class="loadOverlay" style="background-color: #888; color: #888;">
@@ -1777,11 +1780,11 @@ var chartData = {
     },
 
     'system.processes': {
-        info: 'System processes, read from <code>/proc/stat</code>. <b>Blocked</b> are processes that are willing to execute but they cannot, e.g. because they wait for disk activity.'
+        info: 'System processes, read from <code>/proc/stat</code>. <b>Running</b> are the processes in the CPU. <b>Blocked</b> are processes that are willing to enter the CPU, but they cannot, e.g. because they wait for disk activity.'
     },
 
     'system.active_processes': {
-        info: 'All system active processes, read from <code>/proc/loadavg</code>.'
+        info: 'All system processes, read from <code>/proc/loadavg</code>.'
     },
 
     'system.ctxt': {
@@ -2142,7 +2145,7 @@ var chartData = {
     },
 
     'retroshare.dht': {
-        info: 'Shows statistics about RetroShare\'s DHT. These values are estimate!'
+        info: 'Shows statistics about RetroShare\'s DHT. These values are estimated!'
     }
 };
 
@@ -2823,7 +2826,12 @@ function alarmsUpdateModal() {
             if(len > 50) len = 50;
             while(i < len) {
                 var time = new Date(data[i].when * 1000);
-                log += '<tr><td>' + time.toLocaleDateString() + ' ' + time.toLocaleTimeString() + '</td><td>' + data[i].chart + '</td><td>' + data[i].name + '</td><td>' + data[i].status + '</td></tr>';
+                log += '<tr><td>'
+                        + time.toLocaleDateString() + ' '
+                        + time.toLocaleTimeString() + '</td><td>'
+                        + data[i].chart.toString() + '</td><td>'
+                        + data[i].name.toString() + ' = ' + ((data[i].value !== null)?Math.floor(data[i].value):'NaN').toString() + ' ' + data[i].units.toString() + '</td><td>'
+                        + data[i].status.toString() + '</td></tr>';
                 i++;
             }
             log += "</table>";