[DEFAULT] # The webpage will be available at http://this.host.ip.address:PORT PORT=8080 # The webpage will be updated every REFRESH_SECONDS. Set to 0 to disable autorefresh. REFRESH_SECONDS=1 #### SENSORS #### # Every sensor value is obtained on a command being executed, its result being parsed with a regexp # to extract (as a single group) the numeric or string value, and the value being used to plot the # graph. This sensor definitions are ready to be used, just enable the ones you need. # You can add your own declaring another section like this: # # [my_sensor] # DISABLED=False # COMMAND=/my/custom/binary --with parameters # REGEXP=my regex to parse (awesome|disappointing) command output # TYPE=TIMEGRAPH # May also be GRAPH or ERROR [system_load_1min] # The system load average in the last minute DISABLED=True COMMAND=uptime REGEXP=.*load average: (\d+[,.]\d+), \d+[,.]\d+, \d+[,.]\d+ TYPE=TIMEGRAPH [system_load_5min] # The system load average in the last 5 minutes DISABLED=True COMMAND=uptime REGEXP=.*load average: \d+[,.]\d+, (\d+[,.]\d+), \d+[,.]\d+ TYPE=TIMEGRAPH [system_load_15min] # The system load average in the last 15 minutes DISABLED=True COMMAND=uptime REGEXP=.*load average: \d+[,.]\d+, \d+[,.]\d+, (\d+[,.]\d+) TYPE=TIMEGRAPH [used_disk_space] # Used disk space in percent DISABLED=True COMMAND=df -h /dev/sda1 REGEXP=(\d{1,3})% TYPE=GRAPH [raid_status] # Raid status DISABLED=True COMMAND=cat /proc/mdstat REGEXP=.*\] \[([U_]+)\]\n TYPE=ERROR [laptop_charger_disconnected] # Laptop charger disconnected # For laptops used as servers, apparently common among the self hosters. Requires acpi package installed. DISABLED=True COMMAND=acpi -a REGEXP=Adapter \d: (.+) TYPE=ERROR [free_ram] # Free ram in % # Shows another approach: does all the computation in the command and picks up # all the output (by not declaring a regexp). DISABLED=True COMMAND=free | grep Mem | awk '{print int($4/$2 * 100.0)}' TYPE=TIMEGRAPH [available_ram] # Like Free ram, but shows available instead of free. You may want to use this if you use a memcache. DISABLED=True COMMAND=free | grep Mem | awk '{print int($7/$2 * 100.0)}' TYPE=TIMEGRAPH [cpu_temperature] # CPU Temperature alarm: requires lm-sensors installed and configured (check your distribution's guide) # The regexp must be adapted to your configuration: run `sensors` in the command line # to find the name of the temperature sensor in your system. In this case is `Core 0`, # but may be called Tdie or a lot of different names, there is no standard. DISABLED=True COMMAND=sensors REGEXP=Core 0: +\+?(-?\d{1,3}).\d°[CF] TYPE=TIMEGRAPH [fan_speed] # Fan speed alarm: requires lm-sensors installed and configured (check your distribution's guide) # The regexp must be adapted to your configuration: run `sensors` in the command line # to find the name of the fan speed sensor in your system. DISABLED=True COMMAND=sensors REGEXP=cpu_fan: +(\d) RPM TYPE=TIMEGRAPH