Előre mentem, 12-n vagyok, de a zabbix-backup szkript még mindig nem megy:
postgres@tarthost:/home/rattila/zabbix-install/zabbix-backup-0.9.10$ ./zabbix-dump -t psql -o zabbix-config-dump.sql
Reading database options from /etc/zabbix/zabbix_server.conf...
./zabbix-dump: sor: 251: /usr/bin/grep: Nincs ilyen fájl vagy könyvtár
Configuration:
- type: psql
- socket: /var/run/postgresql/.s.PGSQL.5432
- schema: public
- database: zabbix
- user: zabbix
- output: zabbix-config-dump.sql
Fetching list of existing tables...
ERROR while trying to access database:
psql: error: could not connect to server: Nem könyvtár
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432/.s.PGSQL.5432"?
postgres@tarthost:/home/rattila/zabbix-install/zabbix-backup-0.9.10$ cd /var/run
postgres@tarthost:/var/run$ cd postgresql/
postgres@tarthost:/var/run/postgresql$ ls
10-main.pg_stat_tmp 12-main.pg_stat_tmp 12-main.pid
postgres@tarthost:/var/run/postgresql$ ls -la
összesen 8
drwxrwsr-x 4 postgres postgres 140 márc 18 19:12 .
drwxr-xr-x 50 root root 1560 márc 18 19:05 ..
drwxr-s--- 2 postgres postgres 40 márc 18 19:12 10-main.pg_stat_tmp
drwxr-s--- 2 postgres postgres 160 márc 18 19:16 12-main.pg_stat_tmp
-rw-r--r-- 1 postgres postgres 8 márc 18 15:26 12-main.pid
srwxrwxrwx 1 postgres postgres 0 márc 18 18:20 .s.PGSQL.5432
-rw------- 1 postgres postgres 72 márc 18 18:20 .s.PGSQL.5432.lock
postgres@tarthost:/var/run/postgresql$
Miért alkönyvtárként keresi a Unix socket-et?? Olyanom nincs!
Jelenleg csak a 12-es fut, hogy ezzel is megkönnyítsem a szkript dolgát, de nem akarja!