Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dev.icinga.com #5666] icinga2 daemon stops without error message when config files have wrong permissions #1252

Closed
icinga-migration opened this issue Feb 15, 2014 · 4 comments
Labels
bug Something isn't working
Milestone

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/5666

Created by gvegidy on 2014-02-15 23:53:28 +00:00

Assignee: gvegidy
Status: Resolved (closed on 2014-04-30 14:50:30 +00:00)
Target Version: 0.0.11
Last Update: 2014-04-30 14:50:30 +00:00 (in Redmine)

Icinga Version: icinga2-0.0.7

I accidently had config files without read permissions for the icinga user in /etc/icinga2/conf.d:

$ ls -al localhost.conf
rw-r----. 1 root root 751 Feb 16 00:47 localhost.conf

The icinga2 starts, but shuts down again without any kind of error message:

$ systemctl status icinga2.service
icinga2.service - LSB: icinga2 host/service/network monitoring and management system
Loaded: loaded (/etc/rc.d/init.d/icinga2)
Active: active (exited) since Sun 2014-02-16 00:48:47 CET; 2min 4s ago
Process: 32219 ExecStop=/etc/rc.d/init.d/icinga2 stop (code=exited, status=0/SUCCESS)
Process: 32234 ExecStart=/etc/rc.d/init.d/icinga2 start (code=exited, status=0/SUCCESS)

icinga2[32234]: [2014-02-16 00:48:47 +0100]

information/config: Checked 1 User(s).
icinga2[32234]: [2014-02-16 00:48:47 +0100] information/config: Checked 1 UserGroup(s).
icinga2[32234]: [2014-02-16 00:48:47 +0100] information/config: Checked 1 Host(s).
icinga2[32234]: [2014-02-16 00:48:47 +0100] information/config: Checked 2 HostGroup(s).
icinga2[32234]: [2014-02-16 00:48:47 +0100] information/config: Checked 4 Notification(s).
icinga2[32234]: [2014-02-16 00:48:47 +0100] information/config: Checked 4 Service(s).
icinga2[32234]: [2014-02-16 00:48:47 +0100] information/config: Checked 1 IcingaApplication(s).
icinga2[32234]: [2014-02-16 00:48:47 +0100] information/icinga-app: Finished validating the configuration file(s).
icinga2[32234]: Starting Icinga 2:
systemd[1]: Started LSB: icinga2 host/service/network monitoring and management system.

This makes it really hard for the user to spot the real problem.

Changesets

2014-04-29 20:05:12 +00:00 by gvegidy 8c6a47d

Improve error message when trying to open a config file

Refs #5666

2014-04-29 22:23:20 +00:00 by gvegidy d7d1503

Improve error message when trying to open a config file.

Refs #5666

2014-04-29 22:36:49 +00:00 by gvegidy 6ac851c

Improve error message when trying to open a config file.

Fixes #5666

Signed-off-by: Gunnar Beutner <gunnar.beutner@netways.de>

Relations:

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2014-03-18 16:23:33 +00:00

  • Target Version set to 0.0.10

@icinga-migration
Copy link
Author

Updated by gbeutner on 2014-04-11 11:19:35 +00:00

  • Assigned to set to gvegidy

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2014-04-29 12:14:08 +00:00

  • Target Version changed from 0.0.10 to 0.0.11

@icinga-migration
Copy link
Author

Updated by gvegidy on 2014-04-30 14:50:30 +00:00

  • Status changed from New to Resolved
  • Done % changed from 0 to 100

Applied in changeset 6ac851c.

@icinga-migration icinga-migration added the bug Something isn't working label Jan 17, 2017
@icinga-migration icinga-migration added this to the 0.0.11 milestone Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant