Itt tartok most és sokat nem haladtam előre:
root@tarthost:/home/rattila# ./zabbix-config-dump -t psql -s localhost -p -
Reading database options from /etc/zabbix/zabbix_server.conf...
Configuration:
- type: psql
- socket: localhost
- database: zabbix
- user: zabbix
- output: /home/rattila
Fetching list of existing tables...
ERROR while trying to access database:
psql: error: fe_sendauth: no password supplied
Adatok jók, a jelszót, ami a zabbix DB userhez tartozik, a zabbix conf-jából olvastam ki.
A további próbálkozások:
root@tarthost:/home/rattila# ./zabbix-config-dump -t psql -s localhost -u postgres -p -
Reading database options from /etc/zabbix/zabbix_server.conf...
Enter database password for user 'postgres' (input will be hidden):
Configuration:
- type: psql
- socket: localhost
- database: zabbix
- user: postgres
- output: /home/rattila
Fetching list of existing tables...
ERROR while trying to access database:
psql: error: fe_sendauth: no password supplied
Itt lehet, hogy nem jó a postgres user jelszava.
Sudo-val postgres userbe lépve a psql simán kezeli a zabbix DB-t, de ez nem nagy meglepedés, hiszen a DBk
"root" usere a postgres.
Valami ötlet, mi lehet a baj? Elvileg a zabbix conf-ból ki kellene olvasnia a DBpasswd-t is, ugye?