Configuration nagios
Fermé
bevakacha
Messages postés
6
Date d'inscription
dimanche 19 avril 2009
Statut
Membre
Dernière intervention
18 octobre 2010
-
19 avril 2009 à 15:26
bevakacha Messages postés 6 Date d'inscription dimanche 19 avril 2009 Statut Membre Dernière intervention 18 octobre 2010 - 20 avril 2009 à 11:06
bevakacha Messages postés 6 Date d'inscription dimanche 19 avril 2009 Statut Membre Dernière intervention 18 octobre 2010 - 20 avril 2009 à 11:06
A voir également:
- Configuration nagios
- Ethernet n'a pas de configuration ip valide - Guide
- Panneau de configuration - Guide
- Retablir configuration usine chromecast - Guide
- Connaitre configuration pc - Guide
- Configuration chromecast - Guide
3 réponses
linux4all
Messages postés
4
Date d'inscription
dimanche 19 avril 2009
Statut
Membre
Dernière intervention
26 avril 2009
19 avril 2009 à 18:07
19 avril 2009 à 18:07
essayer ca
find / -name "host*.cfg"
find / -name "host*.cfg"
bevakacha
Messages postés
6
Date d'inscription
dimanche 19 avril 2009
Statut
Membre
Dernière intervention
18 octobre 2010
19 avril 2009 à 23:00
19 avril 2009 à 23:00
fichier host.cfg n'existe pas que je dois faire
bevakacha
Messages postés
6
Date d'inscription
dimanche 19 avril 2009
Statut
Membre
Dernière intervention
18 octobre 2010
20 avril 2009 à 11:06
20 avril 2009 à 11:06
j'ai créé fichier hosts.cfg
# Generic host definition template
define host{
# The name of this host template - referenced i
name generic-host
n other host definitions, used for template recursion/resolution
# Host notifications are enabled
notifications_enabled 1
# Host event handler is enabled
event_handler_enabled 1
# Flap detection is enabled
flap_detection_enabled 1
# Process performance data
process_perf_data 1
# Retain status information across program restarts
retain_status_information 1
# Retain non-status information across program restarts
retain_nonstatus_information 1
# DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST,
# JUST A TEMPLATE!
register 0
}
# Host Definition
define host{
# Name of host template to use
use generic-host
host_name google.com
alias An Example Domain
address www.google.com
check_command check-host-alive
max_check_attempts 10
notification_interval 120
notification_period 24x7
notification_options d,u,r
}
puis créé fichier hostgroups.cfg
define hostgroup{
hostgroup_name linux-servers
alias linux-servers
contact_groups linux-servers
members google.com
}
puis aller sur interface nagios Show Host: www.google.com ne trouve pas cette machine
comment faire pour que cette configuration soit realisable
# Generic host definition template
define host{
# The name of this host template - referenced i
name generic-host
n other host definitions, used for template recursion/resolution
# Host notifications are enabled
notifications_enabled 1
# Host event handler is enabled
event_handler_enabled 1
# Flap detection is enabled
flap_detection_enabled 1
# Process performance data
process_perf_data 1
# Retain status information across program restarts
retain_status_information 1
# Retain non-status information across program restarts
retain_nonstatus_information 1
# DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST,
# JUST A TEMPLATE!
register 0
}
# Host Definition
define host{
# Name of host template to use
use generic-host
host_name google.com
alias An Example Domain
address www.google.com
check_command check-host-alive
max_check_attempts 10
notification_interval 120
notification_period 24x7
notification_options d,u,r
}
puis créé fichier hostgroups.cfg
define hostgroup{
hostgroup_name linux-servers
alias linux-servers
contact_groups linux-servers
members google.com
}
puis aller sur interface nagios Show Host: www.google.com ne trouve pas cette machine
comment faire pour que cette configuration soit realisable