mirror of
https://github.com/Icinga/icingaweb2-module-graphite.git
synced 2026-06-09 08:51:21 -04:00
parent
1b8e84e674
commit
6978dcf0c9
27 changed files with 4 additions and 250 deletions
21
README.md
21
README.md
|
|
@ -44,8 +44,7 @@ values or similar.
|
|||
|
||||
Just extract/clone this module to a `graphite` subfolder in your Icinga
|
||||
Web 2 module path. Enable the graphite module in your Icinga Web 2 frontend
|
||||
(Configuration -> Modules -> graphite -> enable) and it should work out of
|
||||
the box.
|
||||
(*Configuration* > *Modules* > *graphite* > *enable*).
|
||||
|
||||
NB: It is best practice to install 3rd party modules into a distinct module
|
||||
folder for example `/usr/share/icingaweb2/modules`. In case you don't know where this
|
||||
|
|
@ -53,21 +52,9 @@ might be please check the module path in your Icinga Web 2 configuration.
|
|||
|
||||
## Configuration
|
||||
|
||||
Copy the sample configuration to `/etc/icingaweb2/modules` like so:
|
||||
|
||||
mkdir -p /etc/icingaweb2/modules/graphite
|
||||
cp -rv sample-config/icinga2/* /etc/icingaweb2/modules/graphite
|
||||
|
||||
Change permissions:
|
||||
|
||||
chown -R root:icingaweb2 /etc/icingaweb2/modules/graphite
|
||||
chmod -R 2755 /etc/icingaweb2/modules/graphite
|
||||
|
||||
Edit `/etc/icingaweb2/modules/graphite/config.ini` and set `web\_url`
|
||||
to the Graphite web host.
|
||||
|
||||
[graphite]
|
||||
web_url = http://my.graphite.web
|
||||
Open Icinga Web 2 (web UI) and navigate to *Configuration* > *Modules* >
|
||||
*graphite* > *Backend*. Fill in the Graphite Web root URL
|
||||
(e.g. `http://192.0.2.1:8003/`) and the HTTP basic auth credentials (if any).
|
||||
|
||||
You don't need any configuration in your Icinga 2 installation (e.g.
|
||||
additional custom vars).
|
||||
|
|
|
|||
|
|
@ -1,2 +0,0 @@
|
|||
[graphite]
|
||||
web_url = http://my.graphite.web
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
title = Disk $disk
|
||||
filter = $icingaService.disk.perfdata.$disk
|
||||
yUnitSystem = si
|
||||
min = 0
|
||||
areaMode = all
|
||||
|
||||
max : color=#44bb77, alias=Size
|
||||
value : color=#ffaa44, alias=Used
|
||||
|
||||
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
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
|
||||
|
||||
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
title = HTTP response size
|
||||
filter = $icingaService.http.perfdata.size
|
||||
areaMode = first
|
||||
areaAlpha = 0.3
|
||||
yUnitSystem = binary
|
||||
min = 0
|
||||
|
||||
value : color=darkgreen, alias=Response size
|
||||
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
title = HTTP response time
|
||||
filter = $icingaService.http.perfdata.time
|
||||
areaMode = first
|
||||
areaAlpha = 0.3
|
||||
|
||||
value : color=orange, alias=Response time
|
||||
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
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
|
||||
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
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
|
||||
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
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
|
||||
|
||||
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
title = Process count
|
||||
filter = $icingaService.procs.perfdata.procs
|
||||
areaMode = first
|
||||
areaAlpha = 0.3
|
||||
min = 0
|
||||
|
||||
value : color=blue, alias=Process count
|
||||
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
title = SSH response time
|
||||
filter = $icingaService.ssh.perfdata.time
|
||||
areaMode = first
|
||||
areaAlpha = 0.3
|
||||
min = 0
|
||||
|
||||
value : color=red, alias=Response time
|
||||
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
title = Swap
|
||||
filter = $icingaService.swap.perfdata.swap
|
||||
areaMode = stacked
|
||||
yUnitSystem = binary
|
||||
|
||||
value : color=red, alias=Used swap space
|
||||
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
[templateset]
|
||||
name = "Icinga 2"
|
||||
|
||||
[patterns]
|
||||
icingaHost = icinga2.$hostname.host
|
||||
icingaService = icinga2.$hostname.services.$service
|
||||
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
title = Apache Scoreboard
|
||||
filter = $host.apache.$apache_host.apache_scoreboard
|
||||
areaMode = stacked
|
||||
|
||||
open : color=green, alias=Open slot (no process)
|
||||
waiting : color=darkgreen, alias=Waiting for Connection
|
||||
starting : color=gray, alias=Starting up
|
||||
reading : color=aqua, alias=Reading Request
|
||||
sending : color=rose, alias=Sending Reply
|
||||
keepalive : color=blue, alias=KeepAlive (read)
|
||||
dnslookup : color=red, alias=DNS Lookup
|
||||
closing : color=darkred, alias=Closing connection
|
||||
logging : color=orange, alias=Logging
|
||||
finishing : color=gray, alias=Gracefully finishing
|
||||
idle_cleanup : color=gray, alias=Idle cleanup of worker
|
||||
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
title = CPU $cpu
|
||||
filter = $host.cpu.$cpu.cpu
|
||||
max = 100
|
||||
areaMode = stacked
|
||||
lineWidth = 1
|
||||
|
||||
idle : color=#44bb77, alias=Idle
|
||||
nice : color=gray, alias=Nice
|
||||
user : color=yellow, alias=User
|
||||
system : color=orange, alias=System
|
||||
wait : color=brown, alias=Wait
|
||||
reading : color=aqua, alias=Reading
|
||||
steal : color=blue, alias=Steal
|
||||
softirq : color=red, alias=Soft IRQ
|
||||
interrupt : color=purple, alias=Interrupt
|
||||
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
title = Disk $disk
|
||||
filter = $host.df.$disk.df_complex
|
||||
areaMode = stacked
|
||||
yUnitSystem = si
|
||||
|
||||
free : color=#44bb77, alias=Free
|
||||
reserved : color=yellow, alias=Reserved
|
||||
used : color=#ffaa44, alias=Used
|
||||
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
title = Disk operations $disk
|
||||
filter = $host.disk.$disk.disk_ops
|
||||
|
||||
read : color=green, alias=Read
|
||||
write : color=blue, alias=Write
|
||||
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
title = Interface $interface
|
||||
filter = $host.interface.$interface.if_octets
|
||||
yUnitSystem = binary
|
||||
|
||||
rx : color=green, scale=8, alias=bit/s in
|
||||
tx : color=blue, scale=8, alias=bit/s out
|
||||
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
title = Load
|
||||
filter = $host.load
|
||||
|
||||
#max = 16
|
||||
shortterm: color=yellow, alias=Load 1
|
||||
midterm : color=orange, alias=Load 5
|
||||
longterm : color=red, alias=Load 15
|
||||
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
title = Memory
|
||||
filter = $host.memory
|
||||
areaMode = stacked
|
||||
yUnitSystem = binary
|
||||
|
||||
free : color=#44bb77, alias=Free
|
||||
cached : color=gray, alias=Cached
|
||||
buffered : color=darkgray, alias=Buffered
|
||||
used : color=orange, alias=Used
|
||||
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
title = MySQL Commands
|
||||
filter = $host.mysql.mysql_commands
|
||||
areaMode = stacked
|
||||
|
||||
select : color=green, alias=SELECT
|
||||
insert : color=aqua, alias=INSERT
|
||||
insert_select : color=blue, alias=INSERT ... SELECT
|
||||
update : color=yellow, alias=UPDATE
|
||||
update_multi : color=orange, alias=UPDATE (multi)
|
||||
delete : color=red, alias=DELETE
|
||||
drop_* : color=darkred, alias=DROP
|
||||
begin : color=darkgreen, alias=BEGIN
|
||||
commit : color=#44bb77, alias=COMMIT
|
||||
rollback : color=rose, alias=ROLLBACK
|
||||
show_* : color=gray, alias=SHOW
|
||||
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
title = MySQL Threads
|
||||
filter = $host.mysql.threads
|
||||
areaMode = stacked
|
||||
|
||||
cached : color=#44bb77, alias=Cached
|
||||
connected : color=yellow, alias=Connected
|
||||
running : color=orange, alias=Running
|
||||
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
title = Processes
|
||||
filter = $host.processes.ps_state
|
||||
areaMode = stacked
|
||||
lineWidth = 1
|
||||
|
||||
sleeping : color=#44bb77, alias=Sleeping
|
||||
running : color=yellow, alias=Running
|
||||
stopped : color=blue, alias=Stopped
|
||||
zombies : color=orange, alias=Zombies
|
||||
paging : color=red, alias=Paging
|
||||
blocked : color=purple, alias=Blocked
|
||||
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
title = Process Fork Rate
|
||||
filter = $host.processes
|
||||
lineWidth = 1
|
||||
|
||||
fork_rate : color=red, alias=Fork rate
|
||||
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
title = Swap
|
||||
filter = $host.swap
|
||||
areaMode = stacked
|
||||
yUnitSystem = binary
|
||||
|
||||
free : color=#44bb77, alias=Free
|
||||
cached : color=orange, alias=Cached
|
||||
used : color=red, alias=Used
|
||||
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
title = Swap I/O
|
||||
filter = $host.swap.swap_io
|
||||
|
||||
in : color=#44bb77, alias=In
|
||||
out : color=blue, alias=Out
|
||||
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[templateset]
|
||||
name = "Collectd (Sample)"
|
||||
|
||||
[patterns]
|
||||
host = base.$osfamily.$osversion.$customer_type.$customer.$hostgroup.$hostname
|
||||
Loading…
Reference in a new issue