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
|
@ -6,8 +6,8 @@ multi_snmp_querier - Munin plugin to query several SNMP hosts
|
|||
|
||||
=head1 SYNOPSIS
|
||||
|
||||
This plugin is meant to be called from Munin. You should at least set the
|
||||
'hosts' environment variable from Munin's configuration (i.e.
|
||||
This plugin is meant to be called from Munin. You should at least set the
|
||||
'hosts' environment variable from Munin's configuration (i.e.
|
||||
/etc/munin/munin.conf) to specify which hosts and how to query.
|
||||
|
||||
=head1 DESCRIPTION
|
||||
|
@ -20,7 +20,7 @@ This plugin is meant to be called from Munin. You should at least set the
|
|||
|
||||
Which SNMP OID should we query on; it defaults to
|
||||
1.3.6.1.2.1.43.10.2.1.4.1.1 (total printed pages - of course, it only
|
||||
makes sense to query a printer on this ;-) ).
|
||||
makes sense to query a printer on this ;-) ).
|
||||
|
||||
Other known and useful OIDs for printers are
|
||||
1.3.6.1.2.1.43.11.1.1.9.1.1 (total number of pages printed with this
|
||||
|
@ -111,7 +111,7 @@ $oid = $ENV{snmp_oid} || $defaults{oid};
|
|||
total => 'Total',
|
||||
units => 'pages'
|
||||
},
|
||||
'1.3.6.1.2.1.43.11.1.1.8.1.1' =>
|
||||
'1.3.6.1.2.1.43.11.1.1.8.1.1' =>
|
||||
{ title => 'Total projected capacity of this cartridge',
|
||||
vlabel => 'Total capacity',
|
||||
category => 'printing',
|
||||
|
@ -120,7 +120,7 @@ $oid = $ENV{snmp_oid} || $defaults{oid};
|
|||
total => 'Total',
|
||||
units => 'pages'
|
||||
},
|
||||
'1.3.6.1.2.1.43.11.1.1.9.1.1' =>
|
||||
'1.3.6.1.2.1.43.11.1.1.9.1.1' =>
|
||||
{ title => 'Pages printed with this cartridge',
|
||||
vlabel => 'Printed pages',
|
||||
category => 'printing',
|
||||
|
@ -129,7 +129,7 @@ $oid = $ENV{snmp_oid} || $defaults{oid};
|
|||
total => 'Total',
|
||||
units => 'pages'
|
||||
},
|
||||
'default' =>
|
||||
'default' =>
|
||||
{ title => "Results for SNMP OID $oid",
|
||||
vlabel => 'units',
|
||||
category => 'Other',
|
||||
|
@ -144,7 +144,7 @@ die "Hosts not set - cannot continue" unless @hosts;
|
|||
$cmd_arg = $ARGV[0] || '';
|
||||
if($cmd_arg eq "config") {
|
||||
my $labels = $known_oids{$oid} || $known_oids{default};
|
||||
# See http://munin.projects.linpro.no/wiki/HowToWritePlugins for
|
||||
# See http://munin.projects.linpro.no/wiki/HowToWritePlugins for
|
||||
# explanation on the following fields
|
||||
print "graph_title $labels->{title}\n";
|
||||
print "graph_args --base 1000 -l 0\n";
|
||||
|
@ -184,7 +184,7 @@ sub ck_alive{
|
|||
$ping = Net::Ping->new("tcp", 1);
|
||||
$ping->ping($host);
|
||||
}
|
||||
|
||||
|
||||
sub get_hosts {
|
||||
# Hosts are defined in the 'hosts' environment variable. It's a list of
|
||||
# hosts (and optionally ports) - We parse the list and arrange it neatly
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
"""
|
||||
Munin plugin which reports selected counters regarding ports on a
|
||||
Munin plugin which reports selected counters regarding ports on a
|
||||
Brocade SAN FC-switch. Only enabled ports are considered.
|
||||
|
||||
The counters shown:
|
||||
|
@ -14,7 +14,7 @@ enc_out: Encoding errors outside FC frame.
|
|||
enc_out_per_mframe: As above, but per million frames of traffic.
|
||||
If there is a high number for this counter,
|
||||
it could reflect:
|
||||
- If there is also a high value for
|
||||
- If there is also a high value for
|
||||
rx_crcs for the port, then there is likely
|
||||
a GBIC/SFP problem.
|
||||
- If there the value of rx_crcs for the port
|
||||
|
@ -22,7 +22,7 @@ enc_out_per_mframe: As above, but per million frames of traffic.
|
|||
problem.
|
||||
|
||||
rx_crcs: CRC errors detected in received frames.
|
||||
Together with enc_out errors, CRC errors
|
||||
Together with enc_out errors, CRC errors
|
||||
indicate a GBIC/SFP problem.
|
||||
|
||||
bits: Number of bits transmitted(tx)/received(rx)
|
||||
|
@ -38,7 +38,7 @@ snmp_HOSTNAME_brocade_ifs
|
|||
"""
|
||||
|
||||
# Note: In the SNMP output from brocade switches, the interesting
|
||||
# counters are named with numbers starting with 1, while the
|
||||
# counters are named with numbers starting with 1, while the
|
||||
# ports' real names on the box and in the administration interface
|
||||
# start with 0. And there doesn't seem to be a way to map between
|
||||
# ifDesc and the interesting crc and enc_out counters :-(
|
||||
|
@ -63,7 +63,7 @@ snmp_HOSTNAME_brocade_ifs
|
|||
|
||||
# Released according to the "New BSD License" AKA the 3-clause
|
||||
# BSD License:
|
||||
# ====================================================================
|
||||
# ====================================================================
|
||||
# Copyright (c) 2011, Danish National Board of Health.
|
||||
# All rights reserved.
|
||||
#
|
||||
|
@ -88,7 +88,7 @@ snmp_HOSTNAME_brocade_ifs
|
|||
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
# ====================================================================
|
||||
# ====================================================================
|
||||
|
||||
# $Id: brocade_san_switch_ports_ 15443 2011-03-03 12:23:56Z tra $
|
||||
|
||||
|
@ -140,7 +140,7 @@ def debug(msg):
|
|||
print('Debug: %s\n' % msg)
|
||||
|
||||
# Break OID-string in to a tuple of elements
|
||||
def oidstr2tuple(oidstr):
|
||||
def oidstr2tuple(oidstr):
|
||||
int_list = [ int(s) for s in oidstr.split('.') ]
|
||||
return tuple(int_list)
|
||||
|
||||
|
|
|
@ -119,7 +119,7 @@ my $cpuIdle = "1.3.6.1.4.1.2021.11.11";
|
|||
|
||||
my $cpu = 0;
|
||||
|
||||
my %cpuCounters = (
|
||||
my %cpuCounters = (
|
||||
cpuUser => "1.3.6.1.4.1.2021.11.9.$cpu", # The percentage of CPU time spent processing user-level code, calculated over the last minute
|
||||
cpuSystem => "1.3.6.1.4.1.2021.11.10.$cpu", # The percentage of CPU time spent processing system-level code, calculated over the last minute
|
||||
cpuIdle => "1.3.6.1.4.1.2021.11.11.$cpu", # The percentage of processor time spent idle, calculated over the last minute
|
||||
|
@ -147,7 +147,7 @@ if ($ARGV[0] and $ARGV[0] eq "config")
|
|||
foreach my $c (keys %cpuCounters) {
|
||||
print $c . ".label $c\n";
|
||||
print $c . ".type GAUGE\n";
|
||||
if ($firstCounter) {
|
||||
if ($firstCounter) {
|
||||
print $c . ".draw AREA\n";
|
||||
$firstCounter = 0;
|
||||
} else {
|
||||
|
@ -156,7 +156,7 @@ if ($ARGV[0] and $ARGV[0] eq "config")
|
|||
print $c . ".min 0\n";
|
||||
}
|
||||
|
||||
exit 0;
|
||||
exit 0;
|
||||
}
|
||||
|
||||
foreach my $c (keys %cpuCounters) {
|
||||
|
|
|
@ -75,7 +75,7 @@ charge.type GAUGE
|
|||
charge.min 0
|
||||
charge.max 100
|
||||
";
|
||||
|
||||
|
||||
print "multigraph cyberpower_runtime
|
||||
graph_title CyberPower UPS Runtime
|
||||
graph_info This graph shows expected runtime informatiom.
|
||||
|
@ -86,7 +86,7 @@ graph_vlabel minutes
|
|||
runtime.draw AREA
|
||||
runtime.type GAUGE
|
||||
";
|
||||
|
||||
|
||||
print "multigraph cyberpower_voltage
|
||||
graph_title CyberPower UPS Voltages
|
||||
graph_info This graph shows voltage information.
|
||||
|
@ -101,7 +101,7 @@ input.type GAUGE
|
|||
output.draw LINE1
|
||||
output.type GAUGE
|
||||
";
|
||||
|
||||
|
||||
if(oidExists(oid_cps_env_temp) && oidExists(oid_cps_env_humidity)){
|
||||
print "multigraph cyberpower_environment
|
||||
graph_title CyberPower UPS Environment
|
||||
|
@ -120,7 +120,7 @@ humidity.min 0
|
|||
humidity.max 100
|
||||
";
|
||||
}
|
||||
|
||||
|
||||
exit 0;
|
||||
}
|
||||
|
||||
|
@ -177,7 +177,7 @@ sub oidExists {
|
|||
}
|
||||
my $oid = $_[0];
|
||||
my $val = $session->get_single($oid);
|
||||
|
||||
|
||||
if(!length $val || $val eq 'noSuchInstance' || $val eq 'U'){
|
||||
return(0);
|
||||
}else{
|
||||
|
|
|
@ -3,11 +3,11 @@
|
|||
# File: snmp__fn
|
||||
# Description: SNMP plugin to monitor open sessions, sslvpn, CPU and Memory on a
|
||||
# Fortinet Fortigate firewall.
|
||||
#
|
||||
#
|
||||
# Author: Thom Diener <munin@tmd.ch>
|
||||
# License: This program is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU General Public License
|
||||
# as published by the Free Software Foundation; version 2 dated
|
||||
# as published by the Free Software Foundation; version 2 dated
|
||||
# June, 1991.
|
||||
#
|
||||
# Version: v1.00 30.10.2011 First draft of the fortigate plugin
|
||||
|
@ -22,21 +22,21 @@
|
|||
# (Example: ln -s /usr/share/munin/plugins/snmp__fn \
|
||||
# /etc/munin/plugins/snmp_foo.example.com_fn)
|
||||
#
|
||||
# Add global community string
|
||||
# Add global community string
|
||||
# vi /etc/munin/plugin-conf.d/munin-node
|
||||
# [snmp_*]
|
||||
# env.community private
|
||||
# timeout 45 # In case low latency or timeout
|
||||
#
|
||||
# Fortigate Activate snmp on your Fortigate firewall.
|
||||
# Fortigate documentation at https://support.fortinet.com
|
||||
# Fortigate Activate snmp on your Fortigate firewall.
|
||||
# Fortigate documentation at https://support.fortinet.com
|
||||
#
|
||||
# MIB Download and copy the original Fortigate MIB definition files to:
|
||||
# /usr/share/snmp/mibs/FORTINET-CORE-MIB.mib.txt
|
||||
# /usr/share/snmp/mibs/FORTINET-FORTIGATE-MIB.mib
|
||||
#
|
||||
# Testing This plugin has been tested with the following OS/software:
|
||||
#
|
||||
# Testing This plugin has been tested with the following OS/software:
|
||||
#
|
||||
# Appliance/Firmware:
|
||||
# Fortigate-50B 3.00-b0662(MR6 Patch 1) work with v1.00-1.02
|
||||
# Fortigate-50B 3.00-b0678(MR6 Patch 6) work with v1.00-1.02
|
||||
|
@ -44,10 +44,10 @@
|
|||
# Fortigate-50B 4.00-b0217(MR1 Patch 10) work with v1.00-1.02
|
||||
# Fortigate-50B 4.00-b0217(MR2 Patch 4) work with v1.00-1.02
|
||||
# Fortigate-50B 4.00-b0521(MR3 Patch 6) work with v1.03
|
||||
#
|
||||
#
|
||||
# Munin-Version:
|
||||
# Munin 1.4.4 (1.4.4-1ubuntu1)
|
||||
# OS-Version:
|
||||
# Munin 1.4.4 (1.4.4-1ubuntu1)
|
||||
# OS-Version:
|
||||
# Ubuntu 10.04.3 LTS (lucid) x86_32/64
|
||||
#
|
||||
#%# family=manual
|
||||
|
@ -148,7 +148,7 @@ config()
|
|||
echo "graph_title $UNIT - SSLvpn Sessions"
|
||||
echo 'graph_category fw'
|
||||
echo 'graph_vlabel Sessions/Users'
|
||||
echo 'graph_info Loged in users with SSLvpn (WebSession or Tunnel-Mode)'
|
||||
echo 'graph_info Loged in users with SSLvpn (WebSession or Tunnel-Mode)'
|
||||
echo 'fortiuser.label Users'
|
||||
echo 'fortiuser.info Loged in SSLvpn users'
|
||||
echo 'fortiwebs.label WebSessions'
|
||||
|
|
|
@ -72,7 +72,7 @@ if [ "$1" = "config" ]; then
|
|||
SENSOR_2_CRITICAL=`$SNMPGET WebGraph-2xThermometer-MIB::wtWebioAn2GraphAlarmMax.2 | sed s/.*STRING:// | sed s/\"//g`
|
||||
|
||||
# echo the result to munin
|
||||
echo "graph_title $GRAPH_TITLE"
|
||||
echo "graph_title $GRAPH_TITLE"
|
||||
echo "graph_info $GRAPH_INFO"
|
||||
echo "graph_vlabel $GRAPH_VLABEL"
|
||||
echo "Sensor_1.label $SENSOR_1_LABEL"
|
||||
|
|
|
@ -16,13 +16,13 @@
|
|||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
# Derived from SNMP plugin code written by
|
||||
# Derived from SNMP plugin code written by
|
||||
# Jimmy Olsen, Dagfinn Ilmari Mannsaaker
|
||||
#
|
||||
#######################################################################
|
||||
#
|
||||
# You must enable SNMP for Windows Media Services by running:
|
||||
#
|
||||
#
|
||||
# regsvr32 "%systemroot%\system32\windows media\server\wmssnmp.dll
|
||||
#
|
||||
#######################################################################
|
||||
|
@ -86,7 +86,7 @@ if (defined $ARGV[0] and $ARGV[0] eq "config")
|
|||
{
|
||||
print "host_name $host\n";
|
||||
print "graph_title wmsConnectedPlayers
|
||||
graph_args --base 1000 -l 0
|
||||
graph_args --base 1000 -l 0
|
||||
graph_vlabel wmsConnectedPlayers
|
||||
graph_category streaming
|
||||
graph_info This graph shows wmsConnectedPlayers.
|
||||
|
|
|
@ -16,13 +16,13 @@
|
|||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
# Derived from SNMP plugin code written by
|
||||
# Derived from SNMP plugin code written by
|
||||
# Jimmy Olsen, Dagfinn Ilmari Mannsaaker
|
||||
#
|
||||
#######################################################################
|
||||
#
|
||||
# You must enable SNMP for Windows Media Services by running:
|
||||
#
|
||||
#
|
||||
# regsvr32 "%systemroot%\system32\windows media\server\wmssnmp.dll
|
||||
#
|
||||
#######################################################################
|
||||
|
@ -92,7 +92,7 @@ if (defined $ARGV[0] and $ARGV[0] eq "config")
|
|||
{
|
||||
print "host_name $host\n";
|
||||
print "graph_title wmsPlayerAllocatedBandwidth
|
||||
graph_args --base 1000 -l 0
|
||||
graph_args --base 1000 -l 0
|
||||
graph_vlabel wmsPlayerAllocatedBandwidth
|
||||
graph_category streaming
|
||||
graph_info This graph shows wmsPlayerAllocatedBandwidth.
|
||||
|
|
|
@ -16,13 +16,13 @@
|
|||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
# Derived from SNMP plugin code written by
|
||||
# Derived from SNMP plugin code written by
|
||||
# Jimmy Olsen, Dagfinn Ilmari Mannsaaker
|
||||
#
|
||||
#######################################################################
|
||||
#
|
||||
# You must enable SNMP for Windows Media Services by running:
|
||||
#
|
||||
#
|
||||
# regsvr32 "%systemroot%\system32\windows media\server\wmssnmp.dll
|
||||
#
|
||||
#######################################################################
|
||||
|
@ -87,7 +87,7 @@ if (defined $ARGV[0] and $ARGV[0] eq "config")
|
|||
{
|
||||
print "host_name $host\n";
|
||||
print "graph_title wmsStreamingHttpPlayers
|
||||
graph_args --base 1000 -l 0
|
||||
graph_args --base 1000 -l 0
|
||||
graph_vlabel wmsStreamingHttpPlayers
|
||||
graph_category streaming
|
||||
graph_info This graph shows wmsStreamingHttpPlayers.
|
||||
|
|
|
@ -16,13 +16,13 @@
|
|||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
# Derived from SNMP plugin code written by
|
||||
# Derived from SNMP plugin code written by
|
||||
# Jimmy Olsen, Dagfinn Ilmari Mannsaaker
|
||||
#
|
||||
#######################################################################
|
||||
#
|
||||
# You must enable SNMP for Windows Media Services by running:
|
||||
#
|
||||
#
|
||||
# regsvr32 "%systemroot%\system32\windows media\server\wmssnmp.dll
|
||||
#
|
||||
#######################################################################
|
||||
|
@ -87,7 +87,7 @@ if (defined $ARGV[0] and $ARGV[0] eq "config")
|
|||
{
|
||||
print "host_name $host\n";
|
||||
print "graph_title wmsStreamingMmsPlayers
|
||||
graph_args --base 1000 -l 0
|
||||
graph_args --base 1000 -l 0
|
||||
graph_vlabel wmsStreamingMmsPlayers
|
||||
graph_category streaming
|
||||
graph_info This graph shows wmsStreamingMmsPlayers.
|
||||
|
|
|
@ -16,13 +16,13 @@
|
|||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
# Derived from SNMP plugin code written by
|
||||
# Derived from SNMP plugin code written by
|
||||
# Jimmy Olsen, Dagfinn Ilmari Mannsaaker
|
||||
#
|
||||
#######################################################################
|
||||
#
|
||||
# You must enable SNMP for Windows Media Services by running:
|
||||
#
|
||||
#
|
||||
# regsvr32 "%systemroot%\system32\windows media\server\wmssnmp.dll
|
||||
#
|
||||
#######################################################################
|
||||
|
@ -84,7 +84,7 @@ if (defined $ARGV[0] and $ARGV[0] eq "config")
|
|||
{
|
||||
print "host_name $host\n";
|
||||
print "graph_title wmsStreamingPlayers
|
||||
graph_args --base 1000 -l 0
|
||||
graph_args --base 1000 -l 0
|
||||
graph_vlabel wmsStreamingPlayers
|
||||
graph_category streaming
|
||||
graph_info This graph shows wmsStreamingPlayers.
|
||||
|
|
|
@ -16,13 +16,13 @@
|
|||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
#
|
||||
# Derived from SNMP plugin code written by
|
||||
# Derived from SNMP plugin code written by
|
||||
# Jimmy Olsen, Dagfinn Ilmari Mannsaaker
|
||||
#
|
||||
#######################################################################
|
||||
#
|
||||
# You must enable SNMP for Windows Media Services by running:
|
||||
#
|
||||
#
|
||||
# regsvr32 "%systemroot%\system32\windows media\server\wmssnmp.dll
|
||||
#
|
||||
#######################################################################
|
||||
|
@ -86,7 +86,7 @@ if (defined $ARGV[0] and $ARGV[0] eq "config")
|
|||
{
|
||||
print "host_name $host\n";
|
||||
print "graph_title wmsStreamingRtspPlayers
|
||||
graph_args --base 1000 -l 0
|
||||
graph_args --base 1000 -l 0
|
||||
graph_vlabel wmsStreamingRtspPlayers
|
||||
graph_category streaming
|
||||
graph_info This graph shows wmsStreamingRtspPlayers.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue