Slt tout le monde
j'ai installé nagios et j'ai configuré
mais j'ai un problème nagios ag=ffiche que tout les postes down
fichier de configuration
hosts.cfg:
define host{
name generic-host
check_command check-host-alive
max_check_attempts 2
check_interval 5
active_checks_enabled 1
passive_checks_enabled 0
check_period 24x7
obsess_over_host 0
check_freshness 0
event_handler_enabled 0
flap_detection_enabled 1
process_perf_data 0
retain_status_information 1
retain_nonstatus_information 1
contact_groups serveur-admin
notifications_enabled 1
notification_interval 60
notification_period 24x7
notification_options d,r,u
register 0
}
define host{
use generic-host ; Name of host template to use
host_name virtulWin
alias poste
address xxx.xxx.xxx.xxx
check_command check-host-alive
check_command check_http
check_command check_dns
low_flap_threshold 10.0
high_flap_threshold 30.0
}
define host{
use generic-host ; Name of host template to use
host_name linux
alias Serveur
address xxx.xxx.xxx.xxx
check_command check-host-alive
check_command check_http
check_command check_dns
low_flap_threshold 10.0
high_flap_threshold 30.0
}
define host{
use generic-host ; Name of host template to use
host_name virtulRed
alias poste
address xxx.xxx.xxx.xxx
check_command check-host-alive
check_command check_http
check_command check_dns
low_flap_threshold 10.0
high_flap_threshold 30.0
}
hostgroup.cfg
define hostgroup{
hostgroup_name serveurs
alias Servers
members linux,virtulWin,virtulRed
}
contacts.cfg
# 'serveur' contact definition
define contact{
contact_name serveur
alias Nagios Admin
service_notification_period 24x7
host_notification_period 24x7
service_notification_options w,u,c,r
host_notification_options d,u,r
service_notification_commands notify-by-email,notify-by-epager
host_notification_commands host-notify-by-email,host-notify-by-epager
email nagios-admin@localhost
pager pagenagios-admin@localhost
}
contactgroup.cfg
define contactgroup {
contactgroup_name serveur-admin
alias serveurs
members serveur
}
services.cfg
# Generic service definition template
define service{
name generic-service
active_checks_enabled 1
passive_checks_enabled 1
parallelize_check 1
obsess_over_service 1
check_freshness 0
notifications_enabled 1
event_handler_enabled 1
flap_detection_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
is_volatile 0
check_period 24x7
normal_check_interval 5
max_check_attempts 3
notifications if any
retry_check_interval 1
notification_interval 0
notification_period 24x7
notification_options c,r
register 0
}
define service{
use generic-service
host_name linux,virtulWin,virtulRed
service_description PING
contact_groups serveur-admin
check_command check_ping!100.0,20%!500.0,60%
}
define service{
use generic-service
host_name linux,virtulWin,virtulRed
service_description http
contact_groups serveur-admin
check_command check_http
}
define service{
use generic-service
host_name linux,virtulWin,virtulRed
service_description tcp
contact_groups serveur-admin
check_command check_tcp
}
define service{
use generic-service
host_name linux,virtulWin,virtulRed
service_description telnet
contact_groups serveur-admin
check_command check_tcp
}
define service{
use generic-service
host_name linux,virtulWin,virtulRed
service_description dns
contact_groups serveur-admin
check_command check_dns
}
merci d'avance