Nagios 2
This commit is contained in:
parent
0f66776b09
commit
e016dc6130
@ -73,7 +73,7 @@ use_pending_states=1
|
||||
# authentication (bad idea), while any other value will make them
|
||||
# use the authentication functions (the default).
|
||||
|
||||
use_authentication=0
|
||||
use_authentication=1
|
||||
|
||||
|
||||
|
||||
|
@ -42,7 +42,7 @@ define hostgroup {
|
||||
|
||||
hostgroup_name linux-servers ; The name of the hostgroup
|
||||
alias Linux Servers ; Long name of the group
|
||||
members localhost, srv, gwsio5 ; Comma separated list of hosts that belong to this group
|
||||
members localhost, srv, gwsio5, ns ; Comma separated list of hosts that belong to this group
|
||||
}
|
||||
|
||||
|
||||
@ -58,9 +58,11 @@ define hostgroup {
|
||||
define service {
|
||||
|
||||
use local-service ; Name of service template to use
|
||||
host_name localhost
|
||||
hostgroup_name linux-servers
|
||||
service_description PING
|
||||
check_command check_ping!100.0,20%!500.0,60%
|
||||
notifications_enabled 1
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -142,7 +144,7 @@ define service {
|
||||
hostgroup_name linux-servers
|
||||
service_description SSH
|
||||
check_command check_ssh
|
||||
notifications_enabled 0
|
||||
notifications_enabled 1
|
||||
}
|
||||
|
||||
|
||||
@ -153,9 +155,34 @@ define service {
|
||||
define service {
|
||||
|
||||
use local-service ; Name of service template to use
|
||||
host_name localhost
|
||||
#host_name localhost
|
||||
hostgroup_name linux-servers
|
||||
service_description HTTP
|
||||
check_command check_http
|
||||
notifications_enabled 0
|
||||
notifications_enabled 1
|
||||
}
|
||||
|
||||
|
||||
define service {
|
||||
|
||||
use generic-service ;Use generic-service template
|
||||
hostgroup_name linux-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
|
||||
}
|
||||
|
||||
define service {
|
||||
|
||||
use generic-service ;Use generic-service template
|
||||
hostgroup_name linux-servers ; S'applique au groupe en question
|
||||
service_description chk-lin-mem ; Nom du service
|
||||
check_command check_lin_mem!public!--v2c!70%,80%!90%,95% ; Command
|
||||
}
|
||||
|
||||
|
||||
define service{
|
||||
use generic-service
|
||||
hostgroup_name linux-servers
|
||||
service_description chk-dns-ext
|
||||
check_command check_dns_ext
|
||||
}
|
||||
|
@ -46,6 +46,7 @@ cfg_file=/etc/nagios4/objects/templates.cfg
|
||||
cfg_file=/etc/nagios4/objects/localhost.cfg
|
||||
cfg_file=/etc/nagios4/objects/srv.cfg
|
||||
cfg_file=/etc/nagios4/objects/gwsio5.cfg
|
||||
cfg_file=/etc/nagios4/objects/ns.cfg
|
||||
# Definitions for monitoring a Windows machine
|
||||
#cfg_file=/etc/nagios4/objects/windows.cfg
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user