Précédent   Forum des professionnels en informatique > Systèmes > Linux > Réseau
Réseau Vos questions autour des réseaux et télécoms sous Linux
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 26/06/2008, 15h53   #1
Invité de passage
 
Inscription : juin 2007
Messages : 38
Détails du profil
Informations forums :
Inscription : juin 2007
Messages : 38
Points : 1
Points : 1
Par défaut nagios et les routeurs

juste a propos de nagios je veux savoir est ce que nagios peut superviser les interfaces d'un routeur c'est a dire les ports(eth) et si c'est possible comment??
cordiale remerciemment.
3wicha est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 26/06/2008, 20h45   #2
Rédacteur/Modérateur
 
Avatar de gorgonite
 
Homme Nicolas Vallée
Ingénieur Système
Inscription : décembre 2005
Messages : 9 774
Détails du profil
Informations personnelles :
Nom : Homme Nicolas Vallée
Âge : 27
Localisation : France

Informations professionnelles :
Activité : Ingénieur Système
Secteur : Transports

Informations forums :
Inscription : décembre 2005
Messages : 9 774
Points : 14 303
Points : 14 303
via l'interface snmp du routeur
__________________
Evitez les MP pour les questions techniques... il y a des forums
Contributions sur DVP : Mes Tutos | Mon Blog
gorgonite est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 26/06/2008, 23h13   #3
Invité de passage
 
Inscription : juin 2007
Messages : 38
Détails du profil
Informations forums :
Inscription : juin 2007
Messages : 38
Points : 1
Points : 1
comment je dois faire pour configurer tt ca??
3wicha est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/06/2008, 13h24   #4
Rédacteur/Modérateur
 
Avatar de gorgonite
 
Homme Nicolas Vallée
Ingénieur Système
Inscription : décembre 2005
Messages : 9 774
Détails du profil
Informations personnelles :
Nom : Homme Nicolas Vallée
Âge : 27
Localisation : France

Informations professionnelles :
Activité : Ingénieur Système
Secteur : Transports

Informations forums :
Inscription : décembre 2005
Messages : 9 774
Points : 14 303
Points : 14 303
ben faut étudier la MIB de ton routeur, et passer par check_snmp
__________________
Evitez les MP pour les questions techniques... il y a des forums
Contributions sur DVP : Mes Tutos | Mon Blog
gorgonite est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 28/06/2008, 20h58   #5
Invité de passage
 
Inscription : juin 2007
Messages : 38
Détails du profil
Informations forums :
Inscription : juin 2007
Messages : 38
Points : 1
Points : 1
comment je peux savoir si l'un des ports est up or down j'ai fait ca:

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
###############################################################################
# SWITCH.CFG - SAMPLE OBJECT CONFIG FILE FOR MONITORING A SWITCH
#
# Last Modified: 03-01-2007
#
# NOTE: This config file assumes that you are using the sample configuration
#	files that get installed with the Nagios quickstart guide:
#		commands.cfg
#		localhost.cfg
#
###############################################################################
 
 
# Define a template for switches that we can reuse
#define host{
#	name			generic-switch	; The name of this host template
#	use			generic-host	; Inherit default values from the generic-host template
#	check_period		24x7		; By default, switches are monitored round the clock
#	check_interval		5		; Switches are checked every 5 minutes
#	retry_interval		1		; Schedule host check retries at 1 minute intervals
#	max_check_attempts	10		; Check each switch 10 times (max)
#	check_command		check-host-alive	; Default command to check if routers are "alive"
#	notification_period	24x7		; Send notifications at any time
#	notification_interval	30		; Resend notifications every 30 minutes
#	notification_options	d,r		; Only send notifications for specific host states
#	contact_groups		admins		; Notifications get sent to the admins by default
#	register		0		; DONT REGISTER THIS - ITS JUST A TEMPLATE
#	}
 
 
 
# Define the switch that we'll be monitoring
 
define host{
	use		generic-switch		; Inherit default values from a template
	host_name	routeur	; The name we're giving to this switch
	alias		Routeur	; A longer name associated with the switch
	address		192.168.1.1		; IP address of the switch
	hostgroups	allhosts		; Host groups this switch is associated with
	}
 
 
 
# Create a service to PING to switch
 
define service{
	use			generic-service	; Inherit values from a template
	host_name		routeur 	; The name of the host the service is associated with
	service_description	PING		; The service description
	check_command		check_ping!200.0,20%!600.0,60%	; The command used to monitor the service
	normal_check_interval	5		; Check the service every 5 minutes under normal conditions
	retry_check_interval	1		; Re-check the service every minute until its final/hard state is determined
	}
 
 
# Monitor uptime via SNMP
 
define service{
	use			generic-service	; Inherit values from a template
	host_name		routeur
	service_description	Uptime	
	check_command		check_snmp!-C public  -o sysUpTime.0
	}
 
 
 
# Monitor Port 1 status via SNMP
 
define service{
	use			generic-service	; Inherit values from a template
	host_name		routeur
	service_description	Port 1 Link Status
	check_command		check_snmp!-C public  -o ifOperStatus.1 -r 1 -m RFC1213-MIB
	}
 
 
 
# Monitor bandwidth via MRTG logs
 
define service{
	use			generic-service	; Inherit values from a template
	host_name		routeur 
	service_description	Port 1 Bandwidth Usage
	check_command		check_local_mrtgtraf!/var/www/html/mrtg/192.168.1.1_2.log!AVG!1000000,1000000!5000000,5000000!10
	}
mais pour le ping ca se passe
pour
Code :
1
2
3
4
5
6
7
8
9
10
11
Port 1 Bandwidth Usage
 
	UNKNOWN 	06-28-2008 19:50:18 	0d 0h 31m 51s 	3/3 	check_mrtgtraf: Impossible d'ouvrir le fichier de log de MRTG 
 
Port 1 Link Status
 
	CRITICAL 	06-28-2008 19:51:47 	0d 0h 30m 22s 	3/3 	(Return code of 127 is out of bounds - plugin may be missing) 
 
Uptime
 
	CRITICAL 	06-28-2008 19:53:15 	0d 0h 28m 54s 	3/3 	(Return code of 127 is out of bounds - plugin may be missing)
pk il me donne ces erreurs et comment dois je faire pour superviser l'etat des ports
3wicha est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 20h57.


 
 
 
 
Partenaires

Hébergement Web