Hello,
Finally, IC2 is running, but mentionned the message :
“It seems that Icinga DB is not running. Make sure Icinga DB is running and writing into the database.”
Looking at the status, it cannot receive heartbeat from icinga, Following the doc, Redis was first installed, icinga2-selinux also but set as permissive following previous problem (perhaps linked). Password and acces seems ok.
When I set up selinux to enforcing the error message is :
“Can’t connect to Redis: Permission denied [tcp://localhost:6380]”
icingadb-redis is running
icingadb not working well (waiting for Icinga Heartbeat)
What am I suppose to parameter (not familiar with Selinux / Redis)
Could you help ? Thanks
sudo systemctl status icingadb
× icingadb.service - Icinga DB
Loaded: loaded (/usr/lib/systemd/system/icingadb.service; enabled; preset: disabled)
Active: failed (Result: exit-code) since Wed 2024-12-04 15:01:08 CET; 2min 6s ago
Duration: 5min 9ms
Process: 31572 ExecStart=/usr/sbin/icingadb --config /etc/icingadb/config.yml (code=exited, status=1/FAILURE)
Main PID: 31572 (code=exited, status=1/FAILURE)
CPU: 1.297s
Dec 04 14:56:08 lmonicp24.lx.finbel.intra icingadb[31572]: Connecting to Redis at 'localhost:6380'
Dec 04 14:56:08 lmonicp24.lx.finbel.intra icingadb[31572]: Starting history sync
Dec 04 14:57:08 lmonicp24.lx.finbel.intra icingadb[31572]: heartbeat: Waiting for Icinga heartbeat
Dec 04 14:58:08 lmonicp24.lx.finbel.intra icingadb[31572]: heartbeat: Waiting for Icinga heartbeat
Dec 04 14:59:08 lmonicp24.lx.finbel.intra icingadb[31572]: heartbeat: Waiting for Icinga heartbeat
Dec 04 15:00:08 lmonicp24.lx.finbel.intra icingadb[31572]: heartbeat: Waiting for Icinga heartbeat
Dec 04 15:01:08 lmonicp24.lx.finbel.intra icingadb[31572]: retry deadline exceeded
github.com/icinga/icingadb/pkg/icingadb.
(....removed unecessary redondant text)
runtime/asm_amd64.s:1695
Dec 04 15:01:08 lmonicp24.lx.finbel.intra systemd[1]: icingadb.service: Main process exited, code=exited, status=1/FAILURE
Dec 04 15:01:08 lmonicp24.lx.finbel.intra systemd[1]: icingadb.service: Failed with result 'exit-code'.
Dec 04 15:01:08 lmonicp24.lx.finbel.intra systemd[1]: icingadb.service: Consumed 1.297s CPU time.
My conf file : (defaut) !!! but I read “permission denied from the deamon” - how to fix ?
(warning/ConfigCompiler: Cannot compile file ‘/etc/icinga2/features-enabled/icingadb.conf’: Error: Function call ‘std::ifstream::open’ for file ‘/etc/icinga2/features-enabled/icingadb.conf’ failed with error code 13, ‘Permission denied’)
User icinga;icinga
sudo ls -ltr /etc/icinga2/features-enabled/icingadb.conf
lrwxrwxrwx. 1 icinga icinga 35 Nov 28 14:21 /etc/icinga2/features-enabled/icingadb.conf -> ../features-available/icingadb.conf
sudo cat /etc/icinga2/features-available/icingadb.conf
object IcingaDB "icingadb" {
//host = "127.0.0.1"
//port = 6380
//password = "xxx"
Version used : Last release icinga2
Operating System and version : RHLE9
Enabled features (icinga2 feature list)
Last Icinga Web 2 version and Director modules
Config validation : icinga2 daemon -C
sudo icinga2 daemon -C
[2024-12-04 15:27:00 +0100] information/cli: Icinga application loader (version: r2.14.2-1)
[2024-12-04 15:27:00 +0100] information/cli: Loading configuration file(s).
[2024-12-04 15:27:00 +0100] warning/ConfigCompiler: Cannot compile file '/etc/icinga2/features-enabled/icingadb.conf': Error: Function call 'std::ifstream::open' for file '/etc/icinga2/features-enabled/icingadb.conf' failed with error code 13, 'Permission denied'
Context:
(0) Compiling configuration file '/etc/icinga2/features-enabled/icingadb.conf'
[2024-12-04 15:27:00 +0100] information/ConfigItem: Committing config item(s).
[2024-12-04 15:27:00 +0100] information/ApiListener: My API identity: lmonicp24.lx.finbel.intra
[2024-12-04 15:27:00 +0100] information/ConfigItem: Instantiated 2 NotificationCommands.
[2024-12-04 15:27:00 +0100] information/ConfigItem: Instantiated 12 Notifications.
[2024-12-04 15:27:00 +0100] information/ConfigItem: Instantiated 1 IcingaApplication.
[2024-12-04 15:27:00 +0100] information/ConfigItem: Instantiated 2 HostGroups.
[2024-12-04 15:27:00 +0100] information/ConfigItem: Instantiated 1 Host.
[2024-12-04 15:27:00 +0100] information/ConfigItem: Instantiated 1 Downtime.
[2024-12-04 15:27:00 +0100] information/ConfigItem: Instantiated 1 FileLogger.
[2024-12-04 15:27:00 +0100] information/ConfigItem: Instantiated 1 IdoMysqlConnection.
[2024-12-04 15:27:00 +0100] information/ConfigItem: Instantiated 3 Zones.
[2024-12-04 15:27:00 +0100] information/ConfigItem: Instantiated 1 CheckerComponent.
[2024-12-04 15:27:00 +0100] information/ConfigItem: Instantiated 1 User.
[2024-12-04 15:27:00 +0100] information/ConfigItem: Instantiated 1 Endpoint.
[2024-12-04 15:27:00 +0100] information/ConfigItem: Instantiated 1 ApiUser.
[2024-12-04 15:27:00 +0100] information/ConfigItem: Instantiated 1 ApiListener.
[2024-12-04 15:27:00 +0100] information/ConfigItem: Instantiated 1 NotificationComponent.
[2024-12-04 15:27:00 +0100] information/ConfigItem: Instantiated 246 CheckCommands.
[2024-12-04 15:27:00 +0100] information/ConfigItem: Instantiated 1 UserGroup.
[2024-12-04 15:27:00 +0100] information/ConfigItem: Instantiated 3 ServiceGroups.
[2024-12-04 15:27:00 +0100] information/ConfigItem: Instantiated 3 TimePeriods.
[2024-12-04 15:27:00 +0100] information/ConfigItem: Instantiated 1 ScheduledDowntime.
[2024-12-04 15:27:00 +0100] information/ConfigItem: Instantiated 11 Services.
[2024-12-04 15:27:00 +0100] information/ScriptGlobal: Dumping variables to file '/var/cache/icinga2/icinga2.vars'
[2024-12-04 15:27:00 +0100] information/cli: Finished validating the configuration file(s).