From 5c43821ebe5de5892dcc4aa482d02c72e86bf637 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Wed, 1 Feb 2012 21:13:05 +0000 Subject: [PATCH 01/16] munin graph for the import lag --- munin/nominatim_importlag | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 munin/nominatim_importlag diff --git a/munin/nominatim_importlag b/munin/nominatim_importlag new file mode 100755 index 00000000..8d69f3ce --- /dev/null +++ b/munin/nominatim_importlag @@ -0,0 +1,27 @@ +#!/bin/sh +# +# Plugin to monitor the age of the imported data in the rendering db +# +# Parameters: +# +# config (required) +# autoconf (optional - used by munin-config) +# + +if [ "$1" = "config" ]; then + + echo 'graph_title Data import lag' + echo 'graph_args --base 1000 -l 0' + echo 'graph_vlabel minutes' + echo 'graph_category nominatim' + echo 'age.label DB import age' + echo 'age.type GAUGE' + echo 'age.cdef age,60,/' + exit 0 +fi + + +delay=`psql -d nominatim -c 'copy (select extract(epoch from now()-lastimportdate)::int from import_status) to stdout'` + + +echo "age.value $delay" -- 2.39.5 From d3c883f1b5e1db91997ec5c4fe4a631e7135dc3f Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Sat, 4 Feb 2012 07:53:02 +0000 Subject: [PATCH 02/16] remove trailing commas in HTML to make IE happy (thanks to TomH) --- lib/template/details-html.php | 4 ++-- lib/template/search-html.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/template/details-html.php b/lib/template/details-html.php index a02d3abf..721af44d 100644 --- a/lib/template/details-html.php +++ b/lib/template/details-html.php @@ -52,7 +52,7 @@ body { numZoomLevels: 19, units: 'm', projection: new OpenLayers.Projection("EPSG:900913"), - displayProjection: new OpenLayers.Projection("EPSG:4326"), + displayProjection: new OpenLayers.Projection("EPSG:4326") } ); map.addLayer(new OpenLayers.Layer.OSM.("Default")); @@ -69,7 +69,7 @@ body { fillColor: "#F0F7FF", strokeWidth: 2, strokeOpacity: 0.75, - fillOpacity: 0.75, + fillOpacity: 0.75 }; var proj_EPSG4326 = new OpenLayers.Projection("EPSG:4326"); var proj_map = map.getProjectionObject(); diff --git a/lib/template/search-html.php b/lib/template/search-html.php index f7013793..a9d328a8 100644 --- a/lib/template/search-html.php +++ b/lib/template/search-html.php @@ -290,7 +290,7 @@ form{ projection: new OpenLayers.Projection("EPSG:900913"), displayProjection: new OpenLayers.Projection("EPSG:4326"), eventListeners: { - "moveend": mapEventMove, + "moveend": mapEventMove } } ); map.addLayer(new OpenLayers.Layer.OSM.("Default")); -- 2.39.5 From c9d51fe7b8c915e898d95af57dc2c013b9cf84a0 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Sat, 4 Feb 2012 08:20:51 +0000 Subject: [PATCH 03/16] remove unused protolib --- lib/template/details-html.php | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/template/details-html.php b/lib/template/details-html.php index 721af44d..eca76c7e 100644 --- a/lib/template/details-html.php +++ b/lib/template/details-html.php @@ -33,7 +33,6 @@ body { -