Révision 17f78427
Whitespace cleanup
- remove trailing whitespace
- remove empty lines at the end of files
| plugins/groupwise/snmp__gwia_msgs_ | ||
|---|---|---|
| 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 |
# * gwiaStatMsgsOut - 1.3.6.1.4.1.23.2.70.1.7. |
| 39 | 39 |
# * gwiaStatMsgsIn - 1.3.6.1.4.1.23.2.70.1.8. |
| 40 | 40 |
# * gwiaStatStatusesOut - 1.3.6.1.4.1.23.2.70.1.9. |
| 41 |
# * gwiaStatStatusesIn - 1.3.6.1.4.1.23.2.70.1.10.
|
|
| 42 |
# * gwiaStatErrorsOut - 1.3.6.1.4.1.23.2.70.1.11.
|
|
| 41 |
# * gwiaStatStatusesIn - 1.3.6.1.4.1.23.2.70.1.10. |
|
| 42 |
# * gwiaStatErrorsOut - 1.3.6.1.4.1.23.2.70.1.11. |
|
| 43 | 43 |
# * gwiaStatErrorsIn - 1.3.6.1.4.1.23.2.70.1.12. |
| 44 | 44 |
# |
| 45 | 45 |
# Usage: |
| 46 | 46 |
# -------------- |
| 47 |
# Link this file snmp__gwia_msgs_ to your nodes servicedir [/etc/munin/plugins]
|
|
| 47 |
# Link this file snmp__gwia_msgs_ to your nodes servicedir [/etc/munin/plugins] |
|
| 48 | 48 |
# |
| 49 |
# as:
|
|
| 50 |
# snmp_<host>_gwia_msgs_<pos>
|
|
| 49 |
# as: |
|
| 50 |
# snmp_<host>_gwia_msgs_<pos> |
|
| 51 | 51 |
# |
| 52 | 52 |
# with: |
| 53 |
# <host> = Name or IP-Number of host
|
|
| 53 |
# <host> = Name or IP-Number of host |
|
| 54 | 54 |
# <pos> = table index of the GWIA Object |
| 55 |
#
|
|
| 55 |
# |
|
| 56 | 56 |
# E.g. |
| 57 | 57 |
# ln -s /usr/share/munin/plugins/snmp__gwia_msgs_ \ |
| 58 | 58 |
# /etc/munin/plugins/snmp_foo.example.com_gwia_msgs_0 |
| 59 |
# ...will monitor a single GWIA object on host foo.example.com.
|
|
| 59 |
# ...will monitor a single GWIA object on host foo.example.com. |
|
| 60 | 60 |
# |
| 61 | 61 |
# Parameters |
| 62 | 62 |
# community - Specify wich community string to use (Default: public) |
| 63 | 63 |
# port - Specify which port to read from (Default: 161) |
| 64 | 64 |
# host - Specify which host to monitor (Default: Read from link in servicedir) |
| 65 |
# pos - Specify which table Object to read (Default: Read from link in servicedir,
|
|
| 66 |
#
|
|
| 65 |
# pos - Specify which table Object to read (Default: Read from link in servicedir, |
|
| 66 |
# |
|
| 67 | 67 |
# You may adjust settings to your need via configuration in plugin-conf.d/munin-node: |
| 68 | 68 |
# [snmp_*_gwia_msgs_*] |
| 69 | 69 |
# env.port <your_port_number> |
| 70 | 70 |
# env.community <your SNMP community string> |
| 71 |
# env.pos <your objects table position. Values: 0,1,2,..>
|
|
| 71 |
# env.pos <your objects table position. Values: 0,1,2,..> |
|
| 72 | 72 |
# env.host <name or IP of your host> |
| 73 | 73 |
# |
| 74 | 74 |
# Parameters can also be specified on a per GWIA basis, eg: |
| ... | ... | |
| 104 | 104 |
my $ERRORS_CRITICAL=10; |
| 105 | 105 |
|
| 106 | 106 |
if (defined $ARGV[0] and $ARGV[0] eq "snmpconf") |
| 107 |
{
|
|
| 108 |
print "require 1.3.6.1.4.1.23.2.70.1.1. [.*]\n"; # gwiaGatewayName
|
|
| 107 |
{
|
|
| 108 |
print "require 1.3.6.1.4.1.23.2.70.1.1. [.*]\n"; # gwiaGatewayName |
|
| 109 | 109 |
print "require 1.3.6.1.4.1.23.2.70.1.7. [\\d*]\n"; # gwiaStatMsgsOut |
| 110 | 110 |
print "require 1.3.6.1.4.1.23.2.70.1.8. [\\d*]\n"; # gwiaStatMsgsIn |
| 111 | 111 |
print "require 1.3.6.1.4.1.23.2.70.1.11. [\\d*]\n"; # gwiaStatErrorsOut |
| ... | ... | |
| 141 | 141 |
if (defined $ARGV[0] and $ARGV[0] eq "config") |
| 142 | 142 |
{
|
| 143 | 143 |
|
| 144 |
# get name of Internet Agent
|
|
| 145 |
my $gwname = &get_single ($session, "1.3.6.1.4.1.23.2.70.1.1.$pos"); # gwiaGatewayName
|
|
| 144 |
# get name of Internet Agent |
|
| 145 |
my $gwname = &get_single ($session, "1.3.6.1.4.1.23.2.70.1.1.$pos"); # gwiaGatewayName |
|
| 146 | 146 |
|
| 147 | 147 |
# output to munin |
| 148 | 148 |
print "host_name $host |
Formats disponibles : Unified diff