Comments

14 Comments
BZ#1666209 Nagios cannot start after system reboot because of missing directory
BZ#1829114 nagios-4.4.6 is available
BZ#1849087 CVE-2020-13977 nagios: URL injection (post-authentication) vulnerability [epel-all]
BZ#1932297 Nagios server rpm missing some nagios-plugins-* dependency

I was able to install nagios-4.4.6-4 on centos 7 fresh VM and be able to view localhost from http://localhost-ip/nagios after login as nagiosadmin/nagiosadmin.

@bodhi, This pkg still need to be fixed by adding nagios-plugins-ping as pkg dependency. too early to move into stable from testing.

I withdraw Concern 3. this show I am very outdated with rpm packaging stuff.

  • Concern 3: /usr/lib/.build-id/* files should be excluded from .rpm.

rpm -ql nagios |grep build

<snipped>

4/usr/lib/.build-id/ea/56d09fef194bede4fdd1c7112e9a02fc5be97e 865/usr/lib/.build-id/f7 866/usr/lib/.build-id/f7/16224ac341fedfa6e160a53bf9b071c08f53dd 867/usr/lib/.build-id/fc 868/usr/lib/.build-id/fc/d38be1f815a5efa48dfa2879dfdfc261dae82d 869/usr/lib/.build-id/fe 870/usr/lib/.build-id/fe/3875c29db14d81a5422e6b03b104f03843006b 871[x220@ipa01 SPECS]$ rpm -ql nagios |grep build |wc 42 42 1779 [me@fedora33 SPECS]$

  • On fedora 33. the upgrade of "-1" to "-3" was fine.
  • Concern 1:

<snipped>

Cleanup : nagios-common-4.4.6-1.fc33.x86_64 14/14

Running scriptlet: nagios-common-4.4.6-1.fc33.x86_64 14/14

/etc/tmpfiles.d/dirsrv-TEST-LAN.conf:1: Line references path below legacy directory /var/run/, updating /var/run/dirsrv → /run/dirsrv; please update the tmpfiles.d/ drop-in file accordingly.

/usr/lib/tmpfiles.d/krb5-krb5kdc.conf:1: Line references path below legacy directory /var/run/, updating /var/run/krb5kdc → /run/krb5kdc; please update the tmpfiles.d/ drop-in file accordingly.

/usr/lib/tmpfiles.d/nagios.conf:1: Line references path below legacy directory /var/run/, updating /var/run/nagios → /run/nagios; please update the tmpfiles.d/ drop-in file accordingly.

  • Concern 2: nagios-plugins-ping rpm dependency for localhost was missed.

How long I need to wait until I can run following upgrade command on a fedora 33 ?

  • sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-5689072a7e

Currently, this command is not pulling down the "*-3" pkg.

Hi @tartina Thanks for considering to add pkg dependency for default localhost monitoring. Following is the list of rpms I found.

nagios-plugins-ping nagios-plugins-load nagios-plugins-users nagios-plugins-http nagios-plugins-disk nagios-plugins-ssh nagios-plugins-swap nagios-plugins-procs

Thanks @tartina

sorry, I tested on fedora-33, not 34.

nagios-4.4.6 on fedora-34 is OK using my extra post-install notes above.

Following 3 steps to have a localhost entry to see localhost got monitor from http://localhost/nagios/ * yum install nagios-plugins-ping * mkdir /etc/nagios/conf.d && chgrp nagios /etc/nagios/conf.d * systemctl start nagios httpd

Here is my fresh install test notes

  • on CentOS Linux release 7.9.2009 (Core)
  • yum install nagios --enablerepo=epel-testing
  • yum install -y nagios-plugins-load nagios-plugins-users nagios-plugins-http nagios-plugins-disk nagios-plugins-ssh nagios-plugins-swap nagios-plugins-procs --enablerepo=epel-testing
  • testing existing default config files come with pkg.

[root@centos7t01 ~]# nagios -v /etc/nagios/nagios.cfg

Nagios Core 4.4.6 Copyright (c) 2009-present Nagios Core Development Team and Community Contributors Copyright (c) 1999-2009 Ethan Galstad Last Modified: 2020-04-28 License: GPL

Website: https://www.nagios.org Reading configuration data... Read main config file okay... Error: Could not open config directory '/etc/nagios/conf.d' for reading. Error: Invalid max_check_attempts value for host 'localhost' Error: Could not register host (config file '/etc/nagios/objects/localhost.cfg', starting on line 21) Error processing object config files!

One or more problems was encountered while processing the config files...

Check your configuration file(s) to ensure that they contain valid
directives and data definitions.  If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version.  Make sure to read

the HTML documentation regarding the config files, as well as the 'Whats New' section to find out what has changed.

[root@centos7t01 ~]#

karma

I see the fix here. chmod -x /builddir/build/BUILDROOT/nagios-4.4.6-2.el7.x86_64/usr/lib/systemd/system/nagios.service

BZ#1676334 /usr/lib/systemd/system/nagios.service marked executable; please remove executable permission bits
BZ#1829114 nagios-4.4.6 is available
BZ#1849087 CVE-2020-13977 nagios: URL injection (post-authentication) vulnerability [epel-all]