sample-config: add Icinga2 templates

This commit is contained in:
Thomas Gelf 2016-02-16 14:49:34 +01:00
parent 2b29640d5b
commit 877739c23e
27 changed files with 111 additions and 2 deletions

View file

@ -1,3 +1,2 @@
[global]
[graphite]
web_url = http://my.graphite.web
host_pattern = base.$osfamily.$osversion.$customer_type.$customer.$hostgroup.$hostname

View file

@ -0,0 +1,5 @@
[templateset]
name = "Collectd (Sample)"
[patterns]
host = base.$osfamily.$osversion.$customer_type.$customer.$hostgroup.$hostname

View file

@ -0,0 +1,10 @@
title = Disk $disk
filter = $icingaService.disk.perfdata.$disk
yUnitSystem = si
min = 0
areaMode = all
max : color=#44bb77, alias=Size
value : color=#ffaa44, alias=Used

View file

@ -0,0 +1,11 @@
title = Host alive
filter = $icingaHost.hostalive.perfdata
min = 0
yUnitSystem = msec
areaMode = all
areaAlpha = 0.4
rta.value : color=#44bb77, alias=Round trip time
pl.value : color=red, alias=Packet loss

View file

@ -0,0 +1,9 @@
title = HTTP response size
filter = $icingaService.http.perfdata.size
areaMode = first
areaAlpha = 0.3
yUnitSystem = binary
min = 0
value : color=darkgreen, alias=Response size

View file

@ -0,0 +1,7 @@
title = HTTP response time
filter = $icingaService.http.perfdata.time
areaMode = first
areaAlpha = 0.3
value : color=orange, alias=Response time

View file

@ -0,0 +1,10 @@
title = Icinga services
filter = $icingaService.icinga.perfdata
areaMode = stacked
areaAlpha = 0.6
lineWidth = 0
num_services_ok.value : color=green, alias=Services OK
num_services_warning.value : color=orange, alias=Services Warning
num_services_critical.value : color=red, alias=Services Critical

View file

@ -0,0 +1,10 @@
title = Load
filter = $icingaService.load.perfdata
areaMode = first
areaAlpha = 0.3
#max = 16
load1.value : color=yellow, alias=Load 1
load5.value : color=orange, alias=Load 5
load15.value: color=red, alias=Load 15

View file

@ -0,0 +1,10 @@
title = Ping
filter = $icingaService.ping4.perfdata
min = 0
areaMode = all
areaAlpha = 0.4
rta.value : color=#44bb77, alias=Round trip time
pl.value : color=red, alias=Packet loss

View file

@ -0,0 +1,8 @@
title = Process count
filter = $icingaService.procs.perfdata.procs
areaMode = first
areaAlpha = 0.3
min = 0
value : color=blue, alias=Process count

View file

@ -0,0 +1,8 @@
title = Service response times
filter = $icingaService
min = 0
ssh.perfdata.time.value : color=red, alias=SSH
http.perfdata.time.value : color=blue, alias=HTTP
ping4.perfdata.rta.value : color=green, alias=Ping

View file

@ -0,0 +1,8 @@
title = SSH response time
filter = $icingaService.ssh.perfdata.time
areaMode = first
areaAlpha = 0.3
min = 0
value : color=red, alias=Response time

View file

@ -0,0 +1,7 @@
title = Swap
filter = $icingaService.swap.perfdata.swap
areaMode = stacked
yUnitSystem = binary
value : color=red, alias=Used swap space

View file

@ -0,0 +1,7 @@
[templateset]
name = "Icinga 2"
[patterns]
icingaHost = icinga2.$hostname.host
icingaService = icinga2.$hostname.services.$service