mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-24 09:57:09 +00:00
Whitespace cleanup
* remove trailing whitespace * remove empty lines at the end of files
This commit is contained in:
parent
ef851f0c34
commit
17f784270a
604 changed files with 2927 additions and 2945 deletions
|
@ -14,7 +14,7 @@
|
|||
# st_last_received_event_ts: the timestamp on the sl_event in that pair
|
||||
# st_lag_num_events: difference between st_last_event and st_last_received
|
||||
# st_lag_time: difference between st_last_event_ts and st_last_received_ts
|
||||
#
|
||||
#
|
||||
#
|
||||
# Configuration variables:
|
||||
#
|
||||
|
@ -54,7 +54,7 @@ if [ "$1" = "config" ]; then
|
|||
echo "graph_title Slony lag events for ${PGDATABASE}"
|
||||
echo 'graph_vlabel event'
|
||||
|
||||
psql -h ${PGHOST} -d ${PGDATABASE} -U ${PGUSER} -tc "SELECT no_id,regexp_replace(pa_conninfo, '.*host=(.*?) .*$', '\\1') FROM ${PGSCHEMA}.sl_node JOIN ${PGSCHEMA}.sl_path ON (pa_server=no_id) WHERE pa_client=${PGSCHEMA}.getlocalnodeid('${PGSCHEMA}'::name);" | while read node_id sep host
|
||||
psql -h ${PGHOST} -d ${PGDATABASE} -U ${PGUSER} -tc "SELECT no_id,regexp_replace(pa_conninfo, '.*host=(.*?) .*$', '\\1') FROM ${PGSCHEMA}.sl_node JOIN ${PGSCHEMA}.sl_path ON (pa_server=no_id) WHERE pa_client=${PGSCHEMA}.getlocalnodeid('${PGSCHEMA}'::name);" | while read node_id sep host
|
||||
do
|
||||
test -z "${node_id}" && continue
|
||||
echo "${node_id}.label ${host}"
|
||||
|
@ -68,7 +68,7 @@ if [ "$1" = "config" ]; then
|
|||
fi
|
||||
|
||||
psql -h ${PGHOST} -d ${PGDATABASE} -U ${PGUSER} -tc "SELECT st_received, st_lag_num_events FROM ${PGSCHEMA}.sl_status ORDER BY 1;" | while read node_id sep event
|
||||
do
|
||||
do
|
||||
test -z "${node_id}" && continue
|
||||
echo "${node_id}.value ${event}"
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue