Ajout fichier tp snmp_check
This commit is contained in:
42
sio2/SISR/Nagios/groups.cfg
Normal file
42
sio2/SISR/Nagios/groups.cfg
Normal file
@@ -0,0 +1,42 @@
|
||||
#
|
||||
# HOST GROUP DEFINITION
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
# Define an optional hostgroup for Linux machines
|
||||
|
||||
define hostgroup {
|
||||
|
||||
hostgroup_name snmp-servers ; The name of the hostgroup
|
||||
alias snmp Servers ; Long name of the group
|
||||
members srv ; Comma separated list of hosts that belong to this group
|
||||
}
|
||||
|
||||
|
||||
|
||||
###############################################################################
|
||||
#
|
||||
# SERVICE DEFINITIONS
|
||||
#
|
||||
###############################################################################
|
||||
|
||||
# Define a service to "ping" the local machine
|
||||
|
||||
# service de supervision de Load Linux avec SNMP
|
||||
# 3 valeurs : charge moyenne sur 1 min, 5 min, 15 min
|
||||
define service{
|
||||
use generic-service ;Use generic-service template
|
||||
hostgroup_name snmp-servers ; S'applique au groupe en question
|
||||
service_description chk-lin-load ; Nom du service
|
||||
check_command check_lin_load!public!--v2c!netsl!3,2,2!3,2,2 ; Command
|
||||
# servicegroups ser-lin-base ;Service belong servicegroup
|
||||
}
|
||||
|
||||
|
||||
define service{
|
||||
use generic-service ;Use generic-service template
|
||||
hostgroup_name snmp-servers ; S'applique au groupe en question
|
||||
service_description chk-lin-mem ; Nom du service
|
||||
check_command check_lin_mem!public!--v2c!80,20,2!100,30 ; Command
|
||||
# servicegroups ser-lin-base ;Service belong servicegroup
|
||||
}
|
||||
Reference in New Issue
Block a user