Page 1 of 1

v-update-sys-rrd-pgsql not work

Posted: Mon Feb 08, 2021 11:03 am
by MuadDiib
CentOS 7
v-update-sys-rrd-pgsql:
- line 76

Code: Select all

        sql="psql -h $HOST -U $USER -c"
.....
- line 88

Code: Select all

status=$($sql psql -d postgres -c "$q" 2>/dev/null); code="$?"
- - - - - - - - - - - -

how it's work?

PostgreSQL logs spamed by

Code: Select all

2021-02-05 00:35:02.348 EET [30291] ERROR:  syntax error at or near "psql" at character 1
2021-02-05 00:35:02.348 EET [30291] STATEMENT:  psql