From 2c9121708a6e304420f2fc6820b37006ffe43453 Mon Sep 17 00:00:00 2001 From: Lars Kruse Date: Mon, 5 Apr 2021 23:24:50 +0200 Subject: [PATCH] Fix some spelling mistakes Thanks, codespell! --- plugins/backuppc/backuppc | 2 +- plugins/chrony/chrony_ | 2 +- plugins/chrony/chrony_sourcestats | 4 ++-- plugins/cpu/multicpu | 2 +- plugins/disk/quota2percent_ | 2 +- plugins/disk/smart-c/smart_.c | 12 ++++++------ plugins/dspam/dspam_activity | 2 +- plugins/http/http_response | 2 +- plugins/icecast/icecast_ | 2 +- plugins/luftdaten/feinstaubsensor | 2 +- plugins/munin/healthcheck_log | 2 +- plugins/munin/healthcheck_process | 2 +- plugins/munin/healthcheck_url | 2 +- plugins/network/ip_forward_ | 2 +- plugins/network/linux_if/README.md | 2 +- plugins/php/eaccelerator | 2 +- plugins/php/php_apc_ | 2 +- plugins/postgresql/pgbouncer_ | 2 +- plugins/security/forefront_ | 6 +++--- plugins/ssl/certbot_expiry | 2 +- plugins/tomcat/tomcat_access | 4 ++-- plugins/zope/README-zodb | 2 +- 22 files changed, 31 insertions(+), 31 deletions(-) diff --git a/plugins/backuppc/backuppc b/plugins/backuppc/backuppc index ff279a12..289a79db 100755 --- a/plugins/backuppc/backuppc +++ b/plugins/backuppc/backuppc @@ -9,7 +9,7 @@ backuppc - monitor the age of backuppc's most recent backup operation =head1 APPLICABLE SYSTEMS -Hosts with a local backuppc respository. +Hosts with a local backuppc repository. =head1 CONFIGURATION diff --git a/plugins/chrony/chrony_ b/plugins/chrony/chrony_ index 667ee99f..8d9d7dfa 100755 --- a/plugins/chrony/chrony_ +++ b/plugins/chrony/chrony_ @@ -64,7 +64,7 @@ Used by munin-node-configure. #%# capabilities=autoconf suggest -=head1 KNOWN ISSSUES +=head1 KNOWN ISSUES The plugin will only work with 'external' sources. It will not recognize the names of internal refclocks. diff --git a/plugins/chrony/chrony_sourcestats b/plugins/chrony/chrony_sourcestats index 819a8384..c3c7cba1 100755 --- a/plugins/chrony/chrony_sourcestats +++ b/plugins/chrony/chrony_sourcestats @@ -35,7 +35,7 @@ Plugin configuration parameters By default the graphs are drawn using automatic scaling with these limits set the vertical scale of the graph will be bounded - (rigidly). Note the vallues above are (reasonable) example vallues, + (rigidly). Note the values above are (reasonable) example values, not the default. =head1 VERSION @@ -56,7 +56,7 @@ Used by munin-node-configure. #%# family=manual #%# capabilities=multigraph -=head1 KNOWN ISSSUES +=head1 KNOWN ISSUES There may be some issues when IP addresses are used instead of hostnames in the timesources environment. Also, the names should match diff --git a/plugins/cpu/multicpu b/plugins/cpu/multicpu index f0998f5e..717b372e 100755 --- a/plugins/cpu/multicpu +++ b/plugins/cpu/multicpu @@ -13,7 +13,7 @@ 0.1 initial release - Florian Fida */ - // make sure that paht to ps is valid for your system + // make sure that path to ps is valid for your system $ps_cmd = '/bin/ps -eo "%C,%a"'; // list of processes to monitor, can also be set by env.ps_filter in munin config diff --git a/plugins/disk/quota2percent_ b/plugins/disk/quota2percent_ index b8784d50..5af7ba38 100755 --- a/plugins/disk/quota2percent_ +++ b/plugins/disk/quota2percent_ @@ -76,7 +76,7 @@ V17.0214 V17.0124 - not pubish, first version + not published, first version =head1 AUTHOR diff --git a/plugins/disk/smart-c/smart_.c b/plugins/disk/smart-c/smart_.c index a8a8b007..7860e44c 100644 --- a/plugins/disk/smart-c/smart_.c +++ b/plugins/disk/smart-c/smart_.c @@ -17,7 +17,7 @@ static char getitem(char *input, unsigned char item, char *output) { unsigned char i = 0; - unsigned char seperators = 0; + unsigned char separators = 0; char know_this_seperator = 0; unsigned char start = 0; unsigned char stop = 0; @@ -28,23 +28,23 @@ static char getitem(char *input, unsigned char item, char *output) } /* If we're requested to return the very first item... */ - if (seperators == item) { + if (separators == item) { start = i; } - while (input[i] && seperators < item + 1) { + while (input[i] && separators < item + 1) { if (input[i] == ' ') { if (know_this_seperator == 0) { know_this_seperator = 1; - seperators++; - if (seperators == item + 1) { + separators++; + if (separators == item + 1) { stop = i; break; } } } else if (know_this_seperator) { know_this_seperator = 0; - if (seperators == item) { + if (separators == item) { start = i; } } else if (input[i] == '\n') { diff --git a/plugins/dspam/dspam_activity b/plugins/dspam/dspam_activity index b4e1f952..753ccb06 100755 --- a/plugins/dspam/dspam_activity +++ b/plugins/dspam/dspam_activity @@ -137,7 +137,7 @@ get_activity_description() { A) short="Blacklisted (RBL)" long="Message received and classified as spam because the sender ip is listed on the RBL" ;; M) short="Retrained as spam" long="Messages classified as innocent, but retrained by user as spam" ;; F) short="Retrained as innocent" long="Messages classified as spam, but retrained by the user as innocent" ;; - N) short=Inoculation long="Messages trained as spam trough inoculation" ;; + N) short=Inoculation long="Messages trained as spam through inoculation" ;; C) short=Corpusfed long="Messages fed from a corpus" ;; esac diff --git a/plugins/http/http_response b/plugins/http/http_response index a8c4a7ba..ac68799e 100755 --- a/plugins/http/http_response +++ b/plugins/http/http_response @@ -125,7 +125,7 @@ if [[ "$1" == "config" ]]; then echo 'multigraph http_response_code' echo 'graph_args --base 1000 -l 0 -u 511' echo 'graph_title HTTP Response Codes' - echo 'graph_vlabel Repsonse Code' + echo 'graph_vlabel Response Code' echo 'graph_category network' echo 'graph_info This graph shows HTTP response code statistics' echo 'graph_printf %3.0lf' diff --git a/plugins/icecast/icecast_ b/plugins/icecast/icecast_ index 0aca7253..9ab2691a 100755 --- a/plugins/icecast/icecast_ +++ b/plugins/icecast/icecast_ @@ -50,7 +50,7 @@ pw = "yourpassword" #exclude = ("123.123.123.123",) exclude = () -# Exclude these sources from calculation. This is useful to excluse special sources like +# Exclude these sources from calculation. This is useful to exclude special sources like # fallback sources which doesn't expose the same information and then break this script # Ever add fallback sources to this list #source_exclude = ["/fallback.mp3", "/fallback.ogg"] diff --git a/plugins/luftdaten/feinstaubsensor b/plugins/luftdaten/feinstaubsensor index e649c50d..5bf944e3 100755 --- a/plugins/luftdaten/feinstaubsensor +++ b/plugins/luftdaten/feinstaubsensor @@ -202,7 +202,7 @@ def get_sensor_data(host): def print_graph_section(graph_description, hosts, include_config, include_values): - # retrieve the data and omit ony output, if the relevant key is missing + # retrieve the data and omit output only if the relevant key is missing results = [] for host_info in hosts: data = get_sensor_data(host_info.host) diff --git a/plugins/munin/healthcheck_log b/plugins/munin/healthcheck_log index a47f5f4f..982cdfe9 100755 --- a/plugins/munin/healthcheck_log +++ b/plugins/munin/healthcheck_log @@ -3,7 +3,7 @@ #healthcheck on munin #egrep system log and alert. # -#programed by rti (hiroyuki fujie) super.rti@gmail.com @super_rti +#programmed by rti (hiroyuki fujie) super.rti@gmail.com @super_rti #LICENSE: NYSL (public domain) # # diff --git a/plugins/munin/healthcheck_process b/plugins/munin/healthcheck_process index 685938bc..04197cdf 100755 --- a/plugins/munin/healthcheck_process +++ b/plugins/munin/healthcheck_process @@ -3,7 +3,7 @@ #healthcheck on munin #check process and alert. # -#programed by rti (hiroyuki fujie) super.rti@gmail.com @super_rti +#programmed by rti (hiroyuki fujie) super.rti@gmail.com @super_rti #LICENSE: NYSL (public domain) # #config file diff --git a/plugins/munin/healthcheck_url b/plugins/munin/healthcheck_url index e7faedf3..666a3b2a 100755 --- a/plugins/munin/healthcheck_url +++ b/plugins/munin/healthcheck_url @@ -5,7 +5,7 @@ #egrep contents string # ... and alert. # -#programed by rti (hiroyuki fujie) super.rti@gmail.com @super_rti +#programmed by rti (hiroyuki fujie) super.rti@gmail.com @super_rti #LICENSE: NYSL (public domain) # #config file diff --git a/plugins/network/ip_forward_ b/plugins/network/ip_forward_ index b13cf960..570d35c5 100755 --- a/plugins/network/ip_forward_ +++ b/plugins/network/ip_forward_ @@ -5,7 +5,7 @@ # # ln -s /usr/share/node/node/plugins-auto/if_forward_ /etc/munin/node.d/if_forward_eth0 # -# ...will monitor forwarded traffic trough eth0. +# ...will monitor forwarded traffic through eth0. # # Additionally, you need these iptables rules as the first rules (they don't do anything, just make packet counts) # diff --git a/plugins/network/linux_if/README.md b/plugins/network/linux_if/README.md index d39bbaa0..e92da04e 100644 --- a/plugins/network/linux_if/README.md +++ b/plugins/network/linux_if/README.md @@ -5,7 +5,7 @@ Linux network monitoring plugin with support for *bonding* and *vlans*. Plugin will group all bonding slaves into one aggregated graph. It removes clutter of having many single-metric graphs for individual interfaces. You still can click -trough to individual graphs. +through to individual graphs. In this example, `p1p1`, `p2p1` are physical interfaces of one bond0. Only p1p1 is active, as we are using Active-Backup bonding mode. `Total` (black) is the throughput of parent diff --git a/plugins/php/eaccelerator b/plugins/php/eaccelerator index d7885118..1e8d234a 100755 --- a/plugins/php/eaccelerator +++ b/plugins/php/eaccelerator @@ -119,7 +119,7 @@ fi ################################################################# -# run the sript +# run the script if [ -x $WGET ]; then # quiet output to stdout wget -q $WGET_FLAGS "$URL" -O - diff --git a/plugins/php/php_apc_ b/plugins/php/php_apc_ index d9be9ce8..67501285 100755 --- a/plugins/php/php_apc_ +++ b/plugins/php/php_apc_ @@ -118,7 +118,7 @@ exit 0 fi ################################################################# -# run the sript +# run the script [ -x $WGET ] && $WGET -q $WGET_FLAGS "$URL?act=$act" -O - && exit 0 diff --git a/plugins/postgresql/pgbouncer_ b/plugins/postgresql/pgbouncer_ index 9257886f..56b32a2c 100755 --- a/plugins/postgresql/pgbouncer_ +++ b/plugins/postgresql/pgbouncer_ @@ -165,7 +165,7 @@ if (defined($ARGV[0])) # connect to data my $dbh = DBI->connect("DBI:Pg:dbname=$db_name;host=$db_host;port=$db_port", $db_user, $db_pass) or die ("Cannot connect to database"); -# go trough each set and get the data +# go through each set and get the data foreach my $get ('pools', 'stats') { # prep and execute the show query diff --git a/plugins/security/forefront_ b/plugins/security/forefront_ index 47ce449d..0cc40eed 100755 --- a/plugins/security/forefront_ +++ b/plugins/security/forefront_ @@ -32,7 +32,7 @@ # # Install guide: # This plugin relies on correct configured ODBC for the MOM database -# Prerequisits: +# Prerequisites: # * Install and configure FreeTDS and DBD::Sybase (packages tdsodbc and libdbd-sybase-perl on Ubuntu) # - DBD::Sybase is preferred over ODBC because of strange TEXT field handling in DBD::ODBC # @@ -214,11 +214,11 @@ EOF chomp($field); print $field . ".label " . $profiles{$policy}{'name'} . "\n"; print $field . ".draw LINE2\n"; - print $field . ".info Numer of computers having the " .$profiles{$policy}{'name'} . " profile.\n"; + print $field . ".info Number of computers having the " .$profiles{$policy}{'name'} . " profile.\n"; if($profiles{$policy}{'old'}) { print $field . "old.label " . $profiles{$policy}{'name'} . " (old)\n"; print $field . "old.draw LINE2\n"; - print $field . "old.info Numer of computers having an old version of the " .$profiles{$policy}{'name'} . " profile.\n"; + print $field . "old.info Number of computers having an old version of the " .$profiles{$policy}{'name'} . " profile.\n"; } } } diff --git a/plugins/ssl/certbot_expiry b/plugins/ssl/certbot_expiry index e33f68fe..b84ba99d 100755 --- a/plugins/ssl/certbot_expiry +++ b/plugins/ssl/certbot_expiry @@ -164,7 +164,7 @@ sub get_data { if ( $cert_files{$cert_name}{"cert"} ne "" ) { if ( ! -f -r $cert_files{$cert_name}{"cert"}) { - # warn, only on debuging, that a file couldn't be opened. sane defaults will show zero days remaining for this certificate + # warn, only on debugging, that a file couldn't be opened. sane defaults will show zero days remaining for this certificate if ( $DEBUG ) { print "# WARNING: {$cert_name} certificate not found or not readable" } } else { # use openssl for the info diff --git a/plugins/tomcat/tomcat_access b/plugins/tomcat/tomcat_access index cce015a4..a2a15763 100755 --- a/plugins/tomcat/tomcat_access +++ b/plugins/tomcat/tomcat_access @@ -80,8 +80,8 @@ if(exists $ARGV[0] and $ARGV[0] eq "autoconf") { exit 0; } my $au = LWP::UserAgent->new(timeout => $TIMEOUT); - my $repsonse = $au->request(HTTP::Request->new('GET',$url)); - if($repsonse->is_success and $repsonse->content =~ /.*<\/status>/im) { + my $response = $au->request(HTTP::Request->new('GET',$url)); + if($response->is_success and $response->content =~ /.*<\/status>/im) { print "yes\n"; exit 0; } else { diff --git a/plugins/zope/README-zodb b/plugins/zope/README-zodb index ecd70dd0..71aff1d2 100644 --- a/plugins/zope/README-zodb +++ b/plugins/zope/README-zodb @@ -33,4 +33,4 @@ Test them with: Restart your munin-node and the graphs should appear shortly. If you make any improvements (which should be easy), please update -the munin exhange entry, or mail me at gaute(at)pht(dot)no +the munin exchange entry, or mail me at gaute(at)pht(dot)no