Révision 17f78427
Whitespace cleanup
- remove trailing whitespace
- remove empty lines at the end of files
| plugins/groupwise/snmp__gwia_bytes_ | ||
|---|---|---|
| 23 | 23 |
# ------------------------------------------------------------ |
| 24 | 24 |
# Plugin to monitor Novell Groupwise Internet Agent (GWIA) |
| 25 | 25 |
# ------------------------------------------------------------ |
| 26 |
#
|
|
| 27 |
# Management Information Base (MIB) GWIAMIB
|
|
| 26 |
# |
|
| 27 |
# Management Information Base (MIB) GWIAMIB |
|
| 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 GWIA, type |
| 33 | 33 |
# snmpwalk -v1 -c public -m GWIAMIB <HOST> gwia |
| 34 | 34 |
# |
| 35 |
# This plugin fetches:
|
|
| 35 |
# This plugin fetches: |
|
| 36 | 36 |
# |
| 37 | 37 |
# * gwiaGatewayName - 1.3.6.1.4.1.23.2.70.1.1. |
| 38 | 38 |
# * gwiaStatBytesIn - 1.3.6.1.4.1.23.2.70.1.6. |
| ... | ... | |
| 40 | 40 |
# |
| 41 | 41 |
# Usage: |
| 42 | 42 |
# -------------- |
| 43 |
# Link this file snmp__gwia_bytes_ to your nodes servicedir [/etc/munin/plugins]
|
|
| 43 |
# Link this file snmp__gwia_bytes_ to your nodes servicedir [/etc/munin/plugins] |
|
| 44 | 44 |
# |
| 45 |
# as:
|
|
| 46 |
# snmp_<host>_gwia_bytes_<pos>
|
|
| 45 |
# as: |
|
| 46 |
# snmp_<host>_gwia_bytes_<pos> |
|
| 47 | 47 |
# |
| 48 | 48 |
# with: |
| 49 |
# <host> = Name or IP-Number of host
|
|
| 49 |
# <host> = Name or IP-Number of host |
|
| 50 | 50 |
# <pos> = table index of the GWIA Object |
| 51 |
#
|
|
| 51 |
# |
|
| 52 | 52 |
# E.g. |
| 53 | 53 |
# ln -s /usr/share/munin/plugins/snmp__gwia_bytes_ \ |
| 54 | 54 |
# /etc/munin/plugins/snmp_foo.example.com_gwia_bytes_0 |
| 55 |
# ...will monitor a single GWIA object on host foo.example.com.
|
|
| 55 |
# ...will monitor a single GWIA object on host foo.example.com. |
|
| 56 | 56 |
# |
| 57 | 57 |
# Parameters |
| 58 | 58 |
# community - Specify wich community string to use (Default: public) |
| 59 | 59 |
# port - Specify which port to read from (Default: 161) |
| 60 | 60 |
# host - Specify which host to monitor (Default: Read from link in servicedir) |
| 61 |
# pos - Specify which table Object to read (Default: Read from link in servicedir,
|
|
| 62 |
#
|
|
| 61 |
# pos - Specify which table Object to read (Default: Read from link in servicedir, |
|
| 62 |
# |
|
| 63 | 63 |
# You may adjust settings to your need via configuration in plugin-conf.d/munin-node: |
| 64 | 64 |
# [snmp_*_gwia_bytes_*] |
| 65 | 65 |
# env.port <your_port_number> |
| 66 | 66 |
# env.community <your SNMP community string> |
| 67 |
# env.pos <your objects table position. Values: 0,1,2,..>
|
|
| 67 |
# env.pos <your objects table position. Values: 0,1,2,..> |
|
| 68 | 68 |
# env.host <name or IP of your host> |
| 69 | 69 |
# |
| 70 | 70 |
# Parameters can also be specified on a per GWIA basis, eg: |
| ... | ... | |
| 96 | 96 |
my $BYTES_LABEL='Bytes'; |
| 97 | 97 |
|
| 98 | 98 |
if (defined $ARGV[0] and $ARGV[0] eq "snmpconf") |
| 99 |
{
|
|
| 100 |
print "require 1.3.6.1.4.1.23.2.70.1.1. [.*]\n"; # gwiaGatewayName
|
|
| 99 |
{
|
|
| 100 |
print "require 1.3.6.1.4.1.23.2.70.1.1. [.*]\n"; # gwiaGatewayName |
|
| 101 | 101 |
print "require 1.3.6.1.4.1.23.2.70.1.6. [\\d*]\n"; # gwiaStatBytesIn |
| 102 | 102 |
print "require 1.3.6.1.4.1.23.2.70.1.5. [\\d*]\n"; # gwiaStatBytesOut |
| 103 | 103 |
|
| ... | ... | |
| 129 | 129 |
if (defined $ARGV[0] and $ARGV[0] eq "config") |
| 130 | 130 |
{
|
| 131 | 131 |
|
| 132 |
# get name of Internet Agent
|
|
| 133 |
my $gwname = &get_single ($session, "1.3.6.1.4.1.23.2.70.1.1.$pos"); # gwiaGatewayName
|
|
| 132 |
# get name of Internet Agent |
|
| 133 |
my $gwname = &get_single ($session, "1.3.6.1.4.1.23.2.70.1.1.$pos"); # gwiaGatewayName |
|
| 134 | 134 |
# output to munin |
| 135 | 135 |
print "host_name $host |
| 136 | 136 |
graph_category mail |
Formats disponibles : Unified diff