Nagios Error

Error: livestatus: Unable to bind adress /var/log/nagios/rw/live to UNIX socket: No such file or directory
Reason: nagios.cfg file got error
Solution: change the /usr/local/nagios/etc/nagios.cfg file 
at the button of the file:
From /var/log/nagios/rw/live to /usr/local/nagios/var/rw/live

Error: after install check_mk, nagios can not start
In nagios log(/usr/local/nagios/var/nagios.log): could not load module '/usr/lib/check_mk/livestatus.o'
Reason: nagios 4.0 do not support check_mk livestatus
Solution: change the /usr/local/nagios/etc/nagios.cfg file
disable following line
# Load Livestatus Module
#broker_module=/usr/lib/check_mk/livestatus.o /usr/local/nagios/var/rw/live
#event_broker_options=-1


Error: check_mk Missing Nagios command pipe '/var/log/nagios/rw/nagios.cmd'
Reason: the file does not exist in /var/log/nagios/rw. but in /usr/local/nagios/var/rw
Solution: add one line in /etc/check_mk/main.mk
nagios_command_pipe_path = "/usr/local/nagios/var/rw/nagios.cmd"

Error: configure: error: Perl Module Time::HiRes not available
Reason: missing package
Solution: yum install perl-Time-HiRes

Error: livestatus live file live file permission
Solutino: chown nagios:nagios /usr/local/nagios/var/rw
chmod g+rwx /usr/local/nagios/var/rw
chmod g+s /usr/local/nagios/var/rw

Error: Permission denied /etc/check_mk/conf.d/wato/contacts.mk
Solution: change the setting in /etc/sysconfig/selinux 
from SELINUX=enforcing 
to SELINUS=disabled

Comments

Post a Comment

Popular posts from this blog

Nginx Proxy & Load Balance & LNMP

Snort+barnyard2+Snorby CentOS 6.5_64 Installation

ORACLE Error