Hi Alfonso,

Em 25-07-2014 06:02, Alfonso Pace escreveu:
> Hi to everybody,
> I have a problem with my cluster installation.
> I have a good configuration because if I start my daemon icinga2 with
> root user (I edited the file /etc/sysconfig/icinga2) my cluster share
> the conf and work perfectly. 
> *CONFIGURATION WORK*
> DAEMON=/usr/sbin/icinga2
> ICINGA2_CONFIG_FILE=/etc/icinga2/icinga2.conf
> ICINGA2_STATE_DIR=/var
> ICINGA2_PID_FILE=/var/run/icinga2/icinga2.pid
> ICINGA2_ERROR_LOG=/var/log/icinga2/error.log
> ICINGA2_STARTUP_LOG=/var/log/icinga2/startup.log
> ICINGA2_LOG=/var/log/icinga2/icinga2.log
> ICINGA2_USER=root
> ICINGA2_GROUP=root
> ICINGA2_COMMAND_USER=root
> ICINGA2_COMMAND_GROUP=root
>
> If I start the daemons with icinga users (user and group setted in
> /etc/sysconfig/icinga2) the system return this error.
> *CONFIGURATION WITCH CAUSE ERROR  critical/ApiListener: SSL context is
> required for AddListener()*
> DAEMON=/usr/sbin/icinga2
> ICINGA2_CONFIG_FILE=/etc/icinga2/icinga2.conf
> ICINGA2_STATE_DIR=/var
> ICINGA2_PID_FILE=/var/run/icinga2/icinga2.pid
> ICINGA2_ERROR_LOG=/var/log/icinga2/error.log
> ICINGA2_STARTUP_LOG=/var/log/icinga2/startup.log
> ICINGA2_LOG=/var/log/icinga2/icinga2.log
> ICINGA2_USER=icinga
> ICINGA2_GROUP=icinga
> ICINGA2_COMMAND_USER=icinga
> ICINGA2_COMMAND_GROUP=icingacmd
>
> * critical/ApiListener: SSL context is required for AddListener()*
> This is a bug or a misconfiguration in permission users?
>
Maybe your problem is related to certificates permission.
Try change it the permission
Like this

chown icinga.icinga /etc/icinga2/pki/*


As describe here:
http://docs.icinga.org/icinga2/latest/doc/module/icinga2/toc#!/icinga2/latest/doc/module/icinga2/chapter/monitoring-remote-systems#configure-clusterlistener-object

"The certificate files must be readable by the user Icinga 2 is running
as. Also, the private key file must not be world-readable."

> My user config in /etc/passwd (master server and child server) is:
> icinga:x:506:507:icinga:/var/spool/icinga2:/sbin/nologin
>
> Anyone had this problem? Anyone can help me?
> Thank's in advance to everybody. 
>
>
> -- 
> --
> ATTENTION: Privacy Policy -- D.L.gs <http://D.L.gs> 196/2003
> The information contained in this email message are of a private and
> confidential nature and are exclusively addressed to the person
> indicated above. In case you have received this email in error, we
> comunicate to you that by Law, it is forbidden for another person to
> use, make known, distribute or copy  the contents. You are asked to
> report it immediately, replying to the sender and destroying the
> contents (including any attached files) without making a copy or
> reading the contents. The message and the attachments are protected
> and scanned with an antivirus protection
>
>
> _______________________________________________
> icinga-users mailing list
> [email protected]
> https://lists.icinga.org/mailman/listinfo/icinga-users


-- 
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to