анонимный доступ к icinga cgi

Я не могу думать о способе "аннулировать" запись. Опустейте, записи не разрешены.

Возможно, *.example.com A 1.2.3.4 предотвратил бы переопределение записей .local.example.com? Это кажется, что PowerDNS неправильно себя ведет от спецификации. Определенный домен Having local.example.com должен препятствовать тому, чтобы подстановочный знак топал на чем-либо в том домене. Можно ли отправить полные зональные файлы? Это разрешило бы много небольших вопросов.

1
задан 18 March 2013 в 14:58
2 ответа

I guess it's the typical dashboard question, which has been tricky in the past.

The option you are looking for is use_authentication=0 in cgi.cfg - though, this is actually a bad idea given your current setup with authorization by your existing users and such.

There's still another method in achieving that without harming your existing install - create another apache configuration serving your Classic UI below "/icinga-dashboard" and use Satisfy Any for the authorization, e.g. your local network. Though, SetEnvIf for the REMOTE_USER will be required then too, and some more advanced apache knowledge in general (or your preferred webserver).

A more easy method (but a bit more overhead) will be installing the Classic UI as a standalone application, having their own cgis/html and only reading the data source from Icinga Core, serving only what you require. Since we are using the Classic UI while developing Icinga2 Compatibility Layers, we finally made that happen with Icinga 1.9 release - you can install Classic UI Standalone by following this documentation: https://wiki.icinga.org/display/howtos/Setting+up+Icinga+Classic+UI+Standalone

1
ответ дан 4 December 2019 в 00:45

Я бы посоветовал вам использовать плагин check_http для отслеживания веб-страницы, которая запрашивает у вас аутентификацию. Check_http плагин имеет такую ​​функциональность, чтобы проверять состояние веб-страницы с параметрами, переданными с ним.

Ex: check_http -I <ipaddress of server> -H host_name.com -u /index.html -a username:password

Где, -I = IP-адрес сервера

-H = Имя хоста

-u = URL-адрес хоста (если есть). Пример: www.myhost.com/index.html[1287 impression-a = для аутентификации.

Определите команду для такого

 # 'check_http' command definition
    define command{
    command_name check_http_test
    command_line $USER1$/check_http -I $HOSTADDRESS$ $ARG1$ -a username:password
    }

Определите службу:

define service{
use local-service ; Name of service template to use
host_name hostname
service_description HTTP_AUTH
check_command check_http_test
notifications_enabled 0
}
0
ответ дан 4 December 2019 в 00:45

Теги

Похожие вопросы