1
0
Fork 0
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:
Lars Kruse 2018-08-02 02:03:42 +02:00
parent ef851f0c34
commit 17f784270a
604 changed files with 2927 additions and 2945 deletions

View file

@ -4,21 +4,21 @@
"""
# The SNMP traps for the NetApp filer can be found in
# /net/netappfiler/vol0/etc/mib/traps.dat if the filer is
# /net/netappfiler/vol0/etc/mib/traps.dat if the filer is
# NFS automounted mounted on server.
# Example: the SNMP id for cpuBusyTimePerCent is
# snmp.1.3.6.1.4.1.789.1.2.1.3.0
# and retrival of this value is done by
# snmp.1.3.6.1.4.1.789.1.2.1.3.0
# and retrival of this value is done by
# snmpget -v 1 -c public netappfiler 1.3.6.1.4.1.789.1.2.1.3.0
#
# Requires snmpget and assumes public community.
# Requires snmpget and assumes public community.
import commands
import sys
# Provided a servername and a snmpid it returns the value stripped of bogus information.
def snmpget(iservername,isnmpid):
runcmd = 'snmpget -v 1 -c public ' + iservername + ' ' + isnmpid
runcmd = 'snmpget -v 1 -c public ' + iservername + ' ' + isnmpid
output = commands.getoutput(runcmd)
return output.split()[3]
@ -34,14 +34,14 @@ if len(sys.argv) == 2 and sys.argv[1] == "config":
print 'graph_args --base 1000 -l 0'
print 'graph_vlabel number'
print 'graph_category fs'
print 'graph_info This graph shows CIFS usage on '+servername
print 'graph_info This graph shows CIFS usage on '+servername
print 'cifsConnectedUsers.label ConnectedUsers'
print 'cifsConnectedUsers.info The current number of CIFS users on the filer'
print 'cifsNSessions.label NumberOfSessions'
print 'cifsNSessions.info The current number of active CIFS session on the filer'
print 'cifsNOpenFiles.label NumberOfOpenfiles'
print 'cifsNOpenFiles.info The number of open CIFS files and directories on the filer'
sys.exit(0)

View file

@ -4,14 +4,14 @@
"""
# The SNMP traps for the NetApp filer can be found in
# /net/netappfiler/vol0/etc/mib/traps.dat if the filer is
# /net/netappfiler/vol0/etc/mib/traps.dat if the filer is
# NFS automounted mounted on server.
# Example: the SNMP id for cpuBusyTimePerCent is
# snmp.1.3.6.1.4.1.789.1.2.1.3.0
# and retrival of this value is done by
# snmp.1.3.6.1.4.1.789.1.2.1.3.0
# and retrival of this value is done by
# snmpget -v 1 -c public netappfiler 1.3.6.1.4.1.789.1.2.1.3.0
#
# Requires snmpget and assumes public community.
# Requires snmpget and assumes public community.
import commands
import sys
@ -24,7 +24,7 @@ def snmpget(iservername,isnmpid):
snmpid = "1.3.6.1.4.1.789.1.2.1.3.0"
warning = 80
critical = 95
critical = 95
servername = sys.argv[0].split('_')[1]
if len(sys.argv) == 2 and sys.argv[1] == "config":

View file

@ -64,7 +64,7 @@ sub do_collect
sub do_config_root
{
# graph_category san # To show plugin in Gallery also in this category
my ($host) = @_;
print "multigraph diskbusy\n";

View file

@ -14,9 +14,9 @@ with SNMP agent daemon activated. See na_snmp(8) for details.
Unfortunately, SNMPv3 is not fully supported on all NetApp equipments.
For this reason, this plugin will use SNMPv2 by default, which is
insecure because it doesn't encrypt the community string.
insecure because it doesn't encrypt the community string.
The following parameters will help you get this plugin working :
The following parameters will help you get this plugin working:
[snmp_*]
env.community MyCommunity