#
# Some general defaults
#

shortInterval=600
longInterval=1800
shortDeadTime=2400
longDeadTime=7200

#
# Set custom intervals and custom graph definitions in 
# graphtemplates.local
#
include graphtemplates.local



#
# graph disk usage
#

graph disk

input disk.fs.(.*).usage
value-identifier $HOST.$GRAPH.$partition
value-type gauge
consolidate average
input-limits 0..100
input-interval $longInterval
input-deadtime $longDeadTime
input-var partition disk.fs.$GROUP.mount

include ALL
exclude SOME
include test

graph-id $HOST.$GRAPH
legend $partition

maxcombine 4
scale 0..100
unit-label %
size 400x120
format png
title Disk Usage on $HOST


#
# NT disk usage
#

graph ntdisk

input perflib.LogicalDisk.(.*).%_Free_Space
value-identifier $HOST.$GRAPH.$partition
value-type gauge
consolidate average
input-limits 0..100
input-interval $longInterval
input-deadtime $longDeadTime
input-var partition perflib.LogicalDisk.$GROUP.InstanceName

graph-id $HOST.disk
legend disk $partition

maxcombine 4
scale 0..100
unit-label %
size 400x120
title Disk Usage on $HOST


#
# number of processes in process table
#

graph processtable

input procs.processes
value-type gauge
input-interval $shortInterval
input-deadtime $shortDeadTime

legend processes
size 400x120
title Number of Processes
Procs in table


#
# system load
#

graph cpuload

input cpu.load.uptime.0
value-type gauge
input-interval $shortInterval
input-deadtime $shortDeadTime

legend load
size 400x120
title CPU Load
unit-label Procs on CPU


#
# sar CPU data
#

graph saridle

input sar.%idle
value-type gauge
input-limits 0..100
input-interval $shortInterval
input-deadtime $shortDeadTime

graph-id $HOST.cpu
legend idle

maxcombine 4
scale 0..100
unit-label %
size 400x120
title CPU Usage on $HOST


graph sarsys

input sar.%sys
value-type gauge
input-limits 0..100
input-interval $shortInterval
input-deadtime $shortDeadTime

graph-id $HOST.cpu
legend sys

maxcombine 4
scale 0..100
unit-label %
size 400x120
title CPU Usage on $HOST



graph sarwio

input sar.%wio
value-type gauge
input-limits 0..100
input-interval $shortInterval
input-deadtime $shortDeadTime

graph-id $HOST.cpu
legend I/O-wait

maxcombine 4
scale 0..100
unit-label %
size 400x120
title CPU Usage on $HOST


graph saruser

input sar.%user
value-type gauge
input-limits 0..100
input-interval $shortInterval
input-deadtime $shortDeadTime

graph-id $HOST.cpu
legend User

maxcombine 4
scale 0..100
unit-label %
size 400x120
title CPU Usage on $HOST


graph sardiskbusy

input sar.%busy
value-type gauge
input-limits 0..100
input-interval $shortInterval
input-deadtime $shortDeadTime

graph-id $HOST.cpu
legend Disk Busy

maxcombine 4
scale 0..100
unit-label %
size 400x120
title CPU Usage on $HOST


graph sarfreeswap

input sar.freeswap
value-type gauge
input-interval $shortInterval
input-deadtime $shortDeadTime

graph-id $HOST.swap
legend Free Swap

maxcombine 4
unit-label Pages
unit-base 1000
size 400x120
title Swap Usage on $HOST


#
# PerfLib
#

graph plibProcTime

input perflib.Processor.([0-9]+).%_Processor_Time
value-type gauge
input-limits 0..100
input-interval $shortInterval
input-deadtime $shortDeadTime
input-var cpuname perflib.Processor.$GROUP.InstanceName

graph-id $HOST.cpu
legend cpu $cpuname busy

maxcombine 4
scale 0..100
unit-label %
size 400x120
title CPU Usage on $HOST


graph plibmemcommitted

input perflib.Memory.0.%_Committed_Bytes_In_Use
value-type gauge
input-limits 0..100
input-interval $shortInterval
input-deadtime $shortDeadTime

graph-id $HOST.cpu
legend Committed Mem in Use

maxcombine 4
scale 0..100
unit-label %
size 400x120
title CPU Usage on $HOST


graph plibmemfree

input perflib.Memory.0.Available_Bytes
value-type gauge
input-interval $shortInterval
input-deadtime $shortDeadTime

graph-id $HOST.memory
legend Available Mem

maxcombine 4
unit-label Byte
unit-base 1024
size 400x120
title Memory Usage on $HOST


graph plibDiskbusy

input perflib.LogicalDisk.(.*).%_Disk_Time
value-identifier $HOST.$GRAPH.$partition
value-type gauge
consolidate average
input-limits 0..100
input-interval $shortInterval
input-deadtime $shortDeadTime
input-var partition perflib.LogicalDisk.$GROUP.InstanceName

graph-id $HOST.cpu
legend disk $partition

maxcombine 4
scale 0..100
unit-label %
size 400x120
title CPU Usage on $HOST


#
# Linux Meminfo
#

graph lxSwapFreePC

input linux.meminfo.%SwapFree
value-type gauge
input-limits 0..100
input-interval $shortInterval
input-deadtime $shortDeadTime

graph-id $HOST.cpu
legend Free Swap

maxcombine 4
scale 0..100
unit-label %
size 400x120
title CPU Usage on $HOST


graph lxSwapFree

input linux.meminfo.SwapFree
value-type gauge
input-interval $shortInterval
input-deadtime $shortDeadTime

graph-id $HOST.memory
legend Free Swap

