PDA

View Full Version : [réglé]Pb de status host


jigot
03-23-2006, 09:54 AM
Dans mes host configuré dans nagios, j'ai mon poste que j'éteint l'orsque je ne suis pas là.
Le soucis vien du fait que quand je r'allume mon pc, nagios affiche le status des services qui tourne dessus en OK mais le status de mon pc reste down.

Est ce un problème de configuration?

Voici la configuration pour ce poste sur lequel je surveille le HTTP et le Ping :

hosts.cfg

define host{
name generic-host
notifications_enabled 1
event_handler_enabled 0
flap_detection_enabled 0
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
register 0
}

define host{
use generic-host
host_name MonPC
alias Serveur_de_Test
address 192.168.1.118
check_command check-host-alive
max_check_attempts 10
notification_interval 180
notification_period 24x7
notification_options d,u,r
}


services.cfg

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 0
flap_detection_enabled 0
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
register 0
}

define service{
use generic-service
host_name MonPC
service_description HTTP
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups Admins
notification_interval 120
notification_period 24x7
notification_options w,u,c,r
check_command check_http
}

define service{
use generic-service
host_name MonPC
service_description PING
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups Admins
notification_interval 120
notification_period 24x7
notification_options c,r
check_command check-fast-alive
}

jigot
03-23-2006, 09:57 AM
Voila ce que m'affiche Nagios pour le status de cette machine :

Host State Information
Host Status: DOWN
Status Information: /bin/ping -n -U -w 10 -c 1 192.168.1.116
Last Status Check: 23-03-2006 09:00:08
Status Data Age: 0d 0h 0m 28s
Last State Change: 22-03-2006 17:50:28
Current State Duration: 0d 15h 10m 8s
Last Host Notification: N/A
Current Notification Number: 33
Is This Host Flapping? N/A
Percent State Change: N/A
In Scheduled Downtime? NO
Last Update: 23-03-2006 09:00:33

surcouf
03-23-2006, 09:59 AM
Voila ce que m'affiche Nagios pour le status de cette machine :

Host State Information
Host Status: DOWN
Status Information: /bin/ping -n -U -w 10 -c 1 192.168.1.116
Last Status Check: 23-03-2006 09:00:08
Status Data Age: 0d 0h 0m 28s
Last State Change: 22-03-2006 17:50:28
Current State Duration: 0d 15h 10m 8s
Last Host Notification: N/A
Current Notification Number: 33
Is This Host Flapping? N/A
Percent State Change: N/A
In Scheduled Downtime? NO
Last Update: 23-03-2006 09:00:33

Uniquement cet hôte ?
Si oui, sur quelle distribution a été installé Nagios ?

jigot
03-23-2006, 10:03 AM
Le problème e produit que sur cet host.

Et la version de nagios est la 1.3 installer sur une debian

surcouf
03-23-2006, 10:25 AM
Le problème e produit que sur cet host.

Et la version de nagios est la 1.3 installer sur une debian

Peux-tu aussi fournir les définitions des check_commands "check-host-alive" ainsi que "check-fast-alive" et peux-tu les tester toutes les deux en tant que Nagios ?

jigot
03-23-2006, 02:40 PM
Bon finalement ca semble fonctionner.

C'était peut être à cause de mes fréquentes modifications et redémarrage de nagios.