Update Nagios on epel and fedora please

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
joseluismantilla
Posts: 1
Joined: Thu Dec 15, 2016 6:04 pm

Update Nagios on epel and fedora please

Post by joseluismantilla »

Hello everyone

Can anyone help me with the update of nagios on Fedora and Epel repository?

I have installed manually on Fedora25 an old version but there is a mistake with the socket and selinux.

Please, I would appreciate someone include the fix in the package creating inluding this script like postinstall.

---The fix is---

#cat > /tmp/nagios-socket.te <<BEG
module nagios-socket 1.0;
require {
type nagios_t;
type nagios_log_t;
class sock_file { write create unlink };
class unix_stream_socket connectto;
}
allow nagios_t nagios_log_t:sock_file { write create unlink };
allow nagios_t self:unix_stream_socket connectto;
BEG

yum install policycoreutils-python -y
cd /tmp;checkmodule -M -m -o nagios-socket.mod nagios-socket.te
semodule_package -o nagios-socket.pp -m nagios-socket.mod
semodule -i nagios-socket.pp
install -d -m 755 -o nagios -g nagios /var/log/nagios/rw
systemctl restart nagios && systemctl status nagios

Greetings from Colombia

Thank you
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Update Nagios on epel and fedora please

Post by mcapra »

If you're referring to providing a fix to the nagios package included in the Fedora repositories, we do not have control over that package. You'd be best off contacting the individual responsible for maintaining that package:
https://apps.fedoraproject.org/packages/nagios
Former Nagios employee
https://www.mcapra.com/
Locked