1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-25 10:28:36 +00:00

Fix spelling mistakes in comments and descriptions

Thanks, codespell!
This commit is contained in:
Lars Kruse 2020-03-26 02:12:57 +01:00
parent 561da1a3f1
commit 8713eb3722
162 changed files with 248 additions and 248 deletions

View file

@ -57,7 +57,7 @@ You will need to supply your API login details:
env.site site_string
=head2 Graph Categories / Host Managment
=head2 Graph Categories / Host Management
Sometimes, you need more control over where the unifi graphs appear.
@ -89,7 +89,7 @@ And, in your munin master configuration: (Something like: /etc/munin/munin.conf)
[hostname.whatever.youlike]
address ip.of.munin.node
Make sure you do *not* set "use_node_name" on this new host. It may be nessesary to define "host_name"
Make sure you do *not* set "use_node_name" on this new host. It may be necessary to define "host_name"
in your munin-node configuration as well, if you have not already (Likely, on a multi-homed host, this
has been done to keep munin-node from advertising itself as localhost)
@ -223,7 +223,7 @@ use strict;
use utf8;
use Munin::Plugin;
# Check dependancies
# Check dependencies
my @errorCode;
my $me = (split '/', $0)[-1];
@ -234,9 +234,9 @@ if (! eval {require WWW::Curl::Easy; 1;} ) {
push @errorCode, "WWW::Curl::Easy module not found";
}
# Fail on not found dependancies
# Fail on not found dependencies
if ( @errorCode != 0 ) {
die "FATAL:$me: Perl dependancies not installed (", join(", " => @errorCode), ")\n";
die "FATAL:$me: Perl dependencies not installed (", join(", " => @errorCode), ")\n";
}
# Multigraph cabability is required for this plugin
@ -300,7 +300,7 @@ my $jsonOBJ = JSON->new() or die "FATAL:$me: JSON init failed!\n";
if ( !env_default_bool_true('USE_API') ) {
if (! eval {require File::Slurp; File::Slurp->import(); 1; } ) {
die "Local debug unavailable, File::Slurp CPAN moduel required\n";
die "Local debug unavailable, File::Slurp CPAN module required\n";
}
foreach ( "./demo-test-files/device", "./demo-test-files/sta", "./demo-test-files/wlanconf" ) {
if ( ! -f $_ ) { die "File not found: $_\n"; }
@ -438,7 +438,7 @@ sub do_config_xfer_by_radio {
'--base 1000',
'Packets/${graph_period}',
'network',
'Number of packets transfered per individual radio band'
'Number of packets transferred per individual radio band'
);
foreach my $thisDevice ( sort keys %{$Data{'device'}} ) {
@ -591,7 +591,7 @@ sub do_config_xfer_by_uplink {
foreach ( "rx", "tx" ) {
print $_ , "_speed.label Speedtest\n";
print $_ , "_bytes.label Transfered\n";
print $_ , "_bytes.label Transferred\n";
print $_ , "_speed.type GAUGE\n";
print $_ , "_bytes.type DERIVE\n";
print $_ , "_speed.min 0\n";
@ -707,7 +707,7 @@ sub do_config_load {
}
sub do_config_mem {
# Provice device memory usage for each unifi device - CONFIG
# Provide device memory usage for each unifi device - CONFIG
if ( !$PluginConfig{'enable_device_mem'} ) { return 0; }
graph_prologue(
'unifi_device_mem',
@ -901,7 +901,7 @@ sub do_values_cpu {
}
sub do_values_mem {
# Provice device memory usage for each unifi device - VALUES
# Provide device memory usage for each unifi device - VALUES
if ( !$PluginConfig{'enable_device_mem'} ) { return 0; }
print "multigraph unifi_device_mem\n";
@ -1192,7 +1192,7 @@ sub make_safe {
}
}
# Get a default from an enviromental variable - return text
# Get a default from an environmental variable - return text
#
# env_default(<variable name>, <default>)
sub env_default_text {
@ -1200,7 +1200,7 @@ sub env_default_text {
return ( ( defined $ENV{$env_var} ) ? $ENV{$env_var} : $default ),
}
# Get a default from an enviromental variable - boolean true
# Get a default from an environmental variable - boolean true
#
# env_default_bool_true (<variable name>, <default>)
sub env_default_bool_true {