Skip to content

Commit

Permalink
Merge pull request #1558 from ktsaou/master
Browse files Browse the repository at this point in the history
rewrite of /proc/net/dev for speed
  • Loading branch information
ktsaou committed Jan 12, 2017
2 parents 5dcbfa2 + e3b1074 commit 1a298d0
Show file tree
Hide file tree
Showing 3 changed files with 314 additions and 170 deletions.
14 changes: 6 additions & 8 deletions conf.d/health.d/haproxy.conf
@@ -1,19 +1,19 @@
template: haproxy_backend_server_status
template: haproxy_backend_server_status
on: haproxy_hs.down
units: failed servers
every: 10s
lookup: average -10s
lookup: average -10s
crit: $this > 0
info: Some of your backend servers is down!
info: number of failed haproxy backend servers
to: sysadmin

template: haproxy_backend_status
template: haproxy_backend_status
on: haproxy_hb.down
units: failed backend
every: 10s
lookup: average -10s
lookup: average -10s
crit: $this > 0
info: Some of your backends is down!
info: number of failed haproxy backends
to: sysadmin

template: haproxy_last_collected
Expand All @@ -25,5 +25,3 @@ template: haproxy_last_collected
crit: $this > (($status == $CRITICAL) ? ($update_every) : (60 * $update_every))
info: number of seconds since the last successful data collection
to: sysadmin


7 changes: 7 additions & 0 deletions configs.signatures
Expand Up @@ -30,7 +30,9 @@ declare -A configs_signatures=(
['15d8401b56a74120f9f832873ec9c578']='health.d/postgres.conf'
['15e32114994b92be7853b88091e7c6fb']='python.d/exim.conf'
['174c21a6ce5de97bda83d502aa47a9f8']='health.d/apache.conf'
['178281aa2241d4a3e6b798bb9c4ae577']='python.d/haproxy.conf'
['18ee1c6197a4381b1c1631ef6129824f']='apps_groups.conf'
['1972e48345e6c3f0d65f94a03317622b']='health_alarm_notify.conf'
['1c12b678ab65f271a96da1bbd0a1ab1c']='health.d/softnet.conf'
['1ea8e8ef1fa8a3a0fcdfba236f4cb195']='python.d/mysql.conf'
['1ef0fd38e7969c023bc3fa6d89eaf6d6']='python.d/mdstat.conf'
Expand Down Expand Up @@ -243,16 +245,20 @@ declare -A configs_signatures=(
['a8bb4e1d0525f59692778ad8f675a77a']='python.d/example.conf'
['a8feb36776005bf419c90278787a1be8']='health.d/entropy.conf'
['a94af1c808aafdf00537d85ff2197ec8']='python.d/exim.conf'
['a9ab68845db2fb695b7060273a6ac68e']='health_alarm_notify.conf'
['a9cd91675467c5426f5b51c47602c889']='apps_groups.conf'
['aa4bee249bfc0c4a88ac8c2ffb97aa0d']='health.d/squid.conf'
['aa8b57a733c2035917acf81a8ebdfbe7']='health.d/haproxy.conf'
['abaf2e021f9f6ee5d1c4e4726f47348e']='health.d/ipc.conf'
['acaa6731a272f6d251afb357e99b518f']='apps_groups.conf'
['ade389c1b6efe0cff47c33e662731f0a']='python.d/squid.conf'
['ae5ac0a3521e50aa6f6eda2a330b4075']='python.d/example.conf'
['af44cc53aa2bc5cc8935667119567522']='python.d.conf'
['afdae4646c755ff2d117527fbf761c8e']='health.d/disks.conf'
['b07eebc6f58d19721ac069171b911d2a']='health_alarm_notify.conf'
['b0c59b2bd7a10f6a3f2be6b4b27857db']='health.d/haproxy.conf'
['b0f0a0ac415e4b1a82187b80d211e83b']='python.d/mysql.conf'
['b185914d4f795e1732273dc4c7a35845']='health.d/memory.conf'
['b27f10a38a95edbbec20f44a4728b7c4']='python.d.conf'
['b32164929eda7449a9677044e11151bf']='python.d.conf'
['b3fc4749b132e55ac0d3a0f92859237e']='health.d/tcp_resets.conf'
Expand Down Expand Up @@ -288,6 +294,7 @@ declare -A configs_signatures=(
['cd08e5534c94bf1f2cd28396c76b8bbc']='health.d/ram.conf'
['ce2e8768964a936f58c4c2144aee8a01']='health_alarm_notify.conf'
['ce3b65eac6c472b21905f7f72104f4c9']='python.d/nginx.conf'
['cf48dfd828af70bea04db7a809f94358']='health.d/haproxy.conf'
['cfecf298bdafaa7e0a3a263548e82132']='python.d/sensors.conf'
['d11711b3647bc2bdd0292dd7deebbeb1']='health.d/net.conf'
['d1596fe068c8674efade49a4a8e22b5d']='health.d/isc_dhcpd.conf'
Expand Down

0 comments on commit 1a298d0

Please sign in to comment.