Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
|
smokeping [Le 11/10/2011, 13:05] snoopy_p [Smokeping] |
smokeping [Le 11/09/2022, 11:56] (Version actuelle) moths-art Suppression des espaces en fin de ligne (détecté et corrigé via le bot wiki-corrector (https://forum.ubuntu-fr.org/viewtopic.php?id=2067892) |
||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | {{tag>réseau brouillon}} | ||
| ====== Smokeping ====== | ====== Smokeping ====== | ||
| **Outil de surveillance des temps de latence sur votre réseau.** | **Outil de surveillance des temps de latence sur votre réseau.** | ||
| + | |||
| + | ===== Mise en place ===== | ||
| + | |||
| + | |||
| * Installation: | * Installation: | ||
| <code>apt-get install smokeping</code> | <code>apt-get install smokeping</code> | ||
| Ligne 7: | Ligne 12: | ||
| * Accès à l'interface: | * Accès à l'interface: | ||
| <code>http://localhost/cgi-bin/smokeping.cgi</code> | <code>http://localhost/cgi-bin/smokeping.cgi</code> | ||
| - | * Changer l'Alias: | + | * Changer l'Alias de redirection: |
| <code>/etc/smokeping/apache2.conf</code> | <code>/etc/smokeping/apache2.conf</code> | ||
| \\ | \\ | ||
| * Configuration: | * Configuration: | ||
| - | La configuration comporte plusieurs fichiers: | + | La configuration comporte plusieurs fichiers (possibilité d'avoir tout dans un même fichier): |
| <code>/etc/smokeping/config.d/</code> | <code>/etc/smokeping/config.d/</code> | ||
| - | General --> Information de base \\ | + | General --> Information de base. \\ |
| - | Alerts --> Déclarer des alertes (sur mail) \\ | + | Alerts --> Déclarer des alertes (sur mail). \\ |
| - | Database --> Déclaration des bases RRD \\ | + | Database --> Déclaration des bases [[rrdtool|rrdtool]]: \\ |
| - | Presentation --> Mise en forme des graphs \\ | + | - Config du step, par défaut 300 sec (exécution du script toutes les 5 min). \\ |
| - | Probes --> Déclaration des probes, outils permettant la mesure (fping, httpping, etc.) | + | - Nombre de ping (par défaut 20). \\ |
| - | Voir les probes disponibles: [[http://oss.oetiker.ch/smokeping/probe/index.en.html|oss.oetiker.ch]] \\ | + | Presentation --> Mise en forme des graphs. \\ |
| - | Slaves --> Déclaration en Master/Esclave pour créer des sondes \\ | + | Probes --> Déclaration des probes, outils permettant la mesure (fping, httpping, etc.): \\ |
| - | Targets --> Déclaration des hosts à monitorer \\ | + | - Voir les probes disponibles: [[https://oss.oetiker.ch/smokeping/probe/index.en.html|oss.oetiker.ch]]. \\ |
| + | Slaves --> Déclaration en Master/Esclave pour créer des sondes. \\ | ||
| + | Targets --> Déclaration des hosts à monitorer. \\ | ||
| - | * Mod debug: | + | * Mode debug: |
| <code>/etc/init.d/smokeping stop | <code>/etc/init.d/smokeping stop | ||
| smokeping --debug</code> | smokeping --debug</code> | ||
| + | |||
| + | * Activer les logs dans syslog (éditer fichier General): | ||
| + | <code># specify this to get syslog logging | ||
| + | syslogfacility = local0 | ||
| + | syslogpriority = debug | ||
| + | </code> | ||
| + | |||
| + | Il faut ensuite modifier le syslog (ou rsyslog): | ||
| + | <code>local0.* /var/log/smokeping.log</code> | ||
| + | |||
| + | **Pouvez-vous préciser où et comment, s'il vous plait ?** | ||
| + | |||
| + | Créer le fichier: | ||
| + | <code>touch /var/log/smokeping | ||
| + | chmod 600 /var/log/smokeping | ||
| + | chown smokeping /var/log/smokeping</code> | ||
| + | |||
| + | Redémarrer: | ||
| + | <code>/etc/init.d/rsyslog restart</code> | ||
| \\ | \\ | ||
| - | * Exemple de Probe: | + | |
| + | ===== Exemple pour tester le temps de réponse HTTP d'un site web (avec/sans proxy, ntlm, echoping, curl): ===== | ||
| + | |||
| + | * Probe | ||
| <code> | <code> | ||
| *** Probes *** | *** Probes *** | ||
| - | |||
| + FPing | + FPing | ||
| binary = /usr/bin/fping | binary = /usr/bin/fping | ||
| # these expect to find echoping in /usr/bin | # these expect to find echoping in /usr/bin | ||
| - | # if not, you'll have to specify the location separately for each probe | + | # if not, you'll have to specify the location separately for each probe |
| - | # + EchoPing # uses TCP or UDP echo (port 7) | + | # + EchoPing # uses TCP or UDP echo (port 7) |
| - | # + EchoPingDiscard # uses TCP or UDP discard (port 9) | + | # + EchoPingDiscard # uses TCP or UDP discard (port 9) |
| - | # + EchoPingChargen # uses TCP chargen (port 19) | + | # + EchoPingChargen # uses TCP chargen (port 19) |
| - | + EchoPingSmtp # SMTP (25/tcp) for mail servers | + | + EchoPingSmtp # SMTP (25/tcp) for mail servers |
| - | + EchoPingHttps # HTTPS (443/tcp) for web servers | + | + EchoPingHttps # HTTPS (443/tcp) for web servers |
| - | + EchoPingHttp # HTTP (80/tcp) for web servers and caches | + | |
| - | accept_redirects = yes | + | + EchoPingHttp # HTTP (80/tcp) for web servers and caches |
| - | timeout = 5 | + | accept_redirects = yes |
| - | offset = 50% | + | timeout = 5 |
| - | revalidate_data = no | + | offset = 50% |
| - | + EchoPingIcp # ICP (3130/udp) for caches | + | revalidate_data = no |
| - | # these need at least echoping 6 with the corresponding plugins | + | |
| - | + EchoPingDNS # DNS (53/udp or tcp) servers | + | + EchoPingIcp # ICP (3130/udp) for caches |
| - | + EchoPingLDAP # LDAP (389/tcp) servers | + | # these need at least echoping 6 with the corresponding plugins |
| - | + EchoPingWhois # Whois (43/tcp) servers | + | + EchoPingDNS # DNS (53/udp or tcp) servers |
| + | + EchoPingLDAP # LDAP (389/tcp) servers | ||
| + | + EchoPingWhois # Whois (43/tcp) servers | ||
| + Curl | + Curl | ||
| Ligne 73: | Ligne 103: | ||
| \\ | \\ | ||
| - | * Exemple de Target: | + | * Target: |
| <code>*** Targets *** | <code>*** Targets *** | ||
| # default probe | # default probe | ||
| Ligne 102: | Ligne 132: | ||
| probe = Curl | probe = Curl | ||
| host = www.google.fr | host = www.google.fr | ||
| - | extraargs = --proxy-ntlm --proxy-user "domaine\\user:pass" --proxy http://192.168.0.1:80/ | + | extraargs = --proxy-ntlm --proxy-user domaine\user:pass --proxy http://192.168.0.1:80/ |
| ++ IP | ++ IP | ||
| Ligne 112: | Ligne 142: | ||
| \\ | \\ | ||
| - | A continuer. | + | A continuer. |
| - | (N'hésiter pas à me faire part de vos attentes). | + | (N'hésitez pas à me faire part de vos attentes). |
| + | |||
| + | ===== A partir d'Ubuntu 13.10 ===== | ||
| + | |||
| + | La nouvelle version 2.4.6 d'Apache2 introduit des changements dans la configuration de Smokeping. Pour tenir compte de ces changements, il faut effectuer les opérations suivantes: | ||
| + | |||
| + | * Ajoutez un lien smokeping | ||
| + | <code>sudo ln -s /etc/smokeping/apache2.conf /etc/apache2/conf-available/smokeping.conf</code> | ||
| + | * Activez les modules apache smokeping et cgid | ||
| + | <code>sudo a2enconf smokeping ; sudo a2enmod cgid</code> | ||
| + | * Relancez Apache2 | ||
| + | <code>sudo service apache2 reload</code> | ||
| + | * 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://localhost/smokeping/smokeping.fcgi.dist pour accéder à la page d'accueil, créer un lien symbolique d'index vers l'appel au CGI : | ||
| + | <code>cd /usr/share/smokeping/www/ | ||
| + | ln -s smokeping.fcgi.dist index.cgi</code> | ||
| + | Et juste accéder via http://localhost/smokeping | ||
| ===== Liens ===== | ===== Liens ===== | ||
| - | * [[http://oss.oetiker.ch/smokeping/doc/index.en.html|Documentation de Smokeping]] | + | * [[https://oss.oetiker.ch/smokeping/doc/index.en.html|Documentation de Smokeping]] |
| - | * [[http://tobi.oetiker.ch/hp/|Site de l'auteur]] | + | * [[https://tobi.oetiker.ch/hp/|Site de l'auteur]] |
| - | * [[http://oss.oetiker.ch/smokeping-demo/?target=Customers.OP|Demo de Smokeping]] | + | * [[https://oss.oetiker.ch/smokeping-demo/?target=Customers.OP|Demo de Smokeping]] |