2017-07-12 13 views
0

CentOS7でIcinga 2をセットアップしようとしており、公式文書に記載されている手順に従っています。 [https://docs.icinga.com/icinga2/latest/doc/module/icinga2/toc#!/icinga2/latest/doc/module/icinga2/chapter/getting-started][1].Iは、データベースとユーザをicingaとして作成しました。私は、次の問題のpsqlを直面しています:FATAL:私のpg_hba.confのはpsql:致命的:ユーザー "icinga"のパスワード認証に失敗しました

# 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 
を使用していますされ、以下の以下
export PGPASSWORD=icinga and psql -U icinga -d icinga < /usr/share/icinga2-ido-pgsql/schema/pgsql.sql 

をコマンドを使用してIcinga 2 IDOスキーマをインポートしようとすると、パスワード認証は、「icinga」ユーザーに失敗しました

答えて

0

local all    all          peer 

を変更してください:

local all    all          md5 
関連する問題