RPM for 5.5.5 is broken. Won't install properly on CentOS 7
Posted: Fri Oct 26, 2018 9:17 pm
Fully patched CentOS 7 x64
Installed the NagiosXI repository and installed from yum.
Install leaves snmptt and snmptrapd disabled.
Nagios won't start. Complains that the service is marked executable.
[root@nagiosxi-test ~]# systemctl status nagiosxi
Unit nagiosxi.service could not be found.
[root@nagiosxi-test ~]# systemctl status nagios
● nagios.service - Nagios Core 4.4.2
Loaded: loaded (/usr/lib/systemd/system/nagios.service; disabled; vendor preset: disabled)
Active: inactive (dead)
Docs: https://www.nagios.org/documentation
[root@nagiosxi-test ~]# systemctl start nagios
Job for nagios.service failed because the control process exited with error code. See "systemctl status nagios.service" and "journalctl -xe" for details.
[root@nagiosxi-test ~]# systemctl status nagios.service
● nagios.service - Nagios Core 4.4.2
Loaded: loaded (/usr/lib/systemd/system/nagios.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2018-10-26 21:02:33 CDT; 12s ago
Docs: https://www.nagios.org/documentation
Process: 12091 ExecStartPre=/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg (code=exited, status=1/FAILURE)
Oct 26 21:02:33 nagiosxi-test nagios[12091]: Check your configuration file(s) to ensure that they contain valid
Oct 26 21:02:33 nagiosxi-test nagios[12091]: directives and data definitions. If you are upgrading from a previous
Oct 26 21:02:33 nagiosxi-test nagios[12091]: version of Nagios, you should be aware that some variables/definitions
Oct 26 21:02:33 nagiosxi-test nagios[12091]: may have been removed or modified in this version. Make sure to read
Oct 26 21:02:33 nagiosxi-test nagios[12091]: the HTML documentation regarding the config files, as well as the
Oct 26 21:02:33 nagiosxi-test nagios[12091]: 'Whats New' section to find out what has changed.
Oct 26 21:02:33 nagiosxi-test systemd[1]: nagios.service: control process exited, code=exited status=1
Oct 26 21:02:33 nagiosxi-test systemd[1]: Failed to start Nagios Core 4.4.2.
Oct 26 21:02:33 nagiosxi-test systemd[1]: Unit nagios.service entered failed state.
Oct 26 21:02:33 nagiosxi-test systemd[1]: nagios.service failed.
[root@nagiosxi-test ~]# journalctl -xe
Oct 26 21:02:33 nagiosxi-test systemd[1]: Configuration file /usr/lib/systemd/system/nagios.service is marked executable. Please remove executable permiss
Oct 26 21:02:33 nagiosxi-test systemd[1]: Starting Nagios Core 4.4.2...
-- Subject: Unit nagios.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit nagios.service has begun starting up.
Oct 26 21:02:33 nagiosxi-test nagios[12091]: Nagios Core 4.4.2
Oct 26 21:02:33 nagiosxi-test nagios[12091]: Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Oct 26 21:02:33 nagiosxi-test nagios[12091]: Copyright (c) 1999-2009 Ethan Galstad
Oct 26 21:02:33 nagiosxi-test nagios[12091]: Last Modified: 2018-08-16
Oct 26 21:02:33 nagiosxi-test nagios[12091]: License: GPL
Oct 26 21:02:33 nagiosxi-test nagios[12091]: Website: https://www.nagios.org
Oct 26 21:02:33 nagiosxi-test nagios[12091]: Reading configuration data...
Oct 26 21:02:33 nagiosxi-test nagios[12091]: Read main config file okay...
Oct 26 21:02:33 nagiosxi-test nagios[12091]: Error: Cannot open config file '/usr/local/nagios/etc/contacttemplates.cfg' for reading: No such file or dire
Oct 26 21:02:33 nagiosxi-test nagios[12091]: Error processing object config files!
Oct 26 21:02:33 nagiosxi-test nagios[12091]: ***> One or more problems was encountered while processing the config files...
Oct 26 21:02:33 nagiosxi-test nagios[12091]: Check your configuration file(s) to ensure that they contain valid
Oct 26 21:02:33 nagiosxi-test nagios[12091]: directives and data definitions. If you are upgrading from a previous
Oct 26 21:02:33 nagiosxi-test nagios[12091]: version of Nagios, you should be aware that some variables/definitions
Oct 26 21:02:33 nagiosxi-test nagios[12091]: may have been removed or modified in this version. Make sure to read
Oct 26 21:02:33 nagiosxi-test nagios[12091]: the HTML documentation regarding the config files, as well as the
Oct 26 21:02:33 nagiosxi-test nagios[12091]: 'Whats New' section to find out what has changed.
Oct 26 21:02:33 nagiosxi-test polkitd[617]: Unregistered Authentication Agent for unix-process
163326 (system bus name :1.49, object path /org/freed
Oct 26 21:02:33 nagiosxi-test systemd[1]: nagios.service: control process exited, code=exited status=1
Oct 26 21:02:33 nagiosxi-test systemd[1]: Failed to start Nagios Core 4.4.2.
-- Subject: Unit nagios.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit nagios.service has failed.
--
-- The result is failed.
Oct 26 21:02:33 nagiosxi-test systemd[1]: Unit nagios.service entered failed state.
Oct 26 21:02:33 nagiosxi-test systemd[1]: nagios.service failed.
Oct 26 21:02:45 nagiosxi-test systemd[1]: Configuration file /usr/lib/systemd/system/nagios.service is marked executable. Please remove executable permiss
[1]+ Stopped journalctl -xe
[root@nagiosxi-test ~]# fg
journalctl -xe
Oct 26 21:02:33 nagiosxi-test systemd[1]: Configuration file /usr/lib/systemd/system/nagios.service is marked executable. Please remove executable permiss
Oct 26 21:02:33 nagiosxi-test systemd[1]: Starting Nagios Core 4.4.2...
-- Subject: Unit nagios.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit nagios.service has begun starting up.
Oct 26 21:02:33 nagiosxi-test nagios[12091]: Nagios Core 4.4.2
Oct 26 21:02:33 nagiosxi-test nagios[12091]: Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Oct 26 21:02:33 nagiosxi-test nagios[12091]: Copyright (c) 1999-2009 Ethan Galstad
Oct 26 21:02:33 nagiosxi-test nagios[12091]: Last Modified: 2018-08-16
Oct 26 21:02:33 nagiosxi-test nagios[12091]: License: GPL
Oct 26 21:02:33 nagiosxi-test nagios[12091]: Website: https://www.nagios.org
Oct 26 21:02:33 nagiosxi-test nagios[12091]: Reading configuration data...
Oct 26 21:02:33 nagiosxi-test nagios[12091]: Read main config file okay...
Oct 26 21:02:33 nagiosxi-test nagios[12091]: Error: Cannot open config file '/usr/local/nagios/etc/contacttemplates.cfg' for reading: No such file or dire
Oct 26 21:02:33 nagiosxi-test nagios[12091]: Error processing object config files!
Oct 26 21:02:33 nagiosxi-test nagios[12091]: ***> One or more problems was encountered while processing the config files...
Oct 26 21:02:33 nagiosxi-test nagios[12091]: Check your configuration file(s) to ensure that they contain valid
Oct 26 21:02:33 nagiosxi-test nagios[12091]: directives and data definitions. If you are upgrading from a previous
Oct 26 21:02:33 nagiosxi-test nagios[12091]: version of Nagios, you should be aware that some variables/definitions
Oct 26 21:02:33 nagiosxi-test nagios[12091]: may have been removed or modified in this version. Make sure to read
Oct 26 21:02:33 nagiosxi-test nagios[12091]: the HTML documentation regarding the config files, as well as the
Oct 26 21:02:33 nagiosxi-test nagios[12091]: 'Whats New' section to find out what has changed.
Oct 26 21:02:33 nagiosxi-test polkitd[617]: Unregistered Authentication Agent for unix-process
163326 (system bus name :1.49, object path /org/freed
Oct 26 21:02:33 nagiosxi-test systemd[1]: nagios.service: control process exited, code=exited status=1
Oct 26 21:02:33 nagiosxi-test systemd[1]: Failed to start Nagios Core 4.4.2.
-- Subject: Unit nagios.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit nagios.service has failed.
--
-- The result is failed.
Oct 26 21:02:33 nagiosxi-test systemd[1]: Unit nagios.service entered failed state.
Oct 26 21:02:33 nagiosxi-test systemd[1]: nagios.service failed.
Oct 26 21:02:45 nagiosxi-test systemd[1]: Configuration file /usr/lib/systemd/system/nagios.service is marked executable. Please remove executable permiss
[root@nagiosxi-test ~]# yum -y install iptraf tcpdump mlocate wget perl open-vm-tools iotop python-pip rrdtool-perl nagiosxi ncpa yum-utils
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.dc2.hackingand.coffee
* extras: mirror.dc2.hackingand.coffee
* updates: mirror.dc2.hackingand.coffee
Package iptraf-ng-1.1.4-6.el7.x86_64 already installed and latest version
Package 14:tcpdump-4.9.2-3.el7.x86_64 already installed and latest version
Package mlocate-0.26-8.el7.x86_64 already installed and latest version
Package wget-1.14-15.el7_4.1.x86_64 already installed and latest version
Package 4:perl-5.16.3-292.el7.x86_64 already installed and latest version
Package open-vm-tools-10.1.10-3.el7_5.1.x86_64 already installed and latest version
Package iotop-0.6-2.el7.noarch already installed and latest version
No package python-pip available.
Package rrdtool-perl-1.4.9-1.el7.x86_64 already installed and latest version
Package nagiosxi-5.5.5-1.el7.x86_64 already installed and latest version
Package ncpa-2.1.6-1.el7.x86_64 already installed and latest version
Package yum-utils-1.1.31-46.el7_5.noarch already installed and latest version
Nothing to do
[root@nagiosxi-test ~]# service nagios start
Redirecting to /bin/systemctl start nagios.service
Job for nagios.service failed because the control process exited with error code. See "systemctl status nagios.service" and "journalctl -xe" for details.
[root@nagiosxi-test ~]#
[root@nagiosxi-test ~]# ls -l /usr/lib/systemd/system/nagios.service
-rwxr-xr-x. 1 root root 477 Oct 11 12:08 /usr/lib/systemd/system/nagios.service
[root@nagiosxi-test ~]# chmod -x /usr/lib/systemd/system/nagios.service
[root@nagiosxi-test ~]# service nagios start
Redirecting to /bin/systemctl start nagios.service
Job for nagios.service failed because the control process exited with error code. See "systemctl status nagios.service" and "journalctl -xe" for details.
[root@nagiosxi-test ~]# systemctl status nagios.service
● nagios.service - Nagios Core 4.4.2
Loaded: loaded (/usr/lib/systemd/system/nagios.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2018-10-26 21:08:45 CDT; 9s ago
Docs: https://www.nagios.org/documentation
Process: 12436 ExecStartPre=/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg (code=exited, status=1/FAILURE)
Installed the NagiosXI repository and installed from yum.
Install leaves snmptt and snmptrapd disabled.
Nagios won't start. Complains that the service is marked executable.
[root@nagiosxi-test ~]# systemctl status nagiosxi
Unit nagiosxi.service could not be found.
[root@nagiosxi-test ~]# systemctl status nagios
● nagios.service - Nagios Core 4.4.2
Loaded: loaded (/usr/lib/systemd/system/nagios.service; disabled; vendor preset: disabled)
Active: inactive (dead)
Docs: https://www.nagios.org/documentation
[root@nagiosxi-test ~]# systemctl start nagios
Job for nagios.service failed because the control process exited with error code. See "systemctl status nagios.service" and "journalctl -xe" for details.
[root@nagiosxi-test ~]# systemctl status nagios.service
● nagios.service - Nagios Core 4.4.2
Loaded: loaded (/usr/lib/systemd/system/nagios.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2018-10-26 21:02:33 CDT; 12s ago
Docs: https://www.nagios.org/documentation
Process: 12091 ExecStartPre=/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg (code=exited, status=1/FAILURE)
Oct 26 21:02:33 nagiosxi-test nagios[12091]: Check your configuration file(s) to ensure that they contain valid
Oct 26 21:02:33 nagiosxi-test nagios[12091]: directives and data definitions. If you are upgrading from a previous
Oct 26 21:02:33 nagiosxi-test nagios[12091]: version of Nagios, you should be aware that some variables/definitions
Oct 26 21:02:33 nagiosxi-test nagios[12091]: may have been removed or modified in this version. Make sure to read
Oct 26 21:02:33 nagiosxi-test nagios[12091]: the HTML documentation regarding the config files, as well as the
Oct 26 21:02:33 nagiosxi-test nagios[12091]: 'Whats New' section to find out what has changed.
Oct 26 21:02:33 nagiosxi-test systemd[1]: nagios.service: control process exited, code=exited status=1
Oct 26 21:02:33 nagiosxi-test systemd[1]: Failed to start Nagios Core 4.4.2.
Oct 26 21:02:33 nagiosxi-test systemd[1]: Unit nagios.service entered failed state.
Oct 26 21:02:33 nagiosxi-test systemd[1]: nagios.service failed.
[root@nagiosxi-test ~]# journalctl -xe
Oct 26 21:02:33 nagiosxi-test systemd[1]: Configuration file /usr/lib/systemd/system/nagios.service is marked executable. Please remove executable permiss
Oct 26 21:02:33 nagiosxi-test systemd[1]: Starting Nagios Core 4.4.2...
-- Subject: Unit nagios.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit nagios.service has begun starting up.
Oct 26 21:02:33 nagiosxi-test nagios[12091]: Nagios Core 4.4.2
Oct 26 21:02:33 nagiosxi-test nagios[12091]: Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Oct 26 21:02:33 nagiosxi-test nagios[12091]: Copyright (c) 1999-2009 Ethan Galstad
Oct 26 21:02:33 nagiosxi-test nagios[12091]: Last Modified: 2018-08-16
Oct 26 21:02:33 nagiosxi-test nagios[12091]: License: GPL
Oct 26 21:02:33 nagiosxi-test nagios[12091]: Website: https://www.nagios.org
Oct 26 21:02:33 nagiosxi-test nagios[12091]: Reading configuration data...
Oct 26 21:02:33 nagiosxi-test nagios[12091]: Read main config file okay...
Oct 26 21:02:33 nagiosxi-test nagios[12091]: Error: Cannot open config file '/usr/local/nagios/etc/contacttemplates.cfg' for reading: No such file or dire
Oct 26 21:02:33 nagiosxi-test nagios[12091]: Error processing object config files!
Oct 26 21:02:33 nagiosxi-test nagios[12091]: ***> One or more problems was encountered while processing the config files...
Oct 26 21:02:33 nagiosxi-test nagios[12091]: Check your configuration file(s) to ensure that they contain valid
Oct 26 21:02:33 nagiosxi-test nagios[12091]: directives and data definitions. If you are upgrading from a previous
Oct 26 21:02:33 nagiosxi-test nagios[12091]: version of Nagios, you should be aware that some variables/definitions
Oct 26 21:02:33 nagiosxi-test nagios[12091]: may have been removed or modified in this version. Make sure to read
Oct 26 21:02:33 nagiosxi-test nagios[12091]: the HTML documentation regarding the config files, as well as the
Oct 26 21:02:33 nagiosxi-test nagios[12091]: 'Whats New' section to find out what has changed.
Oct 26 21:02:33 nagiosxi-test polkitd[617]: Unregistered Authentication Agent for unix-process
Oct 26 21:02:33 nagiosxi-test systemd[1]: nagios.service: control process exited, code=exited status=1
Oct 26 21:02:33 nagiosxi-test systemd[1]: Failed to start Nagios Core 4.4.2.
-- Subject: Unit nagios.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit nagios.service has failed.
--
-- The result is failed.
Oct 26 21:02:33 nagiosxi-test systemd[1]: Unit nagios.service entered failed state.
Oct 26 21:02:33 nagiosxi-test systemd[1]: nagios.service failed.
Oct 26 21:02:45 nagiosxi-test systemd[1]: Configuration file /usr/lib/systemd/system/nagios.service is marked executable. Please remove executable permiss
[1]+ Stopped journalctl -xe
[root@nagiosxi-test ~]# fg
journalctl -xe
Oct 26 21:02:33 nagiosxi-test systemd[1]: Configuration file /usr/lib/systemd/system/nagios.service is marked executable. Please remove executable permiss
Oct 26 21:02:33 nagiosxi-test systemd[1]: Starting Nagios Core 4.4.2...
-- Subject: Unit nagios.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit nagios.service has begun starting up.
Oct 26 21:02:33 nagiosxi-test nagios[12091]: Nagios Core 4.4.2
Oct 26 21:02:33 nagiosxi-test nagios[12091]: Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Oct 26 21:02:33 nagiosxi-test nagios[12091]: Copyright (c) 1999-2009 Ethan Galstad
Oct 26 21:02:33 nagiosxi-test nagios[12091]: Last Modified: 2018-08-16
Oct 26 21:02:33 nagiosxi-test nagios[12091]: License: GPL
Oct 26 21:02:33 nagiosxi-test nagios[12091]: Website: https://www.nagios.org
Oct 26 21:02:33 nagiosxi-test nagios[12091]: Reading configuration data...
Oct 26 21:02:33 nagiosxi-test nagios[12091]: Read main config file okay...
Oct 26 21:02:33 nagiosxi-test nagios[12091]: Error: Cannot open config file '/usr/local/nagios/etc/contacttemplates.cfg' for reading: No such file or dire
Oct 26 21:02:33 nagiosxi-test nagios[12091]: Error processing object config files!
Oct 26 21:02:33 nagiosxi-test nagios[12091]: ***> One or more problems was encountered while processing the config files...
Oct 26 21:02:33 nagiosxi-test nagios[12091]: Check your configuration file(s) to ensure that they contain valid
Oct 26 21:02:33 nagiosxi-test nagios[12091]: directives and data definitions. If you are upgrading from a previous
Oct 26 21:02:33 nagiosxi-test nagios[12091]: version of Nagios, you should be aware that some variables/definitions
Oct 26 21:02:33 nagiosxi-test nagios[12091]: may have been removed or modified in this version. Make sure to read
Oct 26 21:02:33 nagiosxi-test nagios[12091]: the HTML documentation regarding the config files, as well as the
Oct 26 21:02:33 nagiosxi-test nagios[12091]: 'Whats New' section to find out what has changed.
Oct 26 21:02:33 nagiosxi-test polkitd[617]: Unregistered Authentication Agent for unix-process
Oct 26 21:02:33 nagiosxi-test systemd[1]: nagios.service: control process exited, code=exited status=1
Oct 26 21:02:33 nagiosxi-test systemd[1]: Failed to start Nagios Core 4.4.2.
-- Subject: Unit nagios.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit nagios.service has failed.
--
-- The result is failed.
Oct 26 21:02:33 nagiosxi-test systemd[1]: Unit nagios.service entered failed state.
Oct 26 21:02:33 nagiosxi-test systemd[1]: nagios.service failed.
Oct 26 21:02:45 nagiosxi-test systemd[1]: Configuration file /usr/lib/systemd/system/nagios.service is marked executable. Please remove executable permiss
[root@nagiosxi-test ~]# yum -y install iptraf tcpdump mlocate wget perl open-vm-tools iotop python-pip rrdtool-perl nagiosxi ncpa yum-utils
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.dc2.hackingand.coffee
* extras: mirror.dc2.hackingand.coffee
* updates: mirror.dc2.hackingand.coffee
Package iptraf-ng-1.1.4-6.el7.x86_64 already installed and latest version
Package 14:tcpdump-4.9.2-3.el7.x86_64 already installed and latest version
Package mlocate-0.26-8.el7.x86_64 already installed and latest version
Package wget-1.14-15.el7_4.1.x86_64 already installed and latest version
Package 4:perl-5.16.3-292.el7.x86_64 already installed and latest version
Package open-vm-tools-10.1.10-3.el7_5.1.x86_64 already installed and latest version
Package iotop-0.6-2.el7.noarch already installed and latest version
No package python-pip available.
Package rrdtool-perl-1.4.9-1.el7.x86_64 already installed and latest version
Package nagiosxi-5.5.5-1.el7.x86_64 already installed and latest version
Package ncpa-2.1.6-1.el7.x86_64 already installed and latest version
Package yum-utils-1.1.31-46.el7_5.noarch already installed and latest version
Nothing to do
[root@nagiosxi-test ~]# service nagios start
Redirecting to /bin/systemctl start nagios.service
Job for nagios.service failed because the control process exited with error code. See "systemctl status nagios.service" and "journalctl -xe" for details.
[root@nagiosxi-test ~]#
[root@nagiosxi-test ~]# ls -l /usr/lib/systemd/system/nagios.service
-rwxr-xr-x. 1 root root 477 Oct 11 12:08 /usr/lib/systemd/system/nagios.service
[root@nagiosxi-test ~]# chmod -x /usr/lib/systemd/system/nagios.service
[root@nagiosxi-test ~]# service nagios start
Redirecting to /bin/systemctl start nagios.service
Job for nagios.service failed because the control process exited with error code. See "systemctl status nagios.service" and "journalctl -xe" for details.
[root@nagiosxi-test ~]# systemctl status nagios.service
● nagios.service - Nagios Core 4.4.2
Loaded: loaded (/usr/lib/systemd/system/nagios.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2018-10-26 21:08:45 CDT; 9s ago
Docs: https://www.nagios.org/documentation
Process: 12436 ExecStartPre=/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg (code=exited, status=1/FAILURE)