CentOS7 で Icinga 2 をセットアップしようとしており、公式ドキュメントに記載されている手順に従いました。[ https://docs.icinga.com/icinga2/latest/doc/module/icinga2/toc#!/icinga2/latest/doc/module/icinga2/chapter/getting-started][1 ].データベースを作成しましたユーザーはicingaとして。次の問題に直面しています psql: FATAL: 以下のコマンドを使用して Icinga 2 IDO スキーマをインポートしようとすると、ユーザー "icinga" のパスワード認証に失敗しました
export PGPASSWORD=icinga and psql -U icinga -d icinga < /usr/share/icinga2-ido-pgsql/schema/pgsql.sql
以下は私のpg_hba.confです
# TYPE DATABASE USER ADDRESS METHOD
# icinga
local icinga icinga md5
host icinga icinga 127.0.0.1/32 md5
host icinga icinga ::1/128 md5
# "local" is for Unix domain socket connections only
local all all peer
# IPv4 local connections:
host all all 127.0.0.1/32 ident
# IPv6 local connections:
host all all ::1/128 ident
# Allow replication connections from localhost, by a user with the
# replication privilege.
#local replication postgres peer
#host replication postgres 127.0.0.1/32 ident
#host replication postgres ::1/128 ident