Premier commit
This commit is contained in:
159
roles/nagios/files/cfg/localhost.cfg
Normal file
159
roles/nagios/files/cfg/localhost.cfg
Normal file
@@ -0,0 +1,159 @@
|
||||
###############################################################################
|
||||
# LOCALHOST.CFG - SAMPLE OBJECT CONFIG FILE FOR MONITORING THIS MACHINE
|
||||
#
|
||||
#
|
||||
# NOTE: This config file is intended to serve as an *extremely* simple
|
||||
# example of how you can create configuration entries to monitor
|
||||
# the local (Linux) machine.
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
|
||||
|
||||
###############################################################################
|
||||
#
|
||||
# HOST DEFINITION
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
# 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.
|
||||
host_name localhost
|
||||
alias localhost
|
||||
address 127.0.0.1
|
||||
}
|
||||
|
||||
|
||||
|
||||
###############################################################################
|
||||
#
|
||||
# HOST GROUP DEFINITION
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
# 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
|
||||
}
|
||||
|
||||
|
||||
|
||||
###############################################################################
|
||||
#
|
||||
# SERVICE DEFINITIONS
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
# Define a service to "ping" the local machine
|
||||
|
||||
define service {
|
||||
|
||||
use local-service ; Name of service template to use
|
||||
host_name localhost
|
||||
service_description PING
|
||||
check_command check_ping!100.0,20%!500.0,60%
|
||||
}
|
||||
|
||||
|
||||
|
||||
# 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 local-service ; Name of service template to use
|
||||
host_name localhost
|
||||
service_description Root Partition
|
||||
check_command check_local_disk!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 local-service ; Name of service template to use
|
||||
host_name localhost
|
||||
service_description Current Users
|
||||
check_command check_local_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 local-service ; Name of service template to use
|
||||
host_name localhost
|
||||
service_description Total Processes
|
||||
check_command check_local_procs!250!400!RSZDT
|
||||
}
|
||||
|
||||
|
||||
|
||||
# Define a service to check the load on the local machine.
|
||||
|
||||
define service {
|
||||
|
||||
use local-service ; Name of service template to use
|
||||
host_name localhost
|
||||
service_description Current Load
|
||||
check_command check_local_load!5.0,4.0,3.0!10.0,6.0,4.0
|
||||
}
|
||||
|
||||
|
||||
|
||||
# Define a service to check the swap usage the local machine.
|
||||
# Critical if less than 10% of swap is free, warning if less than 20% is free
|
||||
|
||||
define service {
|
||||
|
||||
use local-service ; Name of service template to use
|
||||
host_name localhost
|
||||
service_description Swap Usage
|
||||
check_command check_local_swap!20%!10%
|
||||
}
|
||||
|
||||
|
||||
|
||||
# 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
|
||||
}
|
15
roles/nagios/files/cfg/r-ext.cfg
Normal file
15
roles/nagios/files/cfg/r-ext.cfg
Normal file
@@ -0,0 +1,15 @@
|
||||
# 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 linux-server ; Name of host template to use
|
||||
host_name r-ext
|
||||
alias serveur proxy
|
||||
address 192.168.200.253
|
||||
parents r-int
|
||||
}
|
||||
|
||||
|
14
roles/nagios/files/cfg/r-int.cfg
Normal file
14
roles/nagios/files/cfg/r-int.cfg
Normal file
@@ -0,0 +1,14 @@
|
||||
# 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 linux-server ; Name of host template to use
|
||||
host_name r-int
|
||||
alias serveur proxy
|
||||
address 172.16.0.254
|
||||
}
|
||||
|
||||
|
13
roles/nagios/files/cfg/s-adm.cfg
Normal file
13
roles/nagios/files/cfg/s-adm.cfg
Normal file
@@ -0,0 +1,13 @@
|
||||
# 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 linux-server ; Name of host template to use
|
||||
host_name s-adm
|
||||
alias debian-servers
|
||||
address 192.168.99.99
|
||||
}
|
||||
|
13
roles/nagios/files/cfg/s-appli.cfg
Normal file
13
roles/nagios/files/cfg/s-appli.cfg
Normal file
@@ -0,0 +1,13 @@
|
||||
# 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 linux-server ; Name of host template to use
|
||||
host_name s-appli
|
||||
alias debian-servers
|
||||
address 172.16.0.3
|
||||
}
|
||||
|
13
roles/nagios/files/cfg/s-backup.cfg
Normal file
13
roles/nagios/files/cfg/s-backup.cfg
Normal file
@@ -0,0 +1,13 @@
|
||||
# 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 linux-server ; Name of host template to use
|
||||
host_name s-backup
|
||||
alias serveur proxy
|
||||
address 172.16.0.4
|
||||
}
|
||||
|
14
roles/nagios/files/cfg/s-fog.cfg
Normal file
14
roles/nagios/files/cfg/s-fog.cfg
Normal file
@@ -0,0 +1,14 @@
|
||||
# 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 linux-server ; Name of host template to use
|
||||
host_name s-fog
|
||||
alias serveur proxy
|
||||
address 172.16.0.16
|
||||
}
|
||||
|
||||
|
13
roles/nagios/files/cfg/s-infra.cfg
Normal file
13
roles/nagios/files/cfg/s-infra.cfg
Normal file
@@ -0,0 +1,13 @@
|
||||
# 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 linux-server ; Name of host template to use
|
||||
host_name s-infra
|
||||
alias debian-servers
|
||||
address 172.16.0.1
|
||||
}
|
||||
|
14
roles/nagios/files/cfg/s-itil.cfg
Normal file
14
roles/nagios/files/cfg/s-itil.cfg
Normal file
@@ -0,0 +1,14 @@
|
||||
# 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 linux-server ; Name of host template to use
|
||||
host_name s-itil
|
||||
alias serveur proxy
|
||||
address 172.16.0.9
|
||||
}
|
||||
|
||||
|
13
roles/nagios/files/cfg/s-nxc.cfg
Normal file
13
roles/nagios/files/cfg/s-nxc.cfg
Normal file
@@ -0,0 +1,13 @@
|
||||
# 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 linux-server ; Name of host template to use
|
||||
host_name s-nxc
|
||||
alias debian-servers
|
||||
address 172.16.0.7
|
||||
}
|
||||
|
14
roles/nagios/files/cfg/s-proxy.cfg
Normal file
14
roles/nagios/files/cfg/s-proxy.cfg
Normal file
@@ -0,0 +1,14 @@
|
||||
# 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 linux-server ; Name of host template to use
|
||||
host_name s-proxy
|
||||
alias serveur proxy
|
||||
address 172.16.0.2
|
||||
}
|
||||
|
||||
|
14
roles/nagios/files/cfg/s-win.cfg
Normal file
14
roles/nagios/files/cfg/s-win.cfg
Normal file
@@ -0,0 +1,14 @@
|
||||
# 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 linux-server ; Name of host template to use
|
||||
host_name s-win
|
||||
alias serveur proxy
|
||||
address 172.16.0.6
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user