I am trying to install Icinga on CentOS 77.1908 as part of a Proof of Concept project. When I try to start the Director with ‘systemctl start icinga-director’, I get:
Job for icinga-director.service failed because the control process exited with error code. See “systemctl status icinga-director.service” and “journalctl -xe” for details.
‘journalctl -xe’ shows me:
PHP Fatal error: Uncaught Error: Call to undefined function posix_getpid() in /usr/share/icingaweb2/modules/incubator/vendor/gipfl/systemd/src
I googled 'icinga ‘Call to undefined function posix_getpid()’ anf got a number of hits. Admittedly it was extremely frustrating because:
1. The were no refernces on the page for the Director installation (Installation - Icinga Director) for most of the things people said to do.
2. There was no consistent suggests as what to do.
The more common responses was that the php-process package needs to be installed. However, it seems to me that it is already installed:
Apparently, somwhere along the line I installed the Remi Repository, but that was a couple of months ago and I am just now getting back to the project.
I again went through te requirements on the Director installation page, and the only discrepancy I found was for “php-pdo-mysql and/or php-pdo-pgsql”
yum search does not find php-pdo-mysql. However, I do have both of these installed:
At this point, I am fearful that I screwed up something along the lines and that I should simply start over. However, I am hoping someone might have an easier solution.
Maybe some of this info can help:
icinga2 - The Icinga 2 network monitoring daemon (version: 2.13.2-1)
Copyright (c) 2012-2022 Icinga GmbH (https://icinga.com/)
License GPLv2+: GNU GPL version 2 or later https://gnu.org/licenses/gpl2.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Platform: CentOS Linux
Platform version: 7 (Core)
Kernel version: 3.10.0-1062.9.1.el7.x86_64
Compiler: GNU 4.8.5
Build host: runner-hh8q3bz2-project-322-concurrent-0
OpenSSL version: OpenSSL 1.0.2k-fips 26 Jan 2017
Config directory: /etc/icinga2
Data directory: /var/lib/icinga2
Log directory: /var/log/icinga2
Cache directory: /var/cache/icinga2
Spool directory: /var/spool/icinga2
Run directory: /run/icinga2
Old paths (deprecated):
Installation root: /usr
Sysconf directory: /etc
Run directory (base): /run
Local state directory: /var
Package data directory: /usr/share/icinga2
State path: /var/lib/icinga2/icinga2.state
Modified attributes path: /var/lib/icinga2/modified-attributes.conf
Objects path: /var/cache/icinga2/icinga2.debug
Vars path: /var/cache/icinga2/icinga2.vars
PID path: /run/icinga2/icinga2.pid
icinga2 feature list
Disabled features: command compatlog debuglog elasticsearch gelf graphite icingadb influxdb influxdb2 livestatus opentsdb perfdata statusdata syslog
Enabled features: api checker ido-mysql mainlog notification