Le multiping permet d’avoir sur un même graphique le ping de plusieurs noms de domaine. Cela permet de comprendre quelques problèmes.
Voici donc les étapes :
Etape n°1 : : Ajouter dans /etc/munin/plugin-conf.d/munin-node (à la fin):
[multiping]
env.host www.orange.fr www.cyber-neurones.org
env.ping_args -c 3
Etape n°2 : : Le lien symbolique
$ sudo ln -s /usr/share/munin/plugins/multiping /etc/munin/plugins/multiping
$ sudo munin-node-configure
Normalement on doit voir :
...
multiping | yes |
...
Etape n°3 : : Relancer le service
$ sudo systemctl restart munin-node.service
Etape n°4 : Le test via le telnet :
$ telnet localhost 4949
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
list
cpu df df_inode entropy forks freeboxv5_atm freeboxv5_attenuation freeboxv5_crc freeboxv5_fec freeboxv5_hec freeboxv5_rates freeboxv5_snr freeboxv5_status freeboxv5_uptime fw_packets http_loadtime httpresponsetime if_err_eth0 if_err_wlan0 if_eth0 if_wlan0 interrupts load memory multiping munin_stats netstat nfs4_client nfs_client ntp_kernel_err ntp_kernel_pll_freq ntp_kernel_pll_off ntp_offset open_files open_inodes proc_pri processes swap temper_x threads uptime users vmstat
fetch multiping
site1_packetloss.value 0
site1.value 0.017078
site2_packetloss.value 0
site2.value 0.016857
L’autre solution de test :
$ sudo su - munin --shell=/bin/bash
$ /usr/share/munin/munin-update --debug --nofork --host localhost.localdomain --service multiping
Ou encore :
$ sudo munin-run multiping
site1_packetloss.value 0
site1.value 0.016789
site2_packetloss.value 0
site2.value 0.016709
Bien vérifier les DNS dans /etc/resolv.conf ( ou dans /etc/resolvconf.conf ), voir même faire un ping avant.
A noter que le multiping est dans la catégorie “network”.
Dernier point, si vous êtes sur une Raspberry il faut penser à installer dnsutils pour avoir les outils dig et nslookup:
$ apt-get install dnsutils
$ dig www.cyber-neurones.org
; <<>> DiG 9.10.3-P4-Raspbian <<>> www.cyber-neurones.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 58459
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1460
;; QUESTION SECTION:
;www.cyber-neurones.org. IN A
;; ANSWER SECTION:
www.cyber-neurones.org. 2881 IN A 188.130.25.102
www.cyber-neurones.org. 2881 IN A 188.130.25.202
;; Query time: 17 msec
;; SERVER: 81.253.149.10#53(81.253.149.10)
;; WHEN: Thu May 23 21:28:00 UTC 2019
;; MSG SIZE rcvd: 83
$ nslookup www.cyber-neurones.org
Server: 81.253.149.10
Address: 81.253.149.10#53
Non-authoritative answer:
Name: www.cyber-neurones.org
Address: 188.130.25.202
Name: www.cyber-neurones.org
Address: 188.130.25.102