Page 1 of 1

Update Nagios on epel and fedora please

Posted: Thu Dec 15, 2016 6:14 pm
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

Re: Update Nagios on epel and fedora please

Posted: Fri Dec 16, 2016 10:53 am
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