Hosts and Hostgroups

Host definitions will be saved in /usr/local/nagios/etc/hosts.cfg.

define host{
    host_name               Bogus-server
    alias                   Bogus Server #1
    address                 192.168.1.12
    check_command           check-host-alive
    max_check_attempts      5
    check_period            24x7
    process_perf_data       0
    contact_groups          admins
    notification_interval   30
    notification_period     24x7
    notification_options    d,u,r
    }

Depending on many services you plan on monitoring, it might be easier to store host group definitions in a separate file: /usr/local/nagios/etc/hostgroups.cfg. Otherwise, you can simply include them in /usr/local/nagios/etc/host.cfg

define hostgroup{
        hostgroup_name       mail
        alias                   Mail Servers
        members                 mailserver1,mailserver2
        }

Recent Updates

  • 11 months 1 week ago
    1.27.2 update
  • 11 months 3 weeks ago
    Drupal 10/11 config
  • 11 months 3 weeks ago
  • PHP
    11 months 3 weeks ago
    PHP 8.3.11 and AlmaLinux
  • 11 months 3 weeks ago
    New version of Pound