Skip to content

Commit

Permalink
Allow overriding Munin script URLs with an environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
hummeltech committed Mar 24, 2024
1 parent 743cf65 commit 40bf4e7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion utils/munin/mod_tile_fresh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ if [ "$1" = "config" ]; then
exit 0
fi

data=$(wget -q http://localhost/mod_tile -O -)
data=$(wget -q ${MOD_TILE_URL:-http://localhost/mod_tile} -O -)

fresh=$(expr match "$data" '.*NoFreshCache: \([0-9]*\)')
freshRender=$(expr match "$data" '.*NoFreshRender: \([0-9]*\)')
Expand Down
2 changes: 1 addition & 1 deletion utils/munin/mod_tile_latency
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ fi

#MUNIN_STATEFILE=latency.state

data=$(wget -q http://localhost/mod_tile -O -)
data=$(wget -q ${MOD_TILE_URL:-http://localhost/mod_tile} -O -)

totalDuration=$(expr match "$data" '.*DurationTileBufferReads: \([0-9]*\)')
noTotal=$(expr match "$data" '.*NoTileBufferReads: \([0-9]*\)')
Expand Down
2 changes: 1 addition & 1 deletion utils/munin/mod_tile_response
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ if [ "$1" = "config" ]; then
exit 0
fi

data=$(wget -q http://localhost/mod_tile -O -)
data=$(wget -q ${MOD_TILE_URL:-http://localhost/mod_tile} -O -)

ok_resp=$(expr match "$data" '.*NoResp200: \([0-9]*\)')
nm_resp=$(expr match "$data" '.*NoResp304: \([0-9]*\)')
Expand Down
2 changes: 1 addition & 1 deletion utils/munin/mod_tile_zoom
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ if [ "$1" = "config" ]; then
exit 0
fi

data=$(wget -q http://localhost/mod_tile -O -)
data=$(wget -q ${MOD_TILE_URL:-http://localhost/mod_tile} -O -)

resp_0=$(expr match "$data" '.*NoRespZoom00: \([0-9]*\)')
resp_1=$(expr match "$data" '.*NoRespZoom01: \([0-9]*\)')
Expand Down

0 comments on commit 40bf4e7

Please sign in to comment.