share/collection.js: Keep visibility when redrawing graphs.
[collection4.git] / share / collection.conf
index 2874bb9..b0f4d43 100644 (file)
@@ -1,3 +1,9 @@
+CacheFile "/tmp/collection4.json"
+
+<DataProvider "rrdtool">
+  DataDir "/var/lib/collectd/rrd"
+</DataProvider>
+
 <Graph>
   Host "/any/"
   Plugin "cpu"
 
   Title "Diskspace"
   VerticalLabel "Bytes"
-  ShowZero true
+  ShowZero false
 
   <DEF>
+    TypeInstance "reserved"
+    DSName "value"
+    Legend "Reserved"
+    Color "ffb000"
+    Area true
+    Stack true
+    Format "%5.1lf%s"
+  </DEF>
+  <DEF>
+    TypeInstance "free"
+    DSName "value"
+    Legend "Free    "
+    Color "00bf00"
+    Area true
+    Stack true
+    Format "%5.1lf%s"
+  </DEF>
+  <DEF>
     TypeInstance "used"
     DSName "value"
     Legend "Used    "
     Color "ff0000"
     Area true
-    #Stack true
+    Stack true
     Format "%5.1lf%s"
   </DEF>
+</Graph>
+
+<Graph>
+  Host "/any/"
+  Plugin "netapp"
+  PluginInstance "/any/"
+  Type "df_complex"
+  TypeInstance "/all/"
+
+  Title "Diskspace (NetApp)"
+  VerticalLabel "Bytes"
+  ShowZero true
+
   <DEF>
-    TypeInstance "reserved"
+    TypeInstance "sis_saved"
     DSName "value"
-    Legend "Reserved"
-    Color "ffb000"
+    Legend "SIS saved         "
+    Color "00e0e0"
     Area true
     Stack true
     Format "%5.1lf%s"
   <DEF>
     TypeInstance "free"
     DSName "value"
-    Legend "Free    "
-    Color "00bf00"
+    Legend "Free              "
+    Color "00ff00"
+    Area true
+    Stack true
+    Format "%5.1lf%s"
+  </DEF>
+  <DEF>
+    TypeInstance "used"
+    DSName "value"
+    Legend "Used              "
+    Color "ff0000"
+    Area true
+    Stack true
+    Format "%5.1lf%s"
+  </DEF>
+  <DEF>
+    TypeInstance "snap_normal_used"
+    DSName "value"
+    Legend "Snap used (normal)"
+    Color "c10640"
+    Area true
+    Stack true
+    Format "%5.1lf%s"
+  </DEF>
+  <DEF>
+    TypeInstance "snap_reserved"
+    DSName "value"
+    Legend "Snap reserved     "
+    Color "f15aef"
+    Area true
+    Stack true
+    Format "%5.1lf%s"
+  </DEF>
+  <DEF>
+    TypeInstance "snap_reserve_used"
+    DSName "value"
+    Legend "Snap used (resv)  "
+    Color "820c81"
     Area true
     Stack true
     Format "%5.1lf%s"
   ShowZero true
 
   <DEF>
-    TypeInstance "used"
-    DSName "value"
-    Legend "Used    "
-    Color "ff0000"
-    Area true
-    #Stack true
-  </DEF>
-  <DEF>
     TypeInstance "reserved"
     DSName "value"
     Legend "Reserved"
     Color "ffb000"
     Area true
     Stack true
+    Format "%5.1lf%s"
   </DEF>
   <DEF>
     TypeInstance "free"
     Color "00bf00"
     Area true
     Stack true
+    Format "%5.1lf%s"
+  </DEF>
+  <DEF>
+    TypeInstance "used"
+    DSName "value"
+    Legend "Used    "
+    Color "ff0000"
+    Area true
+    Stack true
+    Format "%5.1lf%s"
   </DEF>
 </Graph>
 
   ShowZero true
 
   <DEF>
-    DSName "used"
-    Legend "Used"
-    Color "ff0000"
+    DSName "free"
+    Legend "Free"
+    Color "00bf00"
     Area true
-    #Stack true
+    Stack true
     Format "%5.1lf%s"
   </DEF>
   <DEF>
-    DSName "free"
-    Legend "Free"
-    Color "00bf00"
+    DSName "used"
+    Legend "Used"
+    Color "ff0000"
     Area true
     Stack true
     Format "%5.1lf%s"
 
 <Graph>
   Host "/any/"
-  Plugin "disk"
+  Plugin "/any/"
   PluginInstance "/any/"
   Type "disk_merged"
   TypeInstance ""
 
 <Graph>
   Host "/any/"
