22 Ağustos 2008 Cuma

Nagios ve SELinux problemi. (CentOS 5 / RedHAT EL5)

CentOS 5 (RHEL 5) dekurulum yaptıktan sonra SELinux Enforcing modunda iken Nagios bir scripte ulaşmak istediğinde şöyle bir hata oluşuyor:

Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' for update!

Aynı zamanda SELinux Logunda şöeyle bir hata görülüyor:

SELinux is preventing cmd.cgi (httpd_sys_script_t) "write" to nagios.cmd (usr_t).

Düzeltmek için ise SELinux profilerinde değişiklik gerekiyor. Aşağıdaki komut çalıştırıldığında sorun halloluyor. Zaten SELinux logunda da hareket olamasındna anlayabiliriz bunu.

chcon -R -t httpd_sys_script_rw_t /usr/local/nagios/var/rw/

Hiç yorum yok: