Nagios3 сообщает, что localhost не выполняет ping, но проверка ping не записывается

Nagios3 и Ubuntu 14 с отключенными ping-запросами.

localhosts продолжает сообщать в интерфейсе nagios графического интерфейса пользователя, что он не работает.

Это значение по умолчанию "localhost_nagios2.cfg", которое можно найти в каталоге conf.d после установки:

# A simple configuration file for monitoring the local host
# This can serve as an example for configuring other servers;
# Custom services specific to this host are added here, but services
# defined in nagios2-common_services.cfg may also apply.
#

define host{
        use                     generic-host            ; Name of host template to use
        host_name               localhost
        alias                   localhost
        address                 127.0.0.1
        }

# Define a service to check the disk space of the root partition
# on the local machine.  Warning if < 20% free, critical if
# < 10% free space on partition.

define service{
        use                             generic-service         ; Name of service template to use
        host_name                       localhost
        service_description             Disk Space
        check_command                   check_all_disks!20%!10%
        }



# Define a service to check the number of currently logged in
# users on the local machine.  Warning if > 20 users, critical
# if > 50 users.

define service{
        use                             generic-service         ; Name of service template to use
        host_name                       localhost
        service_description             Current Users
        check_command                   check_users!20!50
        }


# Define a service to check the number of currently running procs
# on the local machine.  Warning if > 250 processes, critical if
# > 400 processes.

define service{
        use                             generic-service         ; Name of service template to use
        host_name                       localhost
        service_description             Total Processes
                check_command                   check_procs!250!400
        }



# Define a service to check the load on the local machine.

define service{
    use                             generic-service         ; Name of service template to use
    host_name                       localhost
    service_description             Current Load
            check_command                   check_load!5.0!4.0!3.0!10.0!6.0!4.0
    }

Это довольно много из коробки config. Я изменил generic-host, чтобы ничего не пинговать:

# Generic host definition template - This is NOT a real host, just a template!

define host{
        name                            generic-host    ; The name of this host template
        notifications_enabled           1       ; Host notifications are enabled
        event_handler_enabled           1       ; Host event handler is enabled
        flap_detection_enabled          1       ; Flap detection is enabled
        failure_prediction_enabled      1       ; Failure prediction is enabled
        process_perf_data               1       ; Process performance data
        retain_status_information       1       ; Retain status information across program restarts
        retain_nonstatus_information    1       ; Retain non-status information across program restarts
                max_check_attempts              10
                notification_interval           0
                notification_period             24x7
                notification_options            d,u,r
                contact_groups                  admins
        register                        0       ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
        }

Остальные серверы, за которыми я наблюдаю, в порядке, и nagios не проверяет их. однако nagios не перестанет жаловаться, что локальный хост не работает с критическим состоянием ... в PING: t запускать для них какие-либо проверки связи. однако nagios не перестанет жаловаться на критическое состояние локального хоста ... в PING: t запускать какие-либо проверки связи с ними. однако nagios не перестанет жаловаться на критическое состояние локального хоста ... в PING: enter image description here

Я изучал предложения Google более часа и не могу понять, как отключить эту проверку.

Мой вопрос: Действительно ли он выключен и находится в заблокированном «неактивном» состоянии, или я пропустил еще одну настройку, чтобы локальный хост не запускал проверку связи?

Спасибо. Джон

0
задан 19 June 2016 в 14:30
1 ответ

Вы должны использовать something для проверки хоста, иначе состояние никогда не изменится.

Обратите внимание, что «Последняя проверка» была сделана 17-го, даже если вы сделали этот снимок экрана 19-го?

Если вы не хотите использовать check_ping , выберите другой плагин для проверки хоста. Или просто позвольте ему пинговать localhost; В этом нет ничего плохого, хотя это кажется ненужным.

Также есть check_dummy , который вы можете использовать, чтобы всегда возвращать UP для проверки хоста.

1
ответ дан 4 December 2019 в 16:35

Теги

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