FAQ   •  Поиск
Вход  •  Регистрация
 
nagios

 
Начать новую тему   Ответить на тему    Список форумов newssoft.ru -> Серверные команды
Предыдущая тема :: Следующая тема  
Автор Сообщение
admin
Site Admin


Зарегистрирован: 11.09.2008
Сообщения: 546

СообщениеДобавлено: Ср Апр 02, 2014 4:31 pm    Заголовок сообщения: nagios Ответить с цитатой

В случае, если выдается подобная ошибка Can’t locate Net/DNS.pm in @INC, то требуется установить этот модуль:1
2
3
4
5
6
7 http://www.net-dns.org/download/Net-DNS-0.66.tar.gz
tar zxf Net-DNS-0.66.tar.gz
cd Net-DNS-0.6
perl Makefile.PL
make
make test
make install

http://www.mahno.su/freebsd/nagios/check_dnsbl-monitorim-spam-listyi

Can't locate ExtUtils/MakeMaker.pm in @INC
Can't locate ExtUtils/MakeMaker.pm in @INC
Solution: yum install perl-ExtUtils-MakeMaker



yum install perl-Readonly
yum install perl-Nagios-Plugin

apt-get install libreadonly-perl
apt-get install libnet-dns-perl
apt-get install libnagios-plugin-net
apt-get install libnagios-plugin-dns



http://www.geilthings.com/wiki/Thrift#Can.27t_locate_ExtUtils.2FMakeMaker.pm_in_.40INC
Вернуться к началу
Посмотреть профиль Отправить личное сообщение Отправить e-mail
admin
Site Admin


Зарегистрирован: 11.09.2008
Сообщения: 546

СообщениеДобавлено: Чт Май 01, 2014 6:39 pm    Заголовок сообщения: Ответить с цитатой

Fix to Nagios is currently not checking for external commands


While I was deploying a new Nagios install to Monitor some Windows hosts I’ve came across the following error in Nagios’s web interface:

Sorry, but Nagios is currently not checking for external commands, so your command will not be committed!
Read the documentation for information on how to enable external commands...

This error is caused by an option configuration for /etc/nagios/nrpe.cfg (part of the nrpe-nagios-server Debian package.

The config variable in nrpe.cfg causing the error is check_external_command=0 , the fix comes to changing the variable to:

check_external_command=1

As well as restart the /etc/init.d/nagios-nrpe-server and /etc/init.d/nagios3 services:

debian:~# /etc/init.d/nagios3 restart
...
debian:~# /etc/init.d/nagios-nrpe-server
...

This changes has work out the error Sorry, but Nagios is currently not checking for external commands, so your command will not be committed! , however immediately after another kind of error appared in Nagios web interface when I tried to use the send Nagios commands button. The error was:

Error: Could not stat() command file '/var/lib/nagios3/rw/nagios.cmd'!

This error is due to a deb package, which seems to be affecting the current deb versions of Nagios shipped with Debian 6 Squeeze stable, as well as the Latest Ubuntu release 11.04.

Thanksfully there is a work around to the problem I found online, to fix it up I had to execute the commands:

debian:~# /etc/init.d/nagios3 stop debian:~# dpkg-statoverride --update --add nagios www-data 2710 /var/lib/nagios3/rw
debian:~# dpkg-statoverride --update --add nagios nagios 751 /var/lib/nagios3
debian:~# /etc/init.d/nagios3 start
Вернуться к началу
Посмотреть профиль Отправить личное сообщение Отправить e-mail
Показать сообщения:   
Начать новую тему   Ответить на тему    Список форумов newssoft.ru -> Серверные команды Часовой пояс: GMT + 3
Страница 1 из 1

 
Перейти:  
Вы не можете начинать темы
Вы не можете отвечать на сообщения
Вы не можете редактировать свои сообщения
Вы не можете удалять свои сообщения
Вы не можете голосовать в опросах


Powered by phpBB © 2001, 2005 phpBB Group
AllSat 22  - photographe de mariage - 2006