Projet

Général

Profil

Révision 17f78427

ID17f784270ae966ee9a13e9f5104a5b8f925b639e
Parent ef851f0c
Enfant d4320aea, 5b2396a9

Ajouté par Lars Kruse il y a plus de 7 ans

Whitespace cleanup

  • remove trailing whitespace
  • remove empty lines at the end of files

Voir les différences:

plugins/groupwise/snmp__gwmta_msgs_
23 23
# ------------------------------------------------------------
24 24
# Plugin to monitor Novell Groupwise MTA (GWMTA)
25 25
# ------------------------------------------------------------
26
# 
27
# Management Information Base (MIB) GWMTA-MIB 
26
#
27
# Management Information Base (MIB) GWMTA-MIB
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 GWMTA, type
33 33
# snmpwalk -v1 -c public -m GWMTA-MIB <HOST> gwmta
34 34
#
35
# This plugin fetches:  
35
# This plugin fetches:
36 36
#
37
# * mtaDomainName 1.3.6.1.4.1.23.2.37.1.1.1.2. 
38
# * mtaTenMinuteRoutedMsgs - 1.3.6.1.4.1.23.2.37.1.1.1.10. 
37
# * mtaDomainName 1.3.6.1.4.1.23.2.37.1.1.1.2.
38
# * mtaTenMinuteRoutedMsgs - 1.3.6.1.4.1.23.2.37.1.1.1.10.
39 39
# * mtaTenMinuteUndeliverableMsgs - 1.3.6.1.4.1.23.2.37.1.1.1.12.
40 40
# * mtaTenMinuteErrorMsgs - 1.3.6.1.4.1.23.2.37.1.1.1.14.
41 41
#
42 42
# Usage:
43 43
# --------------
44
# Link this file snmp__gwmta_msgs_ to your nodes servicedir [/etc/munin/plugins] 
44
# Link this file snmp__gwmta_msgs_ to your nodes servicedir [/etc/munin/plugins]
45 45
#
46
# as: 
47
#   snmp_<host>_gwmta_msgs_<pos>  
46
# as:
47
#   snmp_<host>_gwmta_msgs_<pos>
48 48
#
49 49
# with:
50
#   <host> = Name or IP-Number of host 
50
#   <host> = Name or IP-Number of host
51 51
#   <pos> = table index of the GWMTA Object
52
# 
52
#
53 53
# E.g.
54 54
#    ln -s /usr/share/munin/plugins/snmp__gwmta_msgs_ \
55 55
#    /etc/munin/plugins/snmp_foo.example.com_gwmta_msgs_0
56
# ...will monitor a single GWMTA object on host foo.example.com. 
56
# ...will monitor a single GWMTA object on host foo.example.com.
57 57
#
58 58
# Parameters
59 59
#	community - Specify wich community string to use (Default: public)
60 60
# 	port - Specify which port to read from (Default: 161)
61 61
#	host - Specify which host to monitor (Default: Read from link in servicedir)
62
#	pos - Specify which table Object to read (Default: Read from link in servicedir, 
63
# 
62
#	pos - Specify which table Object to read (Default: Read from link in servicedir,
63
#
64 64
# You may adjust settings to your need via configuration in plugin-conf.d/munin-node:
65 65
#   [snmp_*_gwmta_msgs_*]
66 66
#   env.port <your_port_number>
67 67
#   env.community <your SNMP community string>
68
#   env.pos <your objects table position. Values: 0,1,2,..> 
68
#   env.pos <your objects table position. Values: 0,1,2,..>
69 69
#   env.host <name or IP of your host>
70 70
#
71 71
# Parameters can also be specified on a per GWMTA basis, eg:
......
104 104

  
105 105
if (defined $ARGV[0] and $ARGV[0] eq "snmpconf")
106 106
{
107
	print "index 1.3.6.1.4.1.23.2.37.1.1.1.1.\n"; # mtaIndex 	
108
	print "require 1.3.6.1.4.1.23.2.37.1.1.1.2. \n"; # mtaDomainName 
107
	print "index 1.3.6.1.4.1.23.2.37.1.1.1.1.\n"; # mtaIndex
108
	print "require 1.3.6.1.4.1.23.2.37.1.1.1.2. \n"; # mtaDomainName
109 109
	print "require 1.3.6.1.4.1.23.2.37.1.1.1.10. [\\d+]\n"; # mtaTenMinuteRoutedMsgs
110 110
	print "require 1.3.6.1.4.1.23.2.37.1.1.1.12. [\\d+]\n"; # mtaTenMinuteUndeliverableMsgs
111 111
	print "require 1.3.6.1.4.1.23.2.37.1.1.1.14. [\\d+]\n"; # mtaTenMinuteErrorMsgs
......
137 137

  
138 138
if (defined $ARGV[0] and $ARGV[0] eq "config")
139 139
{
140
	# get name of domain 
141
	my $domain = &get_single ($session, "1.3.6.1.4.1.23.2.37.1.1.1.2.$pos"); # mtaDomainName 
140
	# get name of domain
141
	my $domain = &get_single ($session, "1.3.6.1.4.1.23.2.37.1.1.1.2.$pos"); # mtaDomainName
142 142

  
143 143
        # output to munin
144 144
	print "host_name $host
145 145
graph_category mail
146 146
graph_args --base 1000
147 147
graph_period $GRAPH_PERIOD
148
graph_title GWMTA load ($domain) 
149
graph_info Monitors status of Groupwise MTA, here: $domain. It reports values for the last 10 minutes. 
148
graph_title GWMTA load ($domain)
149
graph_info Monitors status of Groupwise MTA, here: $domain. It reports values for the last 10 minutes.
150 150
graph_vlabel $GRAPH_VLABEL
151 151
graph_args -l 0
152 152
routed.label $ROUTED_LABEL
153
routed.info mtaTenMinuteRoutedMsgs (1.3.6.1.4.1.23.2.37.1.1.1.10.) 
153
routed.info mtaTenMinuteRoutedMsgs (1.3.6.1.4.1.23.2.37.1.1.1.10.)
154 154
routed.critical $ROUTED_CRITICAL
155 155
routed.type GAUGE
156 156
routed.min 0

Formats disponibles : Unified diff