View Full Version : Problèmes Hosts Down
clemmatt
02-21-2006, 12:07 PM
Oui Bonjour,
Alors maintenant que ç marche à peu près, j'ai configuré les services et tout mais cependant sur l'interface, mes 3 hosts sont DOWN pourtant il me donne bien le détails des services :?: :?: :?:
Comprend pô !
Sinon j'ai un check-disk-free space qui ne me donne pas l'espace libre :?: :?:
Comprend pô non plus !
Quelq'un ?
merci
surcouf
02-21-2006, 12:25 PM
Oui Bonjour,
Alors maintenant que ç marche à peu près, j'ai configuré les services et tout mais cependant sur l'interface, mes 3 hosts sont DOWN pourtant il me donne bien le détails des services :?: :?: :?:
Comprend pô !
Ce serait plus simple avec la description de la commande "check-host-alive" ou autre si tu en as défini une autre pour la directive "check_command" de tes différents hôtes. Cette commande doit certainement échouer et s'il s'agit de la commande par défaut, tes hôtes ne répondent donc pas via ICMP.
Sinon j'ai un check-disk-free space qui ne me donne pas l'espace libre :?: :?:
Comprend pô non plus !
Il nous faudrait, là encore, la description de la commande en question.
clemmatt
02-21-2006, 12:43 PM
où est ce que je trouve cela dans checkcommands.cfg ??? :oops:
ou
dans minimal.cfg ? :oops:
Voilà déja mes erreurs sous nagios :
http://img96.imageshack.us/img96/3320/screenshot3cz.th.png (http://img96.imageshack.us/my.php?image=screenshot3cz.png)
surcouf
02-21-2006, 02:52 PM
où est ce que je trouve cela dans checkcommands.cfg ???
Colle-nous donc le fichier directement, ça ira plus vite.
Voilà déja mes erreurs sous nagios :
http://img96.imageshack.us/img96/3320/screenshot3cz.th.png (http://img96.imageshack.us/my.php?image=screenshot3cz.png)
C'est bien joli, mais à part te demander si tu es certain que les partitions /dev/fd0, /dev/fd0a et /dev/fd0b (en dehors du fait qu'il me semble que ce sont des lecteurs de disquettes...) sont bien présentes et que le plugin assurant les services "Total Processes" fonctionne mal, je ne vois pas comment t'aider à partir de cette simple copie d'écran.
clemmatt
02-21-2006, 03:16 PM
:oops: Olala jcroyais que c'etait les disques dur car dans /etc/dev j'ai Diskette0 , Diskette1 !!
Pffff décidement c'est vraiment une belle M_ _ _ _ ce solaris !
################################################## ##############################
# Sample object config file for Nagios
#
# Read the documentation for more information on this configuration file. I've
# provided some comments here, but things may not be so clear without further
# explanation, so make sure to read the HTML documentation!
#
# Last Modified: 12-15-2005
#
################################################## ##############################
################################################## ##############################
# COMMAND DEFINITIONS
#
# SYNTAX:
#
# define command{
# template <templatename>
# name <objectname>
# command_name <commandname>
# command_line <commandline>
# }
#
# WHERE:
#
# <templatename> = object name of another command definition that should be
# used as a template for this definition (optional)
# <objectname> = object name of command definition, referenced by other
# command definitions that use it as a template (optional)
# <commandname> = name of the command, as recognized/used by Nagios
# <commandline> = command line
#
################################################## ##############################
################################################## ##############################
#
# SAMPLE SERVICE CHECK COMMANDS
#
# These are some example service check commands. They may or may not work on
# your system, as they must be modified for your plugins. See the HTML
# documentation on the plugins for examples of how to configure command definitions.
#
################################################## ##############################
# 'check_dns' command definition
define command{
command_name check_dns
command_line $USER1$/check_dns -H www.yahoo.com -s $HOSTADDRESS$
}
# 'check_ftp' command definition
define command{
command_name check_ftp
command_line $USER1$/check_ftp -H $HOSTADDRESS$
}
# 'check_hpjd' command definition
define command{
command_name check_hpjd
command_line $USER1$/check_hpjd -H $HOSTADDRESS$ -C public
}
# 'check_http' command definition
define command{
command_name check_http
command_line $USER1$/check_http -H $HOSTADDRESS$
}
# 'check_local_disk' command definition
define command{
command_name check_local_disk
command_line $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
}
# 'check_local_load' command definition
define command{
command_name check_local_load
command_line $USER1$/check_load -w $ARG1$ -c $ARG2$
}
# 'check_local_procs' command definition
define command{
command_name check_local_procs
command_line $USER1$/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$
}
# 'check_local_users' command definition
define command{
command_name check_local_users
command_line $USER1$/check_users -w $ARG1$ -c $ARG2$
}
# 'check_nntp' command definition
define command{
command_name check_nntp
command_line $USER1$/check_nntp -H $HOSTADDRESS$
}
# 'check_ping' command definition
define command{
command_name check_ping
command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5
}
# 'check_pop' command definition
define command{
command_name check_pop
command_line $USER1$/check_pop -H $HOSTADDRESS$
}
# 'check_smtp' command definition
define command{
command_name check_smtp
command_line $USER1$/check_smtp -H $HOSTADDRESS$
}
# 'check_tcp' command definition
define command{
command_name check_tcp
command_line $USER1$/check_tcp -H $HOSTADDRESS$ -p $ARG1$
}
# 'check_telnet' command definition
define command{
command_name check_telnet
command_line $USER1$/check_tcp -H $HOSTADDRESS$ -p 23
}
# 'check_udp' command definition
define command{
command_name check_udp
command_line $USER1$/check_udp -H $HOSTADDRESS$ -p $ARG1$
}
################################################## ##############################
#
# SAMPLE HOST CHECK COMMANDS
#
################################################## ##############################
# This command checks to see if a host is "alive" by pinging it
# The check must result in a 100% packet loss or 5 second (5000ms) round trip
# average time to produce a critical error.
# Note: Only one ICMP echo packet is sent (determined by the '-p 1' argument)
# 'check-host-alive' command definition
define command{
command_name check-host-alive
command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 1
}
voila merci :wink: :roll:
surcouf
02-21-2006, 03:49 PM
:oops: Olala jcroyais que c'etait les disques dur car dans /etc/dev j'ai Diskette0 , Diskette1 !!
Pffff décidement c'est vraiment une belle M_ _ _ _ ce solaris !
C'est sûr qu'il est plus facile de s'en prendre au système qu'à soi-même.
Pour autant, Solaris est plutôt un bon système bien que sans doute plus difficile à prendre en main que Linux ou Windows.
################################################## ##############################
#
# SAMPLE HOST CHECK COMMANDS
#
################################################## ##############################
# This command checks to see if a host is "alive" by pinging it
# The check must result in a 100% packet loss or 5 second (5000ms) round trip
# average time to produce a critical error.
# Note: Only one ICMP echo packet is sent (determined by the '-p 1' argument)
# 'check-host-alive' command definition
define command{
command_name check-host-alive
command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 1
}
Si, comme je le présume, tu utilises bien cette commande pour tes hôtes, cela signifie qu'ils ne répondent pas via ICMP, tout simplement.
clemmatt
02-21-2006, 04:15 PM
Mouais...
Mais pourtant j'arrive bien à les "pinger"...
Peut etre mettre en place le check ping ?
là je sèche completement :!:
surcouf
02-21-2006, 05:27 PM
Mouais...
Mais pourtant j'arrive bien à les "pinger"...
Peut etre mettre en place le check ping ?
là je sèche completement :!:
Le meilleur test consiste à exécuter le plugin avec les arguments de la configuration, le tout en prenant soin d'être sous l'utilisateur de nagios.
DonKiShoot
02-22-2006, 10:49 AM
check_ping est parfois buggué ou necessite un sudo, moi je suis passé à check_fping de force.
templuche
02-22-2006, 10:58 AM
Bonjour,
check_ping est parfois buggué
Ha? Des exemples? Des cas où l'on peut reproduire le bug? Un contournement possible?
necessite un sudo
Ce ne serait pas plutôt check_icmp qui nécessite un sudo?
surcouf
02-22-2006, 11:28 AM
check_ping est parfois buggué ou necessite un sudo, moi je suis passé à check_fping de force.
Ce serait plutôt check_fping qui nécessiterait un sudo (voire un suid).
DonKiShoot
02-22-2006, 12:37 PM
check_ping est parfois buggué ou necessite un sudo, moi je suis passé à check_fping de force.
Ce serait plutôt check_fping qui nécessiterait un sudo (voire un suid).
Exact !
DonKiShoot
02-22-2006, 12:38 PM
Bonjour,
check_ping est parfois buggué
Ha? Des exemples? Des cas où l'on peut reproduire le bug? Un contournement possible?
necessite un sudo
Ce ne serait pas plutôt check_icmp qui nécessite un sudo?
Connait pas check_icmp :P
Mon contournement a été de passer par check_fping.
Reproduire le bug ? Aucune idée car c un bug que j'ai rencontré il y a plus d'un an.
clemmatt
02-22-2006, 02:34 PM
C bien beau de débattre mais jfais koi moi ???:cry: :cry: :cry:
J'ai bien les serviices qui s'affiche pour les Hosts mais mes hosts sont en rouge :oops:
clemmatt
02-22-2006, 02:38 PM
jai modifié dans minimal.cfg tout les check_ping par des check_fping ainsi que dans le fichier checkscommand et ça marche !!! mes hosts sont en vert
cependant pour le ping il met warning ::> no output ??
:(
surcouf
02-22-2006, 03:29 PM
jai modifié dans minimal.cfg tout les check_ping par des check_fping ainsi que dans le fichier checkscommand et ça marche !!! mes hosts sont en vert
cependant pour le ping il met warning ::> no output ??
Ça corrobore ce que je demandais il y a quelques posts:
test les plugins en ligne de commande (et en tant que nagios, si possible).
Ce genre de message d'erreur est généralement dû à un problème avec le plugin (en l'occurence pour check_fping, il faut lui faire un suid ou passer par sudo).
clemmatt
02-22-2006, 03:58 PM
Jveu bien mais je ne trouve pas quel ligne de commande il faut lancer !
il faut lui faire un suid ou passer par sudo
Comment on fais ça ???
surcouf
02-22-2006, 05:01 PM
Jveu bien mais je ne trouve pas quel ligne de commande il faut lancer !
il faut lui faire un suid ou passer par sudo
Comment on fais ça ???
Essaie déjà avec check_ping.