-  Plugin "disk"
+  Plugin "/any/"
   PluginInstance "/any/"
   Type "disk_octets"
   TypeInstance ""
     DSName "read"
     Legend "Read "
     Color "0000ff"
+    Format "%5.1lf%s"
   </DEF>
   <DEF>
     DSName "write"
     Legend "Write"
     Color "00bf00"
+    Format "%5.1lf%s"
   </DEF>
 </Graph>
 
 <Graph>
   Host "/any/"
-  Plugin "disk"
+  Plugin "/any/"
   PluginInstance "/any/"
   Type "disk_ops"
   TypeInstance ""
 
 <Graph>
   Host "/any/"
-  Plugin "disk"
+  Plugin "/any/"
   PluginInstance "/any/"
   Type "disk_time"
   TypeInstance ""
 
 <Graph>
   Host "/any/"
+  Plugin "processes"
+  PluginInstance ""
+  Type "fork_rate"
+  TypeInstance ""
+
+  Title "Fork rate"
+  VerticalLabel "Forks/s"
+
+  <DEF>
+    DSName "value"
+    Legend "Fork rate"
+    Color "0000ff"
+  </DEF>
+</Graph>
+
+<Graph>
+  Host "/any/"
   Plugin "interface"
   PluginInstance "/any/"
+  Type "if_errors"
+  TypeInstance "/any/"
+
+  Title "Interface errors"
+  VerticalLabel "Errors/s"
+
+  <DEF>
+    DSName "rx"
+    Legend "RX"
+    Color "0000ff"
+    Format "%5.1lf"
+  </DEF>
+  <DEF>
+    DSName "tx"
+    Legend "TX"
+    Color "00bf00"
+    Format "%5.1lf"
+  </DEF>
+</Graph>
+
+<Graph>
+  Host "/any/"
+  Plugin "/any/"
+  PluginInstance "/any/"
   Type "if_octets"
   TypeInstance "/any/"
 
     DSName "rx"
     Legend "RX"
     Color "0000ff"
+    Format "%5.1lf%s"
   </DEF>
   <DEF>
     DSName "tx"
     Legend "TX"
     Color "00bf00"
+    Format "%5.1lf%s"
   </DEF>
 </Graph>
 
 
 <Graph>
   Host "/any/"
+  Plugin "GenericJMX"
+  PluginInstance "/any/"
+  Type "jmx_memory"
+  TypeInstance "/all/"
+
+  Title "JMX memory"
+
+  <DEF>
+    TypeInstance "max"
+    DSName "value"
+    Legend "Max      "
+    Color "00e000"
+    Format "%5.1lf%s"
+  </DEF>
+  <DEF>
+    TypeInstance "committed"
+    DSName "value"
+    Legend "Committed"
+    Color "0000ff"
+    Format "%5.1lf%s"
+  </DEF>
+  <DEF>
+    TypeInstance "init"
+    DSName "value"
+    Legend "Init     "
+    Color "ffb000"
+    Format "%5.1lf%s"
+  </DEF>
+  <DEF>
+    TypeInstance "used"
+    DSName "value"
+    Legend "Used     "
+    Color "ff0000"
+    Format "%5.1lf%s"
+  </DEF>
+</Graph>
+
+<Graph>
+  Host "/any/"
   Plugin "load"
   PluginInstance ""
   Type "load"
   <DEF>
     DSName "shortterm"
     Legend " 1m "
-    Color "00ff00"
+    Color "00e000"
   </DEF>
 </Graph>
 
 
 <Graph>
   Host "/any/"
+  Plugin "mysql"
+  PluginInstance ""
+  Type "mysql_commands"
+  TypeInstance "/all/"
+
+  Title "MySQL commands"
+  VerticalLabel "Invocations"
+
+  <DEF>
+    DSName "value"
+    #Legend "Paging  "
+    #Color "ffb000"
+  </DEF>
+</Graph>
+
+<Graph>
+  Host "/any/"
+  Plugin "ping"
+  PluginInstance ""
+  Type "ping"
+  TypeInstance "/any/"
+
+  Title "Ping (Latency)"
+  VerticalLabel "Seconds"
+
+  <DEF>
+    # v5: DSName "value"
+    DSName "ping"
+    Legend "Ping"
+    Color "0000ff"
+  </DEF>
+</Graph>
+
+<Graph>
+  Host "/any/"
+  Plugin "ping"
+  PluginInstance ""
+  Type "ping_droprate"
+  TypeInstance "/any/"
+
+  Title "Drop rate"
+  VerticalLabel "Rate"
+
+  <DEF>
+    DSName "value"
+    Legend "Rate"
+    Color "0000ff"
+  </DEF>
+</Graph>
+
+<Graph>
+  Host "/any/"
+  Plugin "ping"
+  PluginInstance ""
+  Type "ping_stddev"
+  TypeInstance "/any/"
+
+  Title "Standard deviation (ping)"
+  VerticalLabel "Std. deviation"
+
+  <DEF>
+    DSName "value"
+    Legend "Std. dev."
+    Color "0000ff"
+  </DEF>
+</Graph>
+
+<Graph>
+  Host "/any/"
   Plugin "processes"
   PluginInstance ""
   Type "ps_state"
 
   Title "Swap utilization"
   VerticalLabel "Bytes"
