X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/5605725ebe2c70ecd3d07353e1c51c320642cdf3..3d965df4c23e5dbd0954f5ec0747851de361313a:/munin/nominatim_importlag?ds=sidebyside diff --git a/munin/nominatim_importlag b/munin/nominatim_importlag index 657938db..9f401311 100755 --- a/munin/nominatim_importlag +++ b/munin/nominatim_importlag @@ -2,6 +2,9 @@ # # Plugin to monitor the age of the imported data in the rendering db # +# Can be configured through libpq environment variables, for example +# PGUSER, PGDATABASE, etc. See man page of psql for more information +# # Parameters: # # config (required) @@ -21,7 +24,7 @@ if [ "$1" = "config" ]; then fi -delay=`psql -d nominatim -c 'copy (select extract(epoch from timezone('utc', now())-lastimportdate)::int from import_status) to stdout'` +delay=`psql -c "copy (select extract(epoch from timezone('utc', now())-lastimportdate)::int from import_status) to stdout"` echo "age.value $delay"