share/collection.js: Keep visibility when redrawing graphs.
[collection4.git] / share / collection.conf
index 855d15f..b0f4d43 100644 (file)
@@ -588,7 +588,8 @@ CacheFile "/tmp/collection4.json"
   VerticalLabel "Seconds"
 
   <DEF>
-    DSName "value"
+    # v5: DSName "value"
+    DSName "ping"
     Legend "Ping"
     Color "0000ff"
   </DEF>
@@ -760,6 +761,126 @@ CacheFile "/tmp/collection4.json"
 
 <Graph>
   Host "/any/"
+  Plugin "tcpconns"
+  PluginInstance "/any/"
+  Type "tcp_connections"
+  TypeInstance "/all/"
+
+  Title "TCP connections"
+  VerticalLabel "Connections"
+
+  <DEF>
+    TypeInstance "LISTEN"
+    DSName "value"
+    Legend "LISTEN     "
+    Color "ff0000"
+    Area true
+    Stack true
+    Format "%6.2lf"
+  </DEF>
+  <DEF>
+    TypeInstance "CLOSING"
+    DSName "value"
+    Legend "CLOSING    "
+    Color "000000"
+    Area true
+    Stack true
+    Format "%6.2lf"
+  </DEF>
+  <DEF>
+    TypeInstance "LAST_ACK"
+    DSName "value"
+    Legend "LAST_ACK   "
+    Color "000080"
+    Area true
+    Stack true
+    Format "%6.2lf"
+  </DEF>
+  <DEF>
+    TypeInstance "CLOSE_WAIT"
+    DSName "value"
+    Legend "CLOSE_WAIT "
+    Color "0000a0"
+    Area true
+    Stack true
+    Format "%6.2lf"
+  </DEF>
+  <DEF>
+    TypeInstance "CLOSE"
+    DSName "value"
+    Legend "CLOSE      "
+    Color "0000f0"
+    Area true
+    Stack true
+    Format "%6.2lf"
+  </DEF>
+  <DEF>
+    TypeInstance "TIME_WAIT"
+    DSName "value"
+    Legend "TIME_WAIT  "
+    Color "ffb000"
+    Area true
+    Stack true
+    Format "%6.2lf"
+  </DEF>
+  <DEF>
+    TypeInstance "FIN_WAIT2"
+    DSName "value"
+    Legend "FIN_WAIT2  "
+    Color "f000a0"
+    Area true
+    Stack true
+    Format "%6.2lf"
+  </DEF>
+  <DEF>
+    TypeInstance "FIN_WAIT1"
+    DSName "value"
+    Legend "FIN_WAIT1  "
+    Color "f000f0"
+    Area true
+    Stack true
+    Format "%6.2lf"
+  </DEF>
+  <DEF>
+    TypeInstance "SYN_RECV"
+    DSName "value"
+    Legend "SYN_RECV   "
+    Color "00e0a0"
+    Area true
+    Stack true
+    Format "%6.2lf"
+  </DEF>
+  <DEF>
+    TypeInstance "SYN_SENT"
+    DSName "value"
+    Legend "SYN_SENT   "
+    Color "00e0ff"
+    Area true
+    Stack true
+    Format "%6.2lf"
+  </DEF>
+  <DEF>
+    TypeInstance "ESTABLISHED"
+    DSName "value"
+    Legend "ESTABLISHED"
+    Color "00e000"
+    Area true
+    Stack true
+    Format "%6.2lf"
+  </DEF>
+  <DEF>
+    TypeInstance "CLOSED"
+    DSName "value"
+    Legend "CLOSED     "
+    Color "0000f0"
+    Area true
+    Stack true
+    Format "%6.2lf"
+  </DEF>
+</Graph>
+
+<Graph>
+  Host "/any/"
   Plugin "users"
   PluginInstance ""
   Type "users"