+
+  <DEF>
+    TypeInstance "free"
+    DSName "value"
+    Legend "Free  "
+    Color "00e000"
+    Area true
+    Stack true
+    Format "%5.1lf%s"
+  </DEF>
+  <DEF>
+    TypeInstance "cached"
+    DSName "value"
+    Legend "Cached"
+    Color "ffb000"
+    Area true
+    Stack true
+    Format "%5.1lf%s"
+  </DEF>
+  <DEF>
+    TypeInstance "used"
+    DSName "value"
+    Legend "Used  "
+    Color "ff0000"
+    Area true
+    Stack true
+    Format "%5.1lf%s"
+  </DEF>
+</Graph>
+
+<Graph>
+  Host "/any/"
+  Plugin "swap"
+  PluginInstance ""
+  Type "swap_io"
+  TypeInstance "/all/"
+
+  Title "Swap I/O"
+  VerticalLabel "Pages/s"
+
+  <DEF>
+    TypeInstance "in"
+    DSName "value"
+    Legend "In "
+    Color "0000ff"
+    Format "%5.1lf"
+  </DEF>
+  <DEF>
+    TypeInstance "out"
+    DSName "value"
+    Legend "Out"
+    Color "00bf00"
+    Format "%5.1lf"
+  </DEF>
+</Graph>
+
+<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"
+  TypeInstance ""
+
+  Title "Users"
+  VerticalLabel "Users"
+
+  <DEF>
+    DSName "users"
+    Legend "Users"
+    Color "0000ff"
+  </DEF>
+</Graph>
+
+<Graph>
+  Host "/any/"
+  Plugin "terminal_services"
+  PluginInstance ""
+  Type "users"
+  TypeInstance "/all/"
+
+  Title "Users (Terminal Services)"
+  VerticalLabel "Users"
+
+  <DEF>
+    TypeInstance "active"
+    DSName "users"
+    Legend "Active  "
+    Color "ff0000"
+  </DEF>
+  <DEF>
+    TypeInstance "inactive"
+    DSName "users"
+    Legend "Inactive"
+    Color "0000ff"
+  </DEF>
+</Graph>
+
+<Graph>
+  Host "/any/"
+  Plugin "/any/"
+  PluginInstance "/any/"
+  Type "current"
+  TypeInstance "/any/"
+
+  Title "Current"
+  VerticalLabel "Amperes"
+
+  <DEF>
+    DSName "value"
+    Legend "Current"
+    Color "0000ff"
+  </DEF>
+</Graph>
+
+<Graph>
+  Host "/any/"
+  Plugin "/any/"
+  PluginInstance "/any/"
+  Type "power"
+  TypeInstance "/any/"
+
+  Title "Power"
+  VerticalLabel "Watts"
+
+  <DEF>
+    DSName "value"
+    Legend "Power"
+    Color "0000ff"
+  </DEF>
+</Graph>
+
+<Graph>
+  Host "/any/"
+  Plugin "/any/"
+  PluginInstance "/any/"
+  Type "temperature"
+  TypeInstance "/any/"
+
+  Title "Temperature"
+  VerticalLabel "Deg Celsius"
+
+  <DEF>
+    DSName "value"
+    Legend "Temperature"
+    Color "0000ff"
+  </DEF>
+</Graph>
+
+<Graph>
+  Host "/any/"
+  Plugin "/any/"
+  PluginInstance "/any/"
+  Type "voltage"
+  TypeInstance "/any/"
+
+  Title "Voltage"
+  VerticalLabel "Volts"
+
+  <DEF>
+    DSName "value"
+    Legend "Voltage"
+    Color "0000ff"
+  </DEF>
+</Graph>
+
+<Graph>
+  Host "/any/"
+  Plugin "/any/"
+  PluginInstance "/any/"
+  Type "work"
+  TypeInstance "/any/"
+
+  Title "Work"
+  #VerticalLabel ""
+
+  <DEF>
+    DSName "value"
+    Legend "Work"
+    Color "0000ff"
+  </DEF>
 </Graph>