Nagios configuration for Liberia
ThatOneNeji
2020-07-16 5d68afe8079da0c961641f3a570ca12d24c779e9
nagios/objects/localhost.cfg
@@ -19,10 +19,7 @@
# Define a host for the local machine
define host {
    use                     linux-server            ; Name of host template to use
                                                    ; This host definition will inherit all variables that are defined
                                                    ; in (or inherited by) the linux-server host template definition.
    use                                linux-server
    host_name               localhost
    alias                   localhost
    address                 127.0.0.1
@@ -37,14 +34,11 @@
###############################################################################
# Define an optional hostgroup for Linux machines
define hostgroup {
    hostgroup_name          linux-servers           ; The name of the hostgroup
    alias                   Linux Servers           ; Long name of the group
    members                 localhost               ; Comma separated list of hosts that belong to this group
}
###############################################################################
@@ -98,11 +92,10 @@
# > 400 processes.
define service {
    use                     local-service           ; Name of service template to use
    host_name               localhost
    service_description     Total Processes
    check_command           check_local_procs!250!400!RSZDT
    check_command                      check_local_procs!700!900!RSZDT
}
@@ -132,28 +125,15 @@
# Define a service to check SSH on the local machine.
# Disable notifications for this service by default, as not all users may have SSH enabled.
define service {
    use                     local-service           ; Name of service template to use
    host_name               localhost
    service_description     SSH
    check_command           check_ssh
    notifications_enabled   0
}
# Define a service to check HTTP on the local machine.
# Disable notifications for this service by default, as not all users may have HTTP enabled.
define service {
    use                     local-service           ; Name of service template to use
    host_name               localhost
    service_description     HTTP
    check_command           check_http
    notifications_enabled   0
}
#define service {
#    use                                local-service           ; Name of service template to use
#    host_name                          localhost
#    service_description                HTTP
#    #check_command                      check_http
#    check_command                      check_url!443!1.0!60.0!"Apache"!"/sm/"
#    notifications_enabled              0
#}