установка nagiosgraph в Suse Leap 15.2

kerberos

Случайный прохожий
Доброго времени суток! Решил пересобрать сервер который выполнял роль диспетчерского пульта и мониторинга. Собираю на Linux OpenSuse Leap 15.2. Уже поставил обновления и установил nagios с плагинами perl, nrpe и прочими. Воткнулся в проблему - хочу поставить nagiosgraph но нигде не могу найти как его установить. В YAST пакет с именем 'nagiosgraph' он не находит. Нашел вот такое:
Для openSUSE Leap 15.2 запустите от имени root:
Код:
zypper addrepo https://download.opensuse.org/repositories/server:monitoring/openSUSE_Leap_15.2/server:monitoring.repo
zypper refresh
zypper install nagiosgraph

Но репозиторий отказывается добавляться по непонятным причинам...
Вывод вот такой.
Код:
nagios:/ # zypper install nagiosgraph
Loading repository data...
Reading installed packages...
'nagiosgraph' not found in package names. Trying capabilities.
No provider of 'nagiosgraph' found.
Resolving package dependencies...

Nothing to do.
nagios:/ # su zypper addrepo https://download.opensuse.org/repositories/server:monitoring/openSUSE_Leap_15.2/server:monitoring.repo
su: user zypper does not exist
nagios:/ # sudo zypper addrepo https://download.opensuse.org/repositories/server:monitoring/openSUSE_Leap_15.2/server:monitoring.repo
Download (curl) error for 'https://download.opensuse.org/repositories/server:monitoring/openSUSE_Leap_15.2/server:monitoring.repo':
Error code: Curl error 60
Error message: SSL certificate problem: self signed certificate in certificate chain

Abort, retry, ignore? [a/r/i/...? shows all options] (a):

Подскажите как поставить nagiosgraph в suse ?:unsure:
 
Так же возможно я что то еще не донастроил в httpd.conf так как в сам nagios я тоже пока зайти не могу - в браузере я получаю ошибку:
Доступ запрещён!
У Вас нет прав доступа к этой директории. Отсутствует индексный файл, или директория недоступна для чтения.
Если Вы считаете, что это ошибка сервера, пожалуйста, сообщите об этом веб-мастеру.
Error 403
 
Вот примерно такая картина
[Thu Nov 26 10:45:21.022565 2020] [autoindex:error] [pid 7758] [client X.X.X.X:26375] AH01276: Cannot serve directory /usr/share/nagios/: No matching DirectoryIndex (index.html,index.html.var) found, and server-generated directory index forbidden by Options directive
[Thu Nov 26 10:45:22.780972 2020] [autoindex:error] [pid 7758] [client X.X.X.X:26375] AH01276: Cannot serve directory /usr/share/nagios/: No matching DirectoryIndex (index.html,index.html.var) found, and server-generated directory index forbidden by Options directive
 
Либо основной файл httpd.conf, либо файл .htaccess в этом каталоге или ближайшем родительском каталоге, вероятно, включает:
Options -Indexes
Попробуйте заменить на
Options +Indexes
 
Либо основной файл httpd.conf, либо файл .htaccess в этом каталоге или ближайшем родительском каталоге, вероятно, включает:
Options -Indexes
Попробуйте заменить на
Options +Indexes
Попробовал, теперь при переходе вебморду я вижу это
1606377579048.png
 
Cannot serve directory /usr/share/nagios/: No matching DirectoryIndex (index.html,index.html.var) found
Посмотрите что в этой директории?
 
Cannot serve directory /usr/share/nagios/: No matching DirectoryIndex (index.html,index.html.var) found
Посмотрите что в этой директории?
Попробовал поставить дополнительные плагины к nagios
В журналах теперь
[Thu Nov 26 11:19:51.225422 2020] [autoindex:error] [pid 11996] [client 172.17.150.197:61424] AH01276: Cannot serve directory /usr/share/nagios-themes/exfoliation/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
В nagios.conf какие то странные строки
Код:
<IfDefine KOHANA2>
DirectoryIndex index.html index.php
</IfDefine>
 
Последнее редактирование:
попробуйте проверить установку nagios с ключом -v
/usr/sbin/nagios -v /etc/nagios/nagios.cfg
 
nagios:/usr/sbin # /usr/sbin/nagios -v /etc/nagios/nagios.cfg

