We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 02236c6 + 03fcfca commit cfaad77Copy full SHA for cfaad77
bin/v-update-sys-rrd-pgsql
@@ -76,7 +76,7 @@ for host in $hosts; do
76
done
77
78
export PGPASSWORD="$PASSWORD"
79
- sql="psql -h $HOST -U $USER -c"
+ sql="psql -h $HOST -U $USER"
80
81
# Checking empty vars
82
if [ -z $HOST ] || [ -z $USER ] || [ -z $PASSWORD ]; then
@@ -88,7 +88,7 @@ for host in $hosts; do
88
# Parsing data
89
q='SELECT SUM(xact_commit + xact_rollback), SUM(numbackends)
90
FROM pg_stat_database;'
91
- status=$($sql plsql -d postgres -c "$q" 2>/dev/null); code="$?"
+ status=$($sql -d postgres -c "$q" 2>/dev/null); code="$?"
92
if [ '0' -ne "$code" ]; then
93
active=0
94
slow=0
0 commit comments