maxcombine 4
unit-label Byte
unit-base 1024
size 400x120
title Memory Usage on $HOST


graph lxMemFree

input linux.meminfo.MemFree
value-type gauge
input-interval $shortInterval
input-deadtime $shortDeadTime

graph-id $HOST.memory
legend Free Mem

maxcombine 4
unit-label Byte
unit-base 1024
size 400x120
title Memory Usage on $HOST


graph lxCached

input linux.meminfo.Cached
value-type gauge
input-interval $shortInterval
input-deadtime $shortDeadTime

graph-id $HOST.memory
legend Cached

maxcombine 4
unit-label Byte
unit-base 1024
size 400x120
title Memory Usage on $HOST



#
# NT network stats
#

graph ntnet_received

input perflib.Network_Interface.(.*).Bytes_Received.sec
value-identifier $HOST.$GRAPH.netbin.$interface
value-type gauge
consolidate average
input-interval $shortInterval
input-deadtime $shortDeadTime
input-var interface perflib.Network_Interface.$GROUP.InstanceName

graph-id $HOST.netbytes
legend Interface $interface in

maxcombine 4
unit-label Byte/s
unit-base 1024
size 400x120
title Interface Usage



graph ntnet_sent

input perflib.Network_Interface.(.*).Bytes_Sent.sec
value-identifier $HOST.$GRAPH.netbout.$interface
value-type gauge
consolidate average
input-interval $shortInterval
input-deadtime $shortDeadTime
input-var interface perflib.Network_Interface.$GROUP.InstanceName

graph-id $HOST.netbytes
legend Interface $interface out

maxcombine 4
unit-label Byte/s
unit-base 1024
size 400x120
title Interface Usage


graph ntnet_packetsent

input perflib.Network_Interface.(.*).Packets_Sent.sec
value-identifier $HOST.$GRAPH.pkgsout.$interface
value-type gauge
consolidate average
input-interval $shortInterval
input-deadtime $shortDeadTime
input-var interface perflib.Network_Interface.$GROUP.InstanceName

graph-id $HOST.packets
legend Interface $interface out

maxcombine 4
unit-label Packets/s
unit-base 1000
size 400x120
title Interface Usage (packets)



graph ntnet_packetreceived

input perflib.Network_Interface.(.*).Packets_Received.sec
value-identifier $HOST.$GRAPH.pkgsin.$interface
value-type gauge
consolidate average
input-interval $shortInterval
input-deadtime $shortDeadTime
input-var interface perflib.Network_Interface.$GROUP.InstanceName

graph-id $HOST.packets
legend Interface $interface in

maxcombine 4
unit-label Packets/s
unit-base 1000
size 400x120
title Interface Usage (packets)


#
# UPS
#

graph upsload

input snmp.upsOutputPercentLoad.(.*)
value-type gauge
input-limits 0..100
input-interval $longInterval
input-deadtime $longDeadTime

graph-id $HOST.$GRAPH
legend line $GROUP

maxcombine 4
scale 0..100
unit-label %
size 400x120
format png
title UPS load on $HOST


#
#
graph upsbatteryvoltage

input snmp.upsBatteryVoltage.(.*)
value-type gauge
input-interval $longInterval
input-deadtime $longDeadTime

legend Battery $GROUP
size 400x120
title Battery Voltage on $HOST
unit-label 0.1 Volt DC

#
#
graph upsoutpower

input snmp.upsOutputPower.(.*)
value-type gauge
input-interval $longInterval
input-deadtime $longDeadTime

legend output $GROUP
size 400x120
title Output Power on $HOST
unit-label W


#
#
graph upslinebad

input snmp.upsInputLineBads.(.*)
value-type gauge
input-interval $longInterval
input-deadtime $longDeadTime

legend line bads on line $GROUP
size 400x120
title Line Bads on $HOST
unit-label number of line bads



#########################
graph plibUserTime
#########################

input perflib.Processor.([0-9]+).%_User_Time
value-type gauge
input-limits 0..100
input-interval $shortInterval
input-deadtime $shortDeadTime
input-var cpuname perflib.Processor.$GROUP.InstanceName

graph-id $HOST.cpu
legend % cpu $cpuname user

maxcombine 4
scale 0..100
unit-label %
size 400x120
title CPU Usage on $HOST

#########################
graph plibUserTime
#########################

input perflib.Processor.([0-9]+).%_Interrupt_Time
value-type gauge
input-limits 0..100
input-interval $shortInterval
input-deadtime $shortDeadTime
input-var cpuname perflib.Processor.$GROUP.InstanceName

graph-id $HOST.cpu
legend % cpu $cpuname Intr.

maxcombine 4
scale 0..100
unit-label %
size 400x120
title CPU Usage on $HOST

#########################
graph plibPriviledgeTime
#########################

input perflib.Processor.([0-9]+).%_Privileged_Time
value-type gauge
input-limits 0..100
input-interval $shortInterval
input-deadtime $shortDeadTime
input-var cpuname perflib.Processor.$GROUP.InstanceName

graph-id $HOST.cpu
legend % cpu $cpuname Priv.

maxcombine 4
scale 0..100
unit-label %
size 400x120
title CPU Usage on $HOST

#########################
graph plibDPCTime
#########################

input perflib.Processor.([0-9]+).%_DPC_Time
value-type gauge
input-limits 0..100
input-interval $shortInterval
input-deadtime $shortDeadTime
input-var cpuname perflib.Processor.$GROUP.InstanceName

graph-id $HOST.cpu
legend % cpu $cpuname DPC.

maxcombine 4
scale 0..100
unit-label %
size 400x120
title CPU Usage on $HOST