Nagios Core 4.4.5
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2019-08-20
License: GPL

Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...

Running pre-flight check on configuration data...

Checking objects...
Checked 8 services.
Checked 1 hosts.
Checked 1 host groups.
Checked 0 service groups.
Checked 1 contacts.
Checked 1 contact groups.
Checked 24 commands.
Checked 5 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 1 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 5 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 0


Things look okay - No serious problems were detected during the pre-flight check
 
Так. В вебморду я попал - удалил пакет темы exfoliation и подравил корневую директорию, но теперь другой головняк
nagios Error: Could not read host and service status information!
 
проверить nagios.log или apache error.log
 
[Thu Nov 26 12:13:00.235062 2020] [php7:notice] [pid 11539] [client X.X.X.X:27661] PHP Notice: Trying to access array offset on value of type bool in /usr/share/nagios/includes/utils.inc.php on line 217, referer:
 
UPD
Разобрался сам Дело было в неверных путях вот в этих файлах
Main Configuration File Location

Format:main_config_file=<file_name>
Example:main_config_file=/usr/local/nagios/etc/nagios.cfg
This specifies the location of your main configuration file. The CGIs need to know where to find this file in order to get information about configuration information, current host and service status, etc.

Physical HTML Path

Format:physical_html_path=<path>
Example:physical_html_path=/usr/local/nagios/share
This is the physical path where the HTML files for Nagios are kept on your workstation or server. Nagios assumes that the documentation and images files (used by the CGIs) are stored in subdirectories called docs/ and images/, respectively.


 
Теперь осталась вишенка на торте - как все таки nagiosgraph установить?:rolleyes:
 
Теперь осталась вишенка на торте - как все таки nagiosgraph установить?:rolleyes:
Добавить репозиторий и установить вручную
Для openSUSE Tumbleweed запустите от имени root:
Код:
zypper addrepo https://download.opensuse.org/repositories/server:monitoring/openSUSE_Tumbleweed/server:monitoring.repo
zypper refresh
zypper install nagiosgraph
Для openSUSE Leap 15.2 ports запустите от имени root:
Код:
zypper addrepo https://download.opensuse.org/repositories/server:monitoring/openSUSE_Leap_15.2_ports/server:monitoring.repo
zypper refresh
zypper install nagiosgraph
Для openSUSE Leap 15.2 запустите от имени root:
Код:
zypper addrepo https://download.opensuse.org/repositories/server:monitoring/openSUSE_Leap_15.2/server:monitoring.repo
zypper refresh
zypper install nagiosgraph
Для openSUSE Leap 15.1 ARM запустите от имени root:
Код:
zypper addrepo https://download.opensuse.org/repositories/server:monitoring/openSUSE_Leap_15.1_ARM/server:monitoring.repo
zypper refresh
zypper install nagiosgraph
Для openSUSE Leap 15.1 запустите от имени root:
Код:
zypper addrepo https://download.opensuse.org/repositories/server:monitoring/openSUSE_Leap_15.1/server:monitoring.repo
zypper refresh
zypper install nagiosgraph
Для openSUSE Factory zSystems запустите от имени root:
Код:
zypper addrepo https://download.opensuse.org/repositories/server:monitoring/openSUSE_Factory_zSystems/server:monitoring.repo
zypper refresh
zypper install nagiosgraph
Для openSUSE Factory PowerPC standard запустите от имени root:
Код:
zypper addrepo https://download.opensuse.org/repositories/server:monitoring/openSUSE_Factory_PowerPC_standard/server:monitoring.repo
zypper refresh
zypper install nagiosgraph
Для openSUSE Factory ARM запустите от имени root:
Код:
zypper addrepo https://download.opensuse.org/repositories/server:monitoring/openSUSE_Factory_ARM/server:monitoring.repo
zypper refresh
zypper install nagiosgraph
Получить бинарные пакеты напрямую
 
Последний вопрос пожалуй, как строить график в nagios ? Я имею в виду что один объект зависит от другого (ну например сервер от свитча и такого то порта) где настраиваются эти зависимости ?
 
Последний вопрос пожалуй, как строить график в nagios ? Я имею в виду что один объект зависит от другого (ну например сервер от свитча и такого то порта) где настраиваются эти зависимости ?
Это настраивается в описаниях объектов, ВОТ годный пост по теме.
 
Назад
Верх Низ