Révision 17f78427
Whitespace cleanup
- remove trailing whitespace
- remove empty lines at the end of files
| plugins/groupwise/snmp__gwpoa_ | ||
|---|---|---|
| 23 | 23 |
# ------------------------------------------------------------ |
| 24 | 24 |
# Plugin to monitor Novell Groupwise Post Office Agent (POA) |
| 25 | 25 |
# ------------------------------------------------------------ |
| 26 |
#
|
|
| 27 |
# Management Information Base (MIB) GWPOA
|
|
| 26 |
# |
|
| 27 |
# Management Information Base (MIB) GWPOA |
|
| 28 | 28 |
# |
| 29 | 29 |
# Naming Tree: 1.3.6.1.4.1.23 |
| 30 | 30 |
# iso(1) org(3) dod(6) internet(1) private(4) enterprises(1) novell(23) |
| ... | ... | |
| 32 | 32 |
# To see all values available for your GWPOA, type |
| 33 | 33 |
# snmpwalk -v1 -c public -m GWPOA-MIB <HOST> gwpoa |
| 34 | 34 |
# |
| 35 |
# This plugin fetches:
|
|
| 35 |
# This plugin fetches: |
|
| 36 | 36 |
# |
| 37 | 37 |
# * poaPostOfficeName - 1.3.6.1.4.1.23.2.38.1.1.1.2. |
| 38 | 38 |
# * poaTotalMsgs - 1.3.6.1.4.1.23.2.38.1.1.1.3. |
| ... | ... | |
| 46 | 46 |
# with the hostname (host) and the table index (pos) of the POA-Object |
| 47 | 47 |
# defined in the linkage. |
| 48 | 48 |
# |
| 49 |
# snmp_<host>_gwpoa_<pos>
|
|
| 49 |
# snmp_<host>_gwpoa_<pos> |
|
| 50 | 50 |
# |
| 51 | 51 |
# with: |
| 52 |
# <host> = Name or IP-Number of host
|
|
| 52 |
# <host> = Name or IP-Number of host |
|
| 53 | 53 |
# <pos> = Table index of the POA Object |
| 54 | 54 |
# |
| 55 | 55 |
# |
| ... | ... | |
| 57 | 57 |
# ln -s /usr/share/munin/plugins/snmp__gwpoa_ \ |
| 58 | 58 |
# /etc/munin/plugins/snmp_foo.example.com_gwpoa_1 |
| 59 | 59 |
# |
| 60 |
# ...will monitor the first POA-Object on host foo.example.com.
|
|
| 60 |
# ...will monitor the first POA-Object on host foo.example.com. |
|
| 61 | 61 |
# |
| 62 | 62 |
# |
| 63 | 63 |
# Configuration: |
| ... | ... | |
| 66 | 66 |
# community - Specify wich community string to use (Default: public) |
| 67 | 67 |
# port - Specify which port to read from (Default: 161) |
| 68 | 68 |
# host - Specify which host to monitor (Default: Read from link in servicedir) |
| 69 |
# pos - Specify which table Object to read (Default: Read from link in servicedir,
|
|
| 70 |
#
|
|
| 69 |
# pos - Specify which table Object to read (Default: Read from link in servicedir, |
|
| 70 |
# |
|
| 71 | 71 |
# You may adjust settings via configuration in plugin-conf.d/munin-node: |
| 72 | 72 |
# [snmp_*_gwpoa_*] |
| 73 | 73 |
# env.port <your_port_number> |
| 74 | 74 |
# env.community <your SNMP community string> |
| 75 |
# env.pos <your table position. Values: 0,1,2,..>
|
|
| 75 |
# env.pos <your table position. Values: 0,1,2,..> |
|
| 76 | 76 |
# env.host <name or IP of your host> |
| 77 | 77 |
# |
| 78 | 78 |
# Parameters can also be specified on a per POA basis, eg: |
| ... | ... | |
| 103 | 103 |
my $GRAPH_PERIOD = "minute"; |
| 104 | 104 |
my $GRAPH_VLABEL = "messages per $GRAPH_PERIOD"; |
| 105 | 105 |
my $TOTAL_LABEL = "TotalMsgs"; |
| 106 |
my $UNDELIVERABLE_LABEL = "UndeliverableMsgs";
|
|
| 106 |
my $UNDELIVERABLE_LABEL = "UndeliverableMsgs"; |
|
| 107 | 107 |
my $PROBLEM_LABEL = "ProblemMsgs"; |
| 108 | 108 |
my $ERRORS_LABEL = "AdmErrorMsgs"; |
| 109 | 109 |
my $ERRORS_CRITICAL = 10; |
| 110 | 110 |
|
| 111 | 111 |
if (defined $ARGV[0] and $ARGV[0] eq "snmpconf") |
| 112 | 112 |
{
|
| 113 |
print "index 1.3.6.1.4.1.23.2.38.1.1.1.1.\n"; # gwpoa
|
|
| 114 |
print "require 1.3.6.1.4.1.23.2.38.1.1.1.2. [.*]\n"; # poaPostOfficeName
|
|
| 113 |
print "index 1.3.6.1.4.1.23.2.38.1.1.1.1.\n"; # gwpoa |
|
| 114 |
print "require 1.3.6.1.4.1.23.2.38.1.1.1.2. [.*]\n"; # poaPostOfficeName |
|
| 115 | 115 |
print "require 1.3.6.1.4.1.23.2.38.1.1.1.3. [\\d*]\n"; # poaTotalMsgs |
| 116 | 116 |
print "require 1.3.6.1.4.1.23.2.38.1.1.1.4. [\\d*]\n"; # poaProblemMsgs |
| 117 | 117 |
print "require 1.3.6.1.4.1.23.2.38.1.1.1.8. [\\d*]\n"; # poaUndeliverableMsgs |
| ... | ... | |
| 145 | 145 |
if (defined $ARGV[0] and $ARGV[0] eq "config") |
| 146 | 146 |
{
|
| 147 | 147 |
|
| 148 |
# get Post Office Name
|
|
| 149 |
my $poname = &get_single ($session, "1.3.6.1.4.1.23.2.38.1.1.1.2.$pos"); # poaPostOfficeName
|
|
| 148 |
# get Post Office Name |
|
| 149 |
my $poname = &get_single ($session, "1.3.6.1.4.1.23.2.38.1.1.1.2.$pos"); # poaPostOfficeName |
|
| 150 | 150 |
|
| 151 | 151 |
# output to munin |
| 152 | 152 |
print "host_name $host |
Formats disponibles : Unified diff