mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
Whitespace cleanup
* remove trailing whitespace * remove empty lines at the end of files
This commit is contained in:
parent
ef851f0c34
commit
17f784270a
604 changed files with 2927 additions and 2945 deletions
|
@ -23,8 +23,8 @@
|
|||
# ------------------------------------------------------------
|
||||
# Plugin to monitor Novell Groupwise Internet Agent (GWIA)
|
||||
# ------------------------------------------------------------
|
||||
#
|
||||
# Management Information Base (MIB) GWIAMIB
|
||||
#
|
||||
# Management Information Base (MIB) GWIAMIB
|
||||
#
|
||||
# Naming Tree: 1.3.6.1.4.1.23
|
||||
# iso(1) org(3) dod(6) internet(1) private(4) enterprises(1) novell(23)
|
||||
|
@ -32,7 +32,7 @@
|
|||
# To see all values available for your GWIA, type
|
||||
# snmpwalk -v1 -c public -m GWIAMIB <HOST> gwia
|
||||
#
|
||||
# This plugin fetches:
|
||||
# This plugin fetches:
|
||||
#
|
||||
# * gwiaGatewayName - 1.3.6.1.4.1.23.2.70.1.1.
|
||||
# * gwiaStatBytesIn - 1.3.6.1.4.1.23.2.70.1.6.
|
||||
|
@ -40,31 +40,31 @@
|
|||
#
|
||||
# Usage:
|
||||
# --------------
|
||||
# Link this file snmp__gwia_bytes_ to your nodes servicedir [/etc/munin/plugins]
|
||||
# Link this file snmp__gwia_bytes_ to your nodes servicedir [/etc/munin/plugins]
|
||||
#
|
||||
# as:
|
||||
# snmp_<host>_gwia_bytes_<pos>
|
||||
# as:
|
||||
# snmp_<host>_gwia_bytes_<pos>
|
||||
#
|
||||
# with:
|
||||
# <host> = Name or IP-Number of host
|
||||
# <host> = Name or IP-Number of host
|
||||
# <pos> = table index of the GWIA Object
|
||||
#
|
||||
#
|
||||
# E.g.
|
||||
# ln -s /usr/share/munin/plugins/snmp__gwia_bytes_ \
|
||||
# /etc/munin/plugins/snmp_foo.example.com_gwia_bytes_0
|
||||
# ...will monitor a single GWIA object on host foo.example.com.
|
||||
# ...will monitor a single GWIA object on host foo.example.com.
|
||||
#
|
||||
# Parameters
|
||||
# community - Specify wich community string to use (Default: public)
|
||||
# port - Specify which port to read from (Default: 161)
|
||||
# host - Specify which host to monitor (Default: Read from link in servicedir)
|
||||
# pos - Specify which table Object to read (Default: Read from link in servicedir,
|
||||
#
|
||||
# pos - Specify which table Object to read (Default: Read from link in servicedir,
|
||||
#
|
||||
# You may adjust settings to your need via configuration in plugin-conf.d/munin-node:
|
||||
# [snmp_*_gwia_bytes_*]
|
||||
# env.port <your_port_number>
|
||||
# env.community <your SNMP community string>
|
||||
# env.pos <your objects table position. Values: 0,1,2,..>
|
||||
# env.pos <your objects table position. Values: 0,1,2,..>
|
||||
# env.host <name or IP of your host>
|
||||
#
|
||||
# Parameters can also be specified on a per GWIA basis, eg:
|
||||
|
@ -96,8 +96,8 @@ my $GRAPH_VLABEL = "bytes per $GRAPH_PERIOD in(-) / out(+)";
|
|||
my $BYTES_LABEL='Bytes';
|
||||
|
||||
if (defined $ARGV[0] and $ARGV[0] eq "snmpconf")
|
||||
{
|
||||
print "require 1.3.6.1.4.1.23.2.70.1.1. [.*]\n"; # gwiaGatewayName
|
||||
{
|
||||
print "require 1.3.6.1.4.1.23.2.70.1.1. [.*]\n"; # gwiaGatewayName
|
||||
print "require 1.3.6.1.4.1.23.2.70.1.6. [\\d*]\n"; # gwiaStatBytesIn
|
||||
print "require 1.3.6.1.4.1.23.2.70.1.5. [\\d*]\n"; # gwiaStatBytesOut
|
||||
|
||||
|
@ -129,8 +129,8 @@ if (!defined ($session))
|
|||
if (defined $ARGV[0] and $ARGV[0] eq "config")
|
||||
{
|
||||
|
||||
# get name of Internet Agent
|
||||
my $gwname = &get_single ($session, "1.3.6.1.4.1.23.2.70.1.1.$pos"); # gwiaGatewayName
|
||||
# get name of Internet Agent
|
||||
my $gwname = &get_single ($session, "1.3.6.1.4.1.23.2.70.1.1.$pos"); # gwiaGatewayName
|
||||
# output to munin
|
||||
print "host_name $host
|
||||
graph_category mail
|
||||
|
|
|
@ -23,8 +23,8 @@
|
|||
# ------------------------------------------------------------
|
||||
# Plugin to monitor Novell Groupwise Internet Agent (GWIA)
|
||||
# ------------------------------------------------------------
|
||||
#
|
||||
# Management Information Base (MIB) GWIAMIB
|
||||
#
|
||||
# Management Information Base (MIB) GWIAMIB
|
||||
#
|
||||
# Naming Tree: 1.3.6.1.4.1.23
|
||||
# iso(1) org(3) dod(6) internet(1) private(4) enterprises(1) novell(23)
|
||||
|
@ -32,43 +32,43 @@
|
|||
# To see all values available for your GWIA, type
|
||||
# snmpwalk -v1 -c public -m GWIAMIB <HOST> gwia
|
||||
#
|
||||
# This plugin fetches:
|
||||
# This plugin fetches:
|
||||
#
|
||||
# * gwiaGatewayName - 1.3.6.1.4.1.23.2.70.1.1.
|
||||
# * gwiaStatMsgsOut - 1.3.6.1.4.1.23.2.70.1.7.
|
||||
# * gwiaStatMsgsIn - 1.3.6.1.4.1.23.2.70.1.8.
|
||||
# * gwiaStatStatusesOut - 1.3.6.1.4.1.23.2.70.1.9.
|
||||
# * gwiaStatStatusesIn - 1.3.6.1.4.1.23.2.70.1.10.
|
||||
# * gwiaStatErrorsOut - 1.3.6.1.4.1.23.2.70.1.11.
|
||||
# * gwiaStatStatusesIn - 1.3.6.1.4.1.23.2.70.1.10.
|
||||
# * gwiaStatErrorsOut - 1.3.6.1.4.1.23.2.70.1.11.
|
||||
# * gwiaStatErrorsIn - 1.3.6.1.4.1.23.2.70.1.12.
|
||||
#
|
||||
# Usage:
|
||||
# --------------
|
||||
# Link this file snmp__gwia_msgs_ to your nodes servicedir [/etc/munin/plugins]
|
||||
# Link this file snmp__gwia_msgs_ to your nodes servicedir [/etc/munin/plugins]
|
||||
#
|
||||
# as:
|
||||
# snmp_<host>_gwia_msgs_<pos>
|
||||
# as:
|
||||
# snmp_<host>_gwia_msgs_<pos>
|
||||
#
|
||||
# with:
|
||||
# <host> = Name or IP-Number of host
|
||||
# <host> = Name or IP-Number of host
|
||||
# <pos> = table index of the GWIA Object
|
||||
#
|
||||
#
|
||||
# E.g.
|
||||
# ln -s /usr/share/munin/plugins/snmp__gwia_msgs_ \
|
||||
# /etc/munin/plugins/snmp_foo.example.com_gwia_msgs_0
|
||||
# ...will monitor a single GWIA object on host foo.example.com.
|
||||
# ...will monitor a single GWIA object on host foo.example.com.
|
||||
#
|
||||
# Parameters
|
||||
# community - Specify wich community string to use (Default: public)
|
||||
# port - Specify which port to read from (Default: 161)
|
||||
# host - Specify which host to monitor (Default: Read from link in servicedir)
|
||||
# pos - Specify which table Object to read (Default: Read from link in servicedir,
|
||||
#
|
||||
# pos - Specify which table Object to read (Default: Read from link in servicedir,
|
||||
#
|
||||
# You may adjust settings to your need via configuration in plugin-conf.d/munin-node:
|
||||
# [snmp_*_gwia_msgs_*]
|
||||
# env.port <your_port_number>
|
||||
# env.community <your SNMP community string>
|
||||
# env.pos <your objects table position. Values: 0,1,2,..>
|
||||
# env.pos <your objects table position. Values: 0,1,2,..>
|
||||
# env.host <name or IP of your host>
|
||||
#
|
||||
# Parameters can also be specified on a per GWIA basis, eg:
|
||||
|
@ -104,8 +104,8 @@ my $ERRORS_LABEL='Errors';
|
|||
my $ERRORS_CRITICAL=10;
|
||||
|
||||
if (defined $ARGV[0] and $ARGV[0] eq "snmpconf")
|
||||
{
|
||||
print "require 1.3.6.1.4.1.23.2.70.1.1. [.*]\n"; # gwiaGatewayName
|
||||
{
|
||||
print "require 1.3.6.1.4.1.23.2.70.1.1. [.*]\n"; # gwiaGatewayName
|
||||
print "require 1.3.6.1.4.1.23.2.70.1.7. [\\d*]\n"; # gwiaStatMsgsOut
|
||||
print "require 1.3.6.1.4.1.23.2.70.1.8. [\\d*]\n"; # gwiaStatMsgsIn
|
||||
print "require 1.3.6.1.4.1.23.2.70.1.11. [\\d*]\n"; # gwiaStatErrorsOut
|
||||
|
@ -141,8 +141,8 @@ if (!defined ($session))
|
|||
if (defined $ARGV[0] and $ARGV[0] eq "config")
|
||||
{
|
||||
|
||||
# get name of Internet Agent
|
||||
my $gwname = &get_single ($session, "1.3.6.1.4.1.23.2.70.1.1.$pos"); # gwiaGatewayName
|
||||
# get name of Internet Agent
|
||||
my $gwname = &get_single ($session, "1.3.6.1.4.1.23.2.70.1.1.$pos"); # gwiaGatewayName
|
||||
|
||||
# output to munin
|
||||
print "host_name $host
|
||||
|
|
|
@ -23,8 +23,8 @@
|
|||
# ------------------------------------------------------------
|
||||
# Plugin to monitor Novell Groupwise MTA (GWMTA)
|
||||
# ------------------------------------------------------------
|
||||
#
|
||||
# Management Information Base (MIB) GWMTA-MIB
|
||||
#
|
||||
# Management Information Base (MIB) GWMTA-MIB
|
||||
#
|
||||
# Naming Tree: 1.3.6.1.4.1.23
|
||||
# iso(1) org(3) dod(6) internet(1) private(4) enterprises(1) novell(23)
|
||||
|
@ -32,40 +32,40 @@
|
|||
# To see all values available for your GWMTA, type
|
||||
# snmpwalk -v1 -c public -m GWMTA-MIB <HOST> gwmta
|
||||
#
|
||||
# This plugin fetches:
|
||||
# This plugin fetches:
|
||||
#
|
||||
# * mtaDomainName 1.3.6.1.4.1.23.2.37.1.1.1.2.
|
||||
# * mtaTenMinuteRoutedMsgs - 1.3.6.1.4.1.23.2.37.1.1.1.10.
|
||||
# * mtaDomainName 1.3.6.1.4.1.23.2.37.1.1.1.2.
|
||||
# * mtaTenMinuteRoutedMsgs - 1.3.6.1.4.1.23.2.37.1.1.1.10.
|
||||
# * mtaTenMinuteUndeliverableMsgs - 1.3.6.1.4.1.23.2.37.1.1.1.12.
|
||||
# * mtaTenMinuteErrorMsgs - 1.3.6.1.4.1.23.2.37.1.1.1.14.
|
||||
#
|
||||
# Usage:
|
||||
# --------------
|
||||
# Link this file snmp__gwmta_msgs_ to your nodes servicedir [/etc/munin/plugins]
|
||||
# Link this file snmp__gwmta_msgs_ to your nodes servicedir [/etc/munin/plugins]
|
||||
#
|
||||
# as:
|
||||
# snmp_<host>_gwmta_msgs_<pos>
|
||||
# as:
|
||||
# snmp_<host>_gwmta_msgs_<pos>
|
||||
#
|
||||
# with:
|
||||
# <host> = Name or IP-Number of host
|
||||
# <host> = Name or IP-Number of host
|
||||
# <pos> = table index of the GWMTA Object
|
||||
#
|
||||
#
|
||||
# E.g.
|
||||
# ln -s /usr/share/munin/plugins/snmp__gwmta_msgs_ \
|
||||
# /etc/munin/plugins/snmp_foo.example.com_gwmta_msgs_0
|
||||
# ...will monitor a single GWMTA object on host foo.example.com.
|
||||
# ...will monitor a single GWMTA object on host foo.example.com.
|
||||
#
|
||||
# Parameters
|
||||
# community - Specify wich community string to use (Default: public)
|
||||
# port - Specify which port to read from (Default: 161)
|
||||
# host - Specify which host to monitor (Default: Read from link in servicedir)
|
||||
# pos - Specify which table Object to read (Default: Read from link in servicedir,
|
||||
#
|
||||
# pos - Specify which table Object to read (Default: Read from link in servicedir,
|
||||
#
|
||||
# You may adjust settings to your need via configuration in plugin-conf.d/munin-node:
|
||||
# [snmp_*_gwmta_msgs_*]
|
||||
# env.port <your_port_number>
|
||||
# env.community <your SNMP community string>
|
||||
# env.pos <your objects table position. Values: 0,1,2,..>
|
||||
# env.pos <your objects table position. Values: 0,1,2,..>
|
||||
# env.host <name or IP of your host>
|
||||
#
|
||||
# Parameters can also be specified on a per GWMTA basis, eg:
|
||||
|
@ -104,8 +104,8 @@ my $ERRORS_CRITICAL=10;
|
|||
|
||||
if (defined $ARGV[0] and $ARGV[0] eq "snmpconf")
|
||||
{
|
||||
print "index 1.3.6.1.4.1.23.2.37.1.1.1.1.\n"; # mtaIndex
|
||||
print "require 1.3.6.1.4.1.23.2.37.1.1.1.2. \n"; # mtaDomainName
|
||||
print "index 1.3.6.1.4.1.23.2.37.1.1.1.1.\n"; # mtaIndex
|
||||
print "require 1.3.6.1.4.1.23.2.37.1.1.1.2. \n"; # mtaDomainName
|
||||
print "require 1.3.6.1.4.1.23.2.37.1.1.1.10. [\\d+]\n"; # mtaTenMinuteRoutedMsgs
|
||||
print "require 1.3.6.1.4.1.23.2.37.1.1.1.12. [\\d+]\n"; # mtaTenMinuteUndeliverableMsgs
|
||||
print "require 1.3.6.1.4.1.23.2.37.1.1.1.14. [\\d+]\n"; # mtaTenMinuteErrorMsgs
|
||||
|
@ -137,20 +137,20 @@ if (!defined ($session))
|
|||
|
||||
if (defined $ARGV[0] and $ARGV[0] eq "config")
|
||||
{
|
||||
# get name of domain
|
||||
my $domain = &get_single ($session, "1.3.6.1.4.1.23.2.37.1.1.1.2.$pos"); # mtaDomainName
|
||||
# get name of domain
|
||||
my $domain = &get_single ($session, "1.3.6.1.4.1.23.2.37.1.1.1.2.$pos"); # mtaDomainName
|
||||
|
||||
# output to munin
|
||||
print "host_name $host
|
||||
graph_category mail
|
||||
graph_args --base 1000
|
||||
graph_period $GRAPH_PERIOD
|
||||
graph_title GWMTA load ($domain)
|
||||
graph_info Monitors status of Groupwise MTA, here: $domain. It reports values for the last 10 minutes.
|
||||
graph_title GWMTA load ($domain)
|
||||
graph_info Monitors status of Groupwise MTA, here: $domain. It reports values for the last 10 minutes.
|
||||
graph_vlabel $GRAPH_VLABEL
|
||||
graph_args -l 0
|
||||
routed.label $ROUTED_LABEL
|
||||
routed.info mtaTenMinuteRoutedMsgs (1.3.6.1.4.1.23.2.37.1.1.1.10.)
|
||||
routed.info mtaTenMinuteRoutedMsgs (1.3.6.1.4.1.23.2.37.1.1.1.10.)
|
||||
routed.critical $ROUTED_CRITICAL
|
||||
routed.type GAUGE
|
||||
routed.min 0
|
||||
|
|
|
@ -23,8 +23,8 @@
|
|||
# ------------------------------------------------------------
|
||||
# Plugin to monitor Novell Groupwise Post Office Agent (POA)
|
||||
# ------------------------------------------------------------
|
||||
#
|
||||
# Management Information Base (MIB) GWPOA
|
||||
#
|
||||
# Management Information Base (MIB) GWPOA
|
||||
#
|
||||
# Naming Tree: 1.3.6.1.4.1.23
|
||||
# iso(1) org(3) dod(6) internet(1) private(4) enterprises(1) novell(23)
|
||||
|
@ -32,7 +32,7 @@
|
|||
# To see all values available for your GWPOA, type
|
||||
# snmpwalk -v1 -c public -m GWPOA-MIB <HOST> gwpoa
|
||||
#
|
||||
# This plugin fetches:
|
||||
# This plugin fetches:
|
||||
#
|
||||
# * poaPostOfficeName - 1.3.6.1.4.1.23.2.38.1.1.1.2.
|
||||
# * poaTotalMsgs - 1.3.6.1.4.1.23.2.38.1.1.1.3.
|
||||
|
@ -46,10 +46,10 @@
|
|||
# with the hostname (host) and the table index (pos) of the POA-Object
|
||||
# defined in the linkage.
|
||||
#
|
||||
# snmp_<host>_gwpoa_<pos>
|
||||
# snmp_<host>_gwpoa_<pos>
|
||||
#
|
||||
# with:
|
||||
# <host> = Name or IP-Number of host
|
||||
# <host> = Name or IP-Number of host
|
||||
# <pos> = Table index of the POA Object
|
||||
#
|
||||
#
|
||||
|
@ -57,7 +57,7 @@
|
|||
# ln -s /usr/share/munin/plugins/snmp__gwpoa_ \
|
||||
# /etc/munin/plugins/snmp_foo.example.com_gwpoa_1
|
||||
#
|
||||
# ...will monitor the first POA-Object on host foo.example.com.
|
||||
# ...will monitor the first POA-Object on host foo.example.com.
|
||||
#
|
||||
#
|
||||
# Configuration:
|
||||
|
@ -66,13 +66,13 @@
|
|||
# community - Specify wich community string to use (Default: public)
|
||||
# port - Specify which port to read from (Default: 161)
|
||||
# host - Specify which host to monitor (Default: Read from link in servicedir)
|
||||
# pos - Specify which table Object to read (Default: Read from link in servicedir,
|
||||
#
|
||||
# pos - Specify which table Object to read (Default: Read from link in servicedir,
|
||||
#
|
||||
# You may adjust settings via configuration in plugin-conf.d/munin-node:
|
||||
# [snmp_*_gwpoa_*]
|
||||
# env.port <your_port_number>
|
||||
# env.community <your SNMP community string>
|
||||
# env.pos <your table position. Values: 0,1,2,..>
|
||||
# env.pos <your table position. Values: 0,1,2,..>
|
||||
# env.host <name or IP of your host>
|
||||
#
|
||||
# Parameters can also be specified on a per POA basis, eg:
|
||||
|
@ -103,15 +103,15 @@ my $response;
|
|||
my $GRAPH_PERIOD = "minute";
|
||||
my $GRAPH_VLABEL = "messages per $GRAPH_PERIOD";
|
||||
my $TOTAL_LABEL = "TotalMsgs";
|
||||
my $UNDELIVERABLE_LABEL = "UndeliverableMsgs";
|
||||
my $UNDELIVERABLE_LABEL = "UndeliverableMsgs";
|
||||
my $PROBLEM_LABEL = "ProblemMsgs";
|
||||
my $ERRORS_LABEL = "AdmErrorMsgs";
|
||||
my $ERRORS_CRITICAL = 10;
|
||||
|
||||
if (defined $ARGV[0] and $ARGV[0] eq "snmpconf")
|
||||
{
|
||||
print "index 1.3.6.1.4.1.23.2.38.1.1.1.1.\n"; # gwpoa
|
||||
print "require 1.3.6.1.4.1.23.2.38.1.1.1.2. [.*]\n"; # poaPostOfficeName
|
||||
print "index 1.3.6.1.4.1.23.2.38.1.1.1.1.\n"; # gwpoa
|
||||
print "require 1.3.6.1.4.1.23.2.38.1.1.1.2. [.*]\n"; # poaPostOfficeName
|
||||
print "require 1.3.6.1.4.1.23.2.38.1.1.1.3. [\\d*]\n"; # poaTotalMsgs
|
||||
print "require 1.3.6.1.4.1.23.2.38.1.1.1.4. [\\d*]\n"; # poaProblemMsgs
|
||||
print "require 1.3.6.1.4.1.23.2.38.1.1.1.8. [\\d*]\n"; # poaUndeliverableMsgs
|
||||
|
@ -145,8 +145,8 @@ if (!defined ($session))
|
|||
if (defined $ARGV[0] and $ARGV[0] eq "config")
|
||||
{
|
||||
|
||||
# get Post Office Name
|
||||
my $poname = &get_single ($session, "1.3.6.1.4.1.23.2.38.1.1.1.2.$pos"); # poaPostOfficeName
|
||||
# get Post Office Name
|
||||
my $poname = &get_single ($session, "1.3.6.1.4.1.23.2.38.1.1.1.2.$pos"); # poaPostOfficeName
|
||||
|
||||
# output to munin
|
||||
print "host_name $host
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue