Projet

Général

Profil

Révision 09b88141

ID09b88141b34940d100df10b95b60206979e9df17
Parent 384d482f
Enfant 3a2f2ec7

Ajouté par Lars Kruse il y a environ 5 ans

Improve documantion of many plugins

Specifically the configuration examples are now indented properly.

Voir les différences:

plugins/snmp/snmp__airport
1 1
#!/usr/bin/python
2 2
"""
3
Munin plugin to monitor various items of data from an Apple Airport
4
Express/Extreme or a Time Capsule.
5 3

  
6
v1.0 by Chris Jones <cmsj@tenshu.net>
7
Copyright (C) 2011 Chris Jones
8
This script is released under the GNU GPL v2 license.
4
=head1 NAME
5

  
6
Munin plugin to monitor various items of data from an Apple Airport Express/Extreme or a Time Capsule.
7

  
8

  
9
=head1 INSTALLATION
9 10

  
10 11
To use this plugin, use specially named symlinks:
11 12

  
12
cd /etc/munin/plugins
13
ln -s /path/to/snmp__airport snmp_myairport_airport_clients
14
ln -s /path/to/snmp__airport snmp_myairport_airport_dhcpclients
15
ln -s /path/to/snmp__airport snmp_myairport_airport_rate
16
ln -s /path/to/snmp__airport snmp_myairport_airport_signal
17
ln -s /path/to/snmp__airport snmp_myairport_airport_noise
13
 cd /etc/munin/plugins
14
 ln -s /path/to/snmp__airport snmp_myairport_airport_clients
15
 ln -s /path/to/snmp__airport snmp_myairport_airport_dhcpclients
16
 ln -s /path/to/snmp__airport snmp_myairport_airport_rate
17
 ln -s /path/to/snmp__airport snmp_myairport_airport_signal
18
 ln -s /path/to/snmp__airport snmp_myairport_airport_noise
18 19

  
19 20
NOTE: the name 'myairport' should be a valid hostname or IP address for your
20 21
      Airport. It can be any value, but it must not include the character '_'.
21 22

  
22 23
Now add a virtual host entry to your munin server's munin.conf:
23 24

  
24
[myairport]
25
    address 123.123.123.123
26
    user_node_name no
25
 [myairport]
26
 address 123.123.123.123
27
 user_node_name no
27 28

  
28 29
(with the correct IP address, obviously)
29 30

  
30 31
this will create a virtual host in munin for the airport named 'myairport' and
31 32
produce graphs for:
32
    * number of connected wireless clients
33
    * number of active DHCP leases
34
    * rate at which clients are connected (in Mb/s)
35
    * signal quality of connected clients (in dB)
36
    * noise level of connected clients (in dB)
37

  
38
# Magic markers
39
#%# capabilities=
40
#%# family=contrib manual
33

  
34
=over 4
35

  
36
=item number of connected wireless clients
37

  
38
=item number of active DHCP leases
39

  
40
=item rate at which clients are connected (in Mb/s)
41

  
42
=item signal quality of connected clients (in dB)
43

  
44
=item noise level of connected clients (in dB)
45

  
46
=back
47

  
48

  
49
=head1 AUTHORS
50

  
51
Copyright (C) 2011 Chris Jones <cmsj@tenshu.net>
52

  
53

  
54
=head1 LICENSE
55

  
56
This script is released under the GNU GPL v2 license.
57

  
58
SPDX-License-Identifier: GPL-2.0-only
59

  
60

  
61
=head1 MAGIC MARKERS
62

  
63
 #%# capabilities=
64
 #%# family=contrib manual
65

  
66

  
67
=cut
41 68
"""
42 69
import sys
43 70
import os

Formats disponibles : Unified diff