Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| smokeping [Le 15/10/2011, 09:10] – il faudrait utiliser des minitutos, des sous titres et pourquoi pas mettre un contributeur 0ol | smokeping [Le 15/05/2017, 11:56] (Version actuelle) – [Liens] 91.183.142.178 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | {{tag> | ||
| + | ====== Smokeping ====== | ||
| + | **Outil de surveillance des temps de latence sur votre réseau.** | ||
| + | |||
| + | ===== Mise en place ===== | ||
| + | |||
| + | |||
| + | * Installation: | ||
| + | < | ||
| + | |||
| + | * Accès à l' | ||
| + | < | ||
| + | * Changer l' | ||
| + | < | ||
| + | \\ | ||
| + | * Configuration: | ||
| + | La configuration comporte plusieurs fichiers (possibilité d' | ||
| + | |||
| + | < | ||
| + | |||
| + | General --> Information de base. \\ | ||
| + | Alerts --> Déclarer des alertes (sur mail). \\ | ||
| + | Database --> Déclaration des bases [[rrdtool|rrdtool]]: | ||
| + | - Config du step, par défaut 300 sec (exécution du script toutes les 5 min). \\ | ||
| + | - Nombre de ping (par défaut 20). \\ | ||
| + | Presentation --> Mise en forme des graphs. \\ | ||
| + | Probes --> Déclaration des probes, outils permettant la mesure (fping, httpping, etc.): \\ | ||
| + | - Voir les probes disponibles: | ||
| + | Slaves --> Déclaration en Master/ | ||
| + | Targets --> Déclaration des hosts à monitorer. \\ | ||
| + | |||
| + | * Mode debug: | ||
| + | < | ||
| + | smokeping --debug</ | ||
| + | |||
| + | * Activer les logs dans syslog (éditer fichier General): | ||
| + | < | ||
| + | syslogfacility = local0 | ||
| + | syslogpriority = debug | ||
| + | </ | ||
| + | |||
| + | Il faut ensuite modifier le syslog (ou rsyslog): | ||
| + | < | ||
| + | |||
| + | **Pouvez-vous préciser où et comment, s'il vous plait ?** | ||
| + | |||
| + | Créer le fichier: | ||
| + | < | ||
| + | chmod 600 / | ||
| + | chown smokeping / | ||
| + | |||
| + | Redémarrer: | ||
| + | < | ||
| + | |||
| + | \\ | ||
| + | |||
| + | ===== Exemple pour tester temps de réponse HTTP de site web (avec/sans proxy, ntlm, echoping, curl): ===== | ||
| + | |||
| + | * Probe | ||
| + | < | ||
| + | *** Probes *** | ||
| + | + FPing | ||
| + | binary = / | ||
| + | |||
| + | # these expect to find echoping in /usr/bin | ||
| + | # if not, you'll have to specify the location separately for each probe | ||
| + | # + EchoPing | ||
| + | # + EchoPingDiscard | ||
| + | # + EchoPingChargen | ||
| + | + EchoPingSmtp | ||
| + | + EchoPingHttps | ||
| + | |||
| + | + EchoPingHttp | ||
| + | accept_redirects = yes | ||
| + | timeout = 5 | ||
| + | offset = 50% | ||
| + | revalidate_data = no | ||
| + | |||
| + | + EchoPingIcp | ||
| + | # these need at least echoping 6 with the corresponding plugins | ||
| + | + EchoPingDNS | ||
| + | + EchoPingLDAP | ||
| + | + EchoPingWhois | ||
| + | |||
| + | + Curl | ||
| + | | ||
| + | forks = 5 | ||
| + | | ||
| + | step = 300 | ||
| + | # The following variables can be overridden in each target section | ||
| + | agent = User-Agent: Lynx/ | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | pings = 5 | ||
| + | ssl2 = 1 | ||
| + | | ||
| + | | ||
| + | </ | ||
| + | |||
| + | \\ | ||
| + | * Target: | ||
| + | < | ||
| + | # default probe | ||
| + | probe = EchoPingHttp | ||
| + | |||
| + | menu = Top | ||
| + | title = Network Latency Grapher | ||
| + | | ||
| + | |||
| + | + Mesures Echoping HTTP | ||
| + | menu = Mesures | ||
| + | title = Mesures | ||
| + | |||
| + | # Equip1 (Echoping par proxy) | ||
| + | |||
| + | ++ Equip1-google | ||
| + | menu = Equip1-google | ||
| + | title = Equip1-www.google.fr | ||
| + | host = 192.168.0.255 | ||
| + | port = 80 | ||
| + | url = http:// | ||
| + | |||
| + | + Mesure Curl | ||
| + | menu = Mesure Curl | ||
| + | |||
| + | ++ NTLM | ||
| + | menu = NTLM | ||
| + | probe = Curl | ||
| + | host = www.google.fr | ||
| + | extraargs = --proxy-ntlm --proxy-user domaine\user: | ||
| + | |||
| + | ++ IP | ||
| + | probe = Curl | ||
| + | menu = IP | ||
| + | host = www.google.fr | ||
| + | extraargs = --proxy http:// | ||
| + | </ | ||
| + | |||
| + | \\ | ||
| + | A continuer. | ||
| + | (N' | ||
| + | |||
| + | ===== A partir d' | ||
| + | |||
| + | La nouvelle version | ||
| + | |||
| + | * Ajoutez un lien | ||
| + | < | ||
| + | * Activez les modules apache smokeping et cgid | ||
| + | < | ||
| + | * Relancez Apache2 | ||
| + | < | ||
| + | * Vérifiez le fonctionnement de Smokeping sur un navigateur Web | ||
| + | |||
| + | Ubuntu 14.04 / apache 2.4.7 | ||
| + | Pour éviter de saisir l'URL complétée par http:// | ||
| + | < | ||
| + | ln -s smokeping.fcgi.dist index.cgi</ | ||
| + | Et juste accéder via http:// | ||
| + | ===== Liens ===== | ||
| + | * [[http:// | ||
| + | * [[http:// | ||
| + | * [[http:// | ||
