Fix spelling mistakes in comments and descriptions
Thanks, codespell!
This commit is contained in:
parent
561da1a3f1
commit
8713eb3722
|
@ -84,7 +84,7 @@ def Property(func):
|
|||
|
||||
class Apt(object):
|
||||
"""
|
||||
lazy helperclass i need in this statisticprogram, which have alle the apt_pkg stuff
|
||||
lazy helperclass i need in this statisticprogram, which has all the apt_pkg stuff
|
||||
"""
|
||||
|
||||
def __init__(self):
|
||||
|
@ -575,7 +575,7 @@ class PacketHandler(object):
|
|||
|
||||
def adder(self, package, packageStat, *args, **kwords):
|
||||
"""
|
||||
take the package and add it tho the packageStat dictionary in defined way
|
||||
take the package and add it to the packageStat dictionary in defined way
|
||||
"""
|
||||
pass
|
||||
|
||||
|
@ -868,7 +868,7 @@ deb_packages - plugin to monitor update resources and pending packages on Debian
|
|||
|
||||
This plugin has checked on Debian - Wheezy and squeeze. If you want to use it
|
||||
on older installations, tell me whether it works or which errors you had. It
|
||||
shoud run past python-apt 0.7 and python 2.5.
|
||||
should run past python-apt 0.7 and python 2.5.
|
||||
|
||||
=head1 DESCRIPTION
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ my $version = "1.0"; # UA Version
|
|||
my $agentname = "$pluginname Munin Plugin V$version"; # UA String
|
||||
my $url = "http://localhost:55553/"; # (defaults to localhost)
|
||||
my $response = 0; # the server output
|
||||
my @content = (); # the content we're retrive from $response
|
||||
my @content = (); # the content we retrieve from $response
|
||||
my %index = ( # for Version 2
|
||||
'from' => 40, # <-- index frame from ( a tweak for other ASSP Versions )
|
||||
'to' => 63 # <-- index frame to ( "" )
|
||||
|
|
|
@ -30,7 +30,7 @@ my $version = "1.0"; # UA Version
|
|||
my $agentname = "$pluginname Munin Plugin V$version"; # UA String
|
||||
my $url = "http://localhost:55553/"; # (defaults to localhost)
|
||||
my $response = 0; # the server output
|
||||
my @content = (); # the content we're retrive from $response
|
||||
my @content = (); # the content we retrieve from $response
|
||||
my %index = ( # for Version 2
|
||||
'from' => 2, # <-- index frame from ( a tweak for other ASSP Versions )
|
||||
'to' => 4 # <-- index frame to ( "" )
|
||||
|
|
|
@ -30,7 +30,7 @@ my $version = "1.0"; # UA Version
|
|||
my $agentname = "$pluginname Munin Plugin V$version"; # UA String
|
||||
my $url = "http://localhost:55553/"; # (defaults to localhost)
|
||||
my $response = 0; # the server output
|
||||
my @content = (); # the content we're retrive from $response
|
||||
my @content = (); # the content we retrieve from $response
|
||||
my %index = ( # for Version 2
|
||||
'from' => 66, # <-- index frame from ( a tweak for other ASSP Versions )
|
||||
'to' => 100 # <-- index frame to ( "" )
|
||||
|
|
|
@ -30,7 +30,7 @@ my $version = "1.0"; # UA Version
|
|||
my $agentname = "$pluginname Munin Plugin V$version"; # UA String
|
||||
my $url = "http://localhost:55553/"; # (defaults to localhost)
|
||||
my $response = 0; # the server output
|
||||
my @content = (); # the content we're retrive from $response
|
||||
my @content = (); # the content we retrieve from $response
|
||||
my %index = ( # for Version 2
|
||||
'from' => 25, # <-- index frame from ( a tweak for other ASSP Versions )
|
||||
'to' => 38 # <-- index frame to ( "" )
|
||||
|
|
|
@ -30,7 +30,7 @@ my $version = "1.0"; # UA Version
|
|||
my $agentname = "$pluginname Munin Plugin V$version"; # UA String
|
||||
my $url = "http://localhost:55553/"; # (defaults to localhost)
|
||||
my $response = 0; # the server output
|
||||
my @content = (); # the content we're retrive from $response
|
||||
my @content = (); # the content we retrieve from $response
|
||||
my %index = ( # for Version 2
|
||||
'from' => 4, # <-- index frame from ( a tweak for other ASSP Versions )
|
||||
'to' => 5 # <-- index frame to ( "" )
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# config (required)
|
||||
# autoconf (optional - used by munin-config)
|
||||
#
|
||||
# Magick markers (optional - used by munin-config and som installation
|
||||
# Magick markers (optional - used by munin-config and some installation
|
||||
# scripts):
|
||||
#%# family=auto
|
||||
#%# capabilities=autoconf
|
||||
|
|
|
@ -27,7 +27,7 @@ daily archives.
|
|||
|
||||
This will also set the warning and critical values for this plugin to 2*4 and
|
||||
4, respectively, meaning that if the number of fresh files goes below those
|
||||
limits, the relevant notifications will be triggerred.
|
||||
limits, the relevant notifications will be triggered.
|
||||
|
||||
An example configuration snippet for backup-manager [0] follows.
|
||||
|
||||
|
|
|
@ -110,7 +110,7 @@ def print_config():
|
|||
print("graph_args --base 1024 -l 0")
|
||||
print("graph_scale yes")
|
||||
print("graph_info Bacula Storage Daemon througput measurement based on written bytes. "
|
||||
"This may be somewhat inacurate whenever a tape is changed.")
|
||||
"This may be somewhat inaccurate whenever a tape is changed.")
|
||||
print("graph_category backup")
|
||||
print("graph_order", " ".join([dev[2] for dev in devstats]))
|
||||
print()
|
||||
|
|
|
@ -7,7 +7,7 @@ acpi_batt_ Munin plugin to monitor the (note|net)book battery states through pro
|
|||
|
||||
=head1 APPLICABLE SYSTEMS
|
||||
|
||||
Notebooks and netbooks with avialable /proc/acpi/battery
|
||||
Notebooks and netbooks with available /proc/acpi/battery
|
||||
|
||||
=head1 CONFIGURATION
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ acpi_sys_batt_ Munin plugin to monitor the (note|net)book battery states through
|
|||
|
||||
=head1 APPLICABLE SYSTEMS
|
||||
|
||||
Notebooks and netbooks with avialable /sys/class/power_supply
|
||||
Notebooks and netbooks with available /sys/class/power_supply
|
||||
|
||||
=head1 CONFIGURATION
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ batteries Munin plugin to monitor the battery states through procfs and sysfs
|
|||
|
||||
=head1 APPLICABLE SYSTEMS
|
||||
|
||||
Systems with avialable /proc/acpi/battery/BATx or /sys/class/power_supply/BATx
|
||||
Systems with available /proc/acpi/battery/BATx or /sys/class/power_supply/BATx
|
||||
|
||||
=head1 CONFIGURATION
|
||||
|
||||
|
@ -16,19 +16,19 @@ none
|
|||
=head1 INTERPRETATION
|
||||
|
||||
The plugin shows:
|
||||
Design capacity -> avialable if avialable /proc/acpi/battery/BATx or /sys/class/power_supply/BATx
|
||||
Last full capacity -> avialable if avialable /proc/acpi/battery/BATx or /sys/class/power_supply/BATx
|
||||
Design capacity low -> avialable only if avialable /proc/acpi/battery/BATx
|
||||
Design capacity warning -> avialable only if avialable /proc/acpi/battery/BATx
|
||||
Capacity granularity 1 -> avialable only if avialable /proc/acpi/battery/BATx
|
||||
Capacity granularity 2 -> avialable only if avialable /proc/acpi/battery/BATx
|
||||
Remaining capacity -> avialable if avialable /proc/acpi/battery/BATx or /sys/class/power_supply/BATx
|
||||
Present rate -> avialable if avialable /proc/acpi/battery/BATx or /sys/class/power_supply/BATx
|
||||
Percentage Current/design voltage -> avialable if avialable /proc/acpi/battery/BATx or /sys/class/power_supply/BATx
|
||||
Percentage Current/full capacity -> avialable if avialable /proc/acpi/battery/BATx or /sys/class/power_supply/BATx
|
||||
Percentage Full/design capacity -> avialable if avialable /proc/acpi/battery/BATx or /sys/class/power_supply/BATx
|
||||
Design voltage -> avialable if avialable /proc/acpi/battery/BATx or /sys/class/power_supply/BATx
|
||||
Present voltage -> avialable if avialable /proc/acpi/battery/BATx or /sys/class/power_supply/BATx
|
||||
Design capacity -> available if available /proc/acpi/battery/BATx or /sys/class/power_supply/BATx
|
||||
Last full capacity -> available if available /proc/acpi/battery/BATx or /sys/class/power_supply/BATx
|
||||
Design capacity low -> available only if available /proc/acpi/battery/BATx
|
||||
Design capacity warning -> available only if available /proc/acpi/battery/BATx
|
||||
Capacity granularity 1 -> available only if available /proc/acpi/battery/BATx
|
||||
Capacity granularity 2 -> available only if available /proc/acpi/battery/BATx
|
||||
Remaining capacity -> available if available /proc/acpi/battery/BATx or /sys/class/power_supply/BATx
|
||||
Present rate -> available if available /proc/acpi/battery/BATx or /sys/class/power_supply/BATx
|
||||
Percentage Current/design voltage -> available if available /proc/acpi/battery/BATx or /sys/class/power_supply/BATx
|
||||
Percentage Current/full capacity -> available if available /proc/acpi/battery/BATx or /sys/class/power_supply/BATx
|
||||
Percentage Full/design capacity -> available if available /proc/acpi/battery/BATx or /sys/class/power_supply/BATx
|
||||
Design voltage -> available if available /proc/acpi/battery/BATx or /sys/class/power_supply/BATx
|
||||
Present voltage -> available if available /proc/acpi/battery/BATx or /sys/class/power_supply/BATx
|
||||
|
||||
=head1 MAGIC MARKERS
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/perl
|
||||
#
|
||||
# Copyright Jean-Samuel Reynaud <js.reynaud@free.fr>
|
||||
# Licenced under GPL v2
|
||||
# Licensed under GPL v2
|
||||
#
|
||||
# We use this script to produce graph with munin for dns requests
|
||||
# This script must have his name start with bind95_
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/perl
|
||||
#
|
||||
# Copyright Jean-Samuel Reynaud <js.reynaud@free.fr>
|
||||
# Licenced under GPL v2
|
||||
# Licensed under GPL v2
|
||||
#
|
||||
# We use this script to produce graph with munin for dns requests
|
||||
# This script must have his name start with bind_
|
||||
|
|
|
@ -34,7 +34,7 @@ Revision 0.3 2014/02/16 zjttoefs
|
|||
reduce forking by using awk
|
||||
do not limit output precision
|
||||
add stratum monitoring
|
||||
detect slow/fast time or freqency and adjust sign of value accordingly
|
||||
detect slow/fast time or frequency and adjust sign of value accordingly
|
||||
remove commented out code
|
||||
|
||||
Revision 0.4 2016/11/10 Lars Kruse
|
||||
|
|
|
@ -87,7 +87,7 @@ hash_rate = "U"
|
|||
try:
|
||||
mining_stats = json.loads(mining_stats_raw.read().decode("utf-8"))
|
||||
except ValueError:
|
||||
print("Failed to parse JSON responce.", file=sys.stderr)
|
||||
print("Failed to parse JSON response.", file=sys.stderr)
|
||||
else:
|
||||
try:
|
||||
worker = mining_stats['data']
|
||||
|
|
|
@ -47,7 +47,7 @@ ID=1;
|
|||
# - initial release,
|
||||
#
|
||||
#################################################################
|
||||
# Magick markers (optional - used by munin-config and som installation
|
||||
# Magick markers (optional - used by munin-config and some installation
|
||||
# scripts):
|
||||
#%# family=auto
|
||||
#%# capabilities=autoconf
|
||||
|
|
|
@ -121,7 +121,7 @@ daemonize();
|
|||
|
||||
#
|
||||
##
|
||||
### PUBLIC FONCTIONS
|
||||
### PUBLIC FUNCTIONS
|
||||
###############################################################################
|
||||
## Used to create the fork
|
||||
sub daemonize {
|
||||
|
@ -185,7 +185,7 @@ sub munin_exit_fail {
|
|||
|
||||
#
|
||||
##
|
||||
### INTERNALS FONCTIONS
|
||||
### INTERNALS FUNCTIONS
|
||||
###############################################################################
|
||||
sub __munin_exit {
|
||||
my $exitcode = shift;
|
||||
|
|
|
@ -26,7 +26,7 @@ if ($mode eq 'autoconf')
|
|||
|
||||
if ($mode eq 'config')
|
||||
{
|
||||
# headers for the temperatur
|
||||
# headers for the temperature
|
||||
print "graph_title HP Temperature sensors in Celsius\n";
|
||||
print "graph_args --base 1000 -l 0\n";
|
||||
print "graph_vlabel degrees Celsius\n";
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# Plugin to monitor Proliant server health status using hpasmcli.
|
||||
#
|
||||
# Config variables:
|
||||
# user root -- requrired by hpasmcli
|
||||
# user root -- required by hpasmcli
|
||||
# env.hpasmcli -- path to hpasmcli executable (optional)
|
||||
# env.degree -- Unit of temperatures (C or F / default value is C)
|
||||
#
|
||||
|
|
|
@ -111,7 +111,7 @@ GPLv2 (L<http://www.gnu.org/licenses/gpl-2.0.html>)
|
|||
# Preparation section #
|
||||
###################################################
|
||||
|
||||
# Load munin's shell libary
|
||||
# Load munin's shell library
|
||||
. "$MUNIN_LIBDIR/plugins/plugin.sh"
|
||||
|
||||
# if any fetch from munin-node file
|
||||
|
@ -172,7 +172,7 @@ GPLv2 (L<http://www.gnu.org/licenses/gpl-2.0.html>)
|
|||
de)
|
||||
echo "graph_title Quota-Hard-Limit von $Id"
|
||||
echo "graph_vlabel Nutzung in % Hardlimit"
|
||||
echo "graph_info Die Grafik zeigt die Belegung des durch Quota reglementierten Speicherplatzes für alle regulären Nutzer (UID >= $Min_UID) in Prozent des Hardlimits."
|
||||
echo "graph_info Die Grafik zeigt die Belegung des durch Quota reglementierten Speicherplatzes für all regulären Nutzer (UID >= $Min_UID) in Prozent des Hardlimits."
|
||||
Total_txt="Su. aller Nutzer"
|
||||
Total_info="Inklusive Systemnutzer (UID < $Min_UID)"
|
||||
;;
|
||||
|
@ -208,10 +208,10 @@ GPLv2 (L<http://www.gnu.org/licenses/gpl-2.0.html>)
|
|||
# Determine the currently processing UID
|
||||
Cur_UID="$(id -u "$User")"
|
||||
|
||||
# skip if actual user a system user und low_uid ist set to never
|
||||
# skip if actual user a system user und low_uid is set to never
|
||||
[ "$Cur_UID" -lt "$Min_UID" ] && [ "$Low_UID" = "never" ] && continue
|
||||
|
||||
# No graph for none human uid if low_uid ist set to no
|
||||
# No graph for none human uid if low_uid is set to no
|
||||
[ "$Cur_UID" -lt "$Min_UID" ] && echo "$Fieldname.graph $Low_UID"
|
||||
|
||||
# configure the user lines
|
||||
|
@ -238,7 +238,7 @@ GPLv2 (L<http://www.gnu.org/licenses/gpl-2.0.html>)
|
|||
Quota=( ${Quotas[$i]} )
|
||||
Fieldname="$(clean_fieldname "${Quota[0]}")"
|
||||
|
||||
# skip if actual user a system user und low_uid ist set to never
|
||||
# skip if actual user a system user und low_uid is set to never
|
||||
[ "$Cur_UID" -lt "$Min_UID" ] && [ "$Low_UID" = "never" ] && continue
|
||||
|
||||
# write the result zu munin
|
||||
|
|
|
@ -29,7 +29,7 @@ if ( $logfile =~ /dovecot/ ) {
|
|||
$dovelogfile = 1 ;
|
||||
}
|
||||
|
||||
# Use an overrided $PATH for all external programs if needed
|
||||
# Use an overridden $PATH for all external programs if needed
|
||||
$DOVEADM = "doveadm";
|
||||
|
||||
if ( $ARGV[0] and $ARGV[0] eq "autoconf" ) {
|
||||
|
@ -152,7 +152,7 @@ if (! -f $logfile and ! -f $rotlogfile) {
|
|||
exit 0;
|
||||
}
|
||||
|
||||
# dit kan beter maar twee calls zijn toch nodig als we niet zelf aggegreren
|
||||
# dit kan beter maar twee calls zijn toch nodig also we niet zelf aggegreren
|
||||
# suggestie: doveadm who -1 | awk '{print $1" "$2" "$4}' | sort | uniq -c
|
||||
$connectedimap = `$DOVEADM -f flow who | grep imap | wc -l`;
|
||||
$connectedpop3 = `$DOVEADM -f flow who | grep pop3 | wc -l`;
|
||||
|
|
|
@ -89,7 +89,7 @@ The plugin supports the following graph types:
|
|||
display the increase of processed messages over time.
|
||||
|
||||
relprocessed - Shows the same data as dspam_absprocessed_, but as
|
||||
messages per minute instead of ever-growing asolute
|
||||
messages per minute instead of ever-growing absolute
|
||||
values.
|
||||
|
||||
processed - Shows the same data as dspam_absprocessed_, but as
|
||||
|
|
|
@ -182,7 +182,7 @@ check_conf_and_set_vars () {
|
|||
echo "No control station addresses ('cs_addr' environment variable)!"
|
||||
return 1
|
||||
fi
|
||||
#Choosing Cotrol Station. Code have to be "10"
|
||||
#Choosing Control Station. Code have to be "10"
|
||||
for CS in $cs_addr; do
|
||||
if [[ "10" = "$(ssh_check_cmd "$CS")" ]]; then
|
||||
PRIMARY_CS=$CS
|
||||
|
|
|
@ -160,7 +160,7 @@ check_conf () {
|
|||
return 1
|
||||
fi
|
||||
|
||||
#Choosing Cotrol Station. Code have to be "10"
|
||||
#Choosing Control Station. Code have to be "10"
|
||||
for CS in $cs_addr; do
|
||||
if [[ "10" = "$(ssh_check_cmd "$CS")" ]]; then
|
||||
PRIMARY_CS=$CS
|
||||
|
|
|
@ -8,7 +8,7 @@ if [ "$1" = 'config' ]; then
|
|||
echo "graph_title Serveur FTP"
|
||||
echo "graph_category network"
|
||||
echo "graph_vlabel Stats Proftpd"
|
||||
echo "succes.label Login succes"
|
||||
echo "succes.label Login success"
|
||||
echo "succes.draw AREA"
|
||||
echo "failed.label Login failed"
|
||||
echo "failed.draw AREA"
|
||||
|
@ -16,10 +16,10 @@ fi
|
|||
|
||||
LOGFILE=${LOGFILE:-"/var/log/proftpd/proftpd.log"}
|
||||
|
||||
succes=$(grep -c "successful" "$LOGFILE" )
|
||||
success=$(grep -c "successful" "$LOGFILE")
|
||||
failed=$(grep -c "Login failed" "$LOGFILE" )
|
||||
|
||||
echo "succes.value $succes"
|
||||
echo "succes.value $success"
|
||||
echo "failed.value $failed"
|
||||
|
||||
exit 0
|
||||
|
|
|
@ -53,7 +53,7 @@ fi
|
|||
if [ "$1" = "config" ]; then
|
||||
echo 'graph_title Pure Ftpd Bandwidth'
|
||||
echo 'graph_args --base 1000 -l 0'
|
||||
echo 'graph_vlabel Datas sent / received'
|
||||
echo 'graph_vlabel Data sent / received'
|
||||
echo 'graph_category network'
|
||||
echo 'dl.label Bytes downloaded'
|
||||
echo 'ul.label Bytes uploaded'
|
||||
|
@ -73,7 +73,7 @@ if [ -f $TMP1 ]; then
|
|||
echo "ul.value ${ul}"
|
||||
rm $TMP1
|
||||
else
|
||||
echo "cant write temp file"
|
||||
echo "can't write temp file"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
|
@ -71,7 +71,7 @@ if [ "$1" = "config" ]; then
|
|||
exit 0
|
||||
fi
|
||||
|
||||
# Pring number of downloads.
|
||||
# Print number of downloads.
|
||||
|
||||
j=0
|
||||
for (( i = 1 ; i < $Nfiles ; i=i+5 ))
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#
|
||||
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
|
||||
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
||||
# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
#
|
||||
|
||||
#
|
||||
|
|
|
@ -55,7 +55,7 @@
|
|||
# ...will monitor a single GWIA object on host foo.example.com.
|
||||
#
|
||||
# Parameters
|
||||
# community - Specify wich community string to use (Default: public)
|
||||
# community - Specify which 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,
|
||||
|
|
|
@ -59,7 +59,7 @@
|
|||
# ...will monitor a single GWIA object on host foo.example.com.
|
||||
#
|
||||
# Parameters
|
||||
# community - Specify wich community string to use (Default: public)
|
||||
# community - Specify which 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,
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
# ...will monitor a single GWMTA object on host foo.example.com.
|
||||
#
|
||||
# Parameters
|
||||
# community - Specify wich community string to use (Default: public)
|
||||
# community - Specify which 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,
|
||||
|
|
|
@ -63,7 +63,7 @@
|
|||
# Configuration:
|
||||
# --------------
|
||||
# Parameters
|
||||
# community - Specify wich community string to use (Default: public)
|
||||
# community - Specify which 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,
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#
|
||||
# Installation notes:
|
||||
# Symlink this file to hadoop_hdfs_block or hadoop_hdfs_capacity to get block
|
||||
# or capacity informations about the DFS.
|
||||
# or capacity information about the DFS.
|
||||
#
|
||||
#
|
||||
# Needs following minimal configuration in plugin-conf.d/munin-node:
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
# user root
|
||||
#
|
||||
#
|
||||
# formely known as postfix_mail_stats by:
|
||||
# formerly known as postfix_mail_stats by:
|
||||
# Boudewijn Ector, for Boudewijn Ector IT.
|
||||
# Loosely based on http://munin.projects.linpro.no/attachment/wiki/PluginCat/postfix_messages_hourly.txt
|
||||
#
|
||||
|
|
|
@ -190,7 +190,7 @@ for name in ${names}; do
|
|||
[ -z "${iregex_header}" -a -z "${iregex_body}" ] && break
|
||||
if [ ${K} -eq 1 ]; then
|
||||
OIFS="${IFS}"
|
||||
# we skip carrige return characters from the end of header lines
|
||||
# we skip carriage return characters from the end of header lines
|
||||
IFS=$(echo -en "\r")
|
||||
inheader=0
|
||||
# The "read" command reads only lines terminated by a specific
|
||||
|
|
|
@ -51,7 +51,7 @@ pw = "yourpassword"
|
|||
exclude = ()
|
||||
|
||||
# Exclude these sources from calculation. This is useful to excluse special sources like
|
||||
# fallback sources which doesn't expose the same informations and then break this script
|
||||
# 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"]
|
||||
source_exclude = ("/fallback.mp3", "/fallback.ogg")
|
||||
|
|
|
@ -85,7 +85,7 @@ global_attr="
|
|||
graph_title ILIAS session and logins
|
||||
graph_category cms
|
||||
graph_args --lower-limit 0
|
||||
graph_vlabel occurences
|
||||
graph_vlabel occurrences
|
||||
graph_info Number of active ILIAS user sessions and logins
|
||||
"
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ my $grtitle = $ENV{graphtitle} || "Sun Java";
|
|||
# Title that appears on munin graph
|
||||
my $title = "$grtitle memory usage";
|
||||
# Extended information that appears below munin graph
|
||||
my $info = "Write som info about this graph...";
|
||||
my $info = "Write some info about this graph...";
|
||||
|
||||
sub analyze_record {
|
||||
# Match all interesting elements of a record and insert them
|
||||
|
|
|
@ -63,7 +63,7 @@ def detect_kvm():
|
|||
|
||||
def find_vm_names(pids):
|
||||
'''Find and clean vm names from pids
|
||||
@return a dictionnary of {pids : cleaned vm name}
|
||||
@return a dictionary of {pids : cleaned vm name}
|
||||
'''
|
||||
result = {}
|
||||
for pid in pids:
|
||||
|
@ -80,7 +80,7 @@ def list_pids():
|
|||
|
||||
def fetch(vms):
|
||||
''' Fetch values for a list of pids
|
||||
@param dictionnary {kvm_pid: cleaned vm name}
|
||||
@param dictionary {kvm_pid: cleaned vm name}
|
||||
'''
|
||||
for ( pid, name ) in vms.iteritems():
|
||||
( user, system ) = open("/proc/%s/stat" % pid, 'r').readline().split(' ')[13:15]
|
||||
|
|
|
@ -56,7 +56,7 @@ def clean_vm_name(vm_name):
|
|||
|
||||
def fetch(vms):
|
||||
''' Fetch values for a list of pids
|
||||
@param dictionnary {kvm_pid: cleaned vm name}
|
||||
@param dictionary {kvm_pid: cleaned vm name}
|
||||
'''
|
||||
res = {}
|
||||
for pid in vms:
|
||||
|
@ -80,7 +80,7 @@ def detect_kvm():
|
|||
|
||||
def find_vm_names(pids):
|
||||
'''Find and clean vm names from pids
|
||||
@return a dictionnary of {pids : cleaned vm name}
|
||||
@return a dictionary of {pids : cleaned vm name}
|
||||
'''
|
||||
result = {}
|
||||
for pid in pids:
|
||||
|
|
|
@ -53,7 +53,7 @@ def clean_vm_name(vm_name):
|
|||
|
||||
def fetch(vms):
|
||||
''' Fetch values for a list of pids
|
||||
@param dictionnary {kvm_pid: cleaned vm name}
|
||||
@param dictionary {kvm_pid: cleaned vm name}
|
||||
'''
|
||||
res = {}
|
||||
for pid in vms:
|
||||
|
@ -77,7 +77,7 @@ def detect_kvm():
|
|||
|
||||
def find_vm_names(pids):
|
||||
'''Find and clean vm names from pids
|
||||
@return a dictionnary of {pids : cleaned vm name}
|
||||
@return a dictionary of {pids : cleaned vm name}
|
||||
'''
|
||||
result = {}
|
||||
for pid in pids:
|
||||
|
|
|
@ -106,7 +106,7 @@ def clean_vm_name(vm_name):
|
|||
def fetch(vms):
|
||||
""" Fetch values for a list of pids
|
||||
|
||||
@param dictionnary {kvm_pid: cleaned vm name}
|
||||
@param dictionary {kvm_pid: cleaned vm name}
|
||||
"""
|
||||
for pid, vm_data in vms.items():
|
||||
vm_interface_names = get_vm_network_interface_names(pid)
|
||||
|
@ -149,7 +149,7 @@ def detect_kvm():
|
|||
def find_vm_names(pids):
|
||||
"""Find and clean vm names from pids
|
||||
|
||||
@return a dictionnary of {pids : cleaned vm name}
|
||||
@return a dictionary of {pids : cleaned vm name}
|
||||
"""
|
||||
result = {}
|
||||
for pid in pids:
|
||||
|
|
|
@ -729,7 +729,7 @@ sub init() {
|
|||
|
||||
print $device . "_errs.label " . $device . "\n";
|
||||
print $device . "_errs.type COUNTER\n";
|
||||
print $device . "_errs.info The number of errors by " . $hash{$vm}{'name'} . " on defice " . $device . "\n";
|
||||
print $device . "_errs.info The number of errors by " . $hash{$vm}{'name'} . " on device " . $device . "\n";
|
||||
print $device . "_errs.min 0\n";
|
||||
print $device . "_errs.draw LINE2\n";
|
||||
}
|
||||
|
@ -1217,7 +1217,7 @@ sub read_diskstats{
|
|||
$res{'major'} = $rdev >> 8;
|
||||
$res{'minor'} = $rdev & 0xff;
|
||||
|
||||
# If major numer is 253, then proceed as dm-device
|
||||
# If major number is 253, then proceed as dm-device
|
||||
if($res{'major'} == 253){
|
||||
|
||||
# check that the directory /sys/block/dm-$minor/ exists with a /slaves/ sub directory
|
||||
|
|
|
@ -24,7 +24,7 @@ Configuration parameters:
|
|||
Note: If HTTP authentication is required you should specify both username and password.
|
||||
|
||||
|
||||
=head1 INSTALLTION
|
||||
=head1 INSTALLATION
|
||||
|
||||
Copy file to directory /usr/share/munin/plugins/
|
||||
Because this plugin has "suggest" capability the last step is to run
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
|
||||
|
||||
# If run with the "autoconf"-parameter, give our opinion on whether we
|
||||
# should be run on this system or not. This is optinal, and only used by
|
||||
# should be run on this system or not. This is optional, and only used by
|
||||
# munin-config. In the case of this plugin, we should most probably
|
||||
# always be included.
|
||||
|
||||
|
@ -133,5 +133,5 @@ cut -f3 -d' ' < /proc/loadavg
|
|||
# Except for the Nagios-warnings (which most people don't have any need
|
||||
# for) and things used by installation scripts and munin-config (which
|
||||
# you don't need if you don't plan on submitting your plugin to the
|
||||
# pacakge), and the scaling (no milliload numbers) the two versions will
|
||||
# package), and the scaling (no milliload numbers) the two versions will
|
||||
# work identically.
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
#
|
||||
# to /etc/munin/plugin-conf.d/munin-node
|
||||
#
|
||||
# Magic markers (optinal - used by munin-config and some installation
|
||||
# Magic markers (optional - used by munin-config and some installation
|
||||
# scripts):
|
||||
#
|
||||
#%# family=manual
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
# Reads number of edits,views,articles,pages,users,admins and images from a Mediawiki
|
||||
# http://www.mediawiki.org/wiki/MediaWiki | http://munin.projects.linpro.no/wiki
|
||||
# by mutante of S23 | http://s23.org/wiki | greets to hundfred
|
||||
# 2007-02-12 | v0.1 first version, didnt really work yet
|
||||
# 2007-02-12 | v0.1 first version, didn't really work yet
|
||||
# 2007-02-16 | v0.2 introduced different retrieval methods, separate graphs for the different values that can be symlinked..
|
||||
|
||||
# What you need to config:
|
||||
|
@ -29,7 +29,7 @@
|
|||
|
||||
# require_once("/home/mutante/wiki_mysql_conf.php");
|
||||
|
||||
# I include the database settings from elsewhere, so i dont have to show the password in /usr/share/..
|
||||
# I include the database settings from elsewhere, so i don't have to show the password in /usr/share/..
|
||||
# I also set "[mediawiki] user mutante" in plugin-conf.d/ so that my user can read the config
|
||||
# alternatively set them in here like:
|
||||
|
||||
|
@ -41,7 +41,7 @@
|
|||
|
||||
## B - URL reading
|
||||
# These methods all retrieve the Special:Statistics?action=raw URL from Mediawiki via the webserver
|
||||
# This is the preferred method to get accurate stats currently, because Mediawiki doesnt use site_stats correctly atm
|
||||
# This is the preferred method to get accurate stats currently, because Mediawiki does not use site_stats correctly atm
|
||||
|
||||
# getmethod="curl"
|
||||
# uses curl via libcurl from PHP, should be fastest but you need the lib installed. if it works, use this.
|
||||
|
|
|
@ -133,7 +133,7 @@ my $leitime = $ENV{leitime} || -1;
|
|||
# This gives us the ability to specify which commands we want to display on the
|
||||
# command graph. Allowing finer control since some environments don't leverage
|
||||
# every command possible in memcached.
|
||||
# Options: get set delete incr decr cas touch flush
|
||||
# Options: get set delete incr decr case touch flush
|
||||
my $commands = $ENV{cmds} || "get set delete incr decr touch";
|
||||
|
||||
# This hash contains the information contained in two memcache commands
|
||||
|
@ -488,7 +488,7 @@ if (defined $ARGV[0] && $ARGV[0] eq 'autoconf') {
|
|||
which can be specified. Note we only specify the root graphs for the
|
||||
multigraphs, since the rest of the subgraphs will appear "behind" the
|
||||
root graphs. It also attempts to connect to the memcached service to
|
||||
verify it is infact running.
|
||||
verify it is in fact running.
|
||||
|
||||
=cut
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ There is no default configuration. This is an example:
|
|||
env.os freebsd
|
||||
env.names apache2 mysqld php-cgi
|
||||
|
||||
Set env.os to freebsd if you are running this script on a machine which doesnt have
|
||||
Set env.os to freebsd if you are running this script on a machine which does not have
|
||||
GNU sed installed (FreeBSD / OpenBSD / Solaris ...), else set it to linux.
|
||||
|
||||
The names are used to grep with directly, after cleaning. So, this plugin
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
=head1 NAME
|
||||
|
||||
minecraft-users-ram_ - monitor ressource usage of a local minecraft server
|
||||
minecraft-users-ram_ - monitor resource usage of a local minecraft server
|
||||
|
||||
=head1 APPLICABLE SYSTEMS
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
=head1 CONFIGURATION
|
||||
|
||||
munin-node.conf
|
||||
defauts for host is 127.0.0.1 and port 27017
|
||||
defaults for host is 127.0.0.1 and port 27017
|
||||
and will work without being defined :
|
||||
|
||||
[mongo_lag]
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
=head1 CONFIGURATION
|
||||
|
||||
munin-node.conf
|
||||
defauts for host is 127.0.0.1 and port 27017
|
||||
defaults for host is 127.0.0.1 and port 27017
|
||||
and will work without being defined :
|
||||
|
||||
[mongo_mem]
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
=head1 CONFIGURATION
|
||||
|
||||
munin-node.conf
|
||||
defauts for host is 127.0.0.1 and port 27017
|
||||
defaults for host is 127.0.0.1 and port 27017
|
||||
and will work without being defined :
|
||||
|
||||
[mongodb_ops]
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
=head1 CONFIGURATION
|
||||
|
||||
munin-node.conf
|
||||
defauts for host is 127.0.0.1 and port 27017
|
||||
defaults for host is 127.0.0.1 and port 27017
|
||||
and will work without being defined :
|
||||
|
||||
[mongodb_conn]
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
=head1 CONFIGURATION
|
||||
|
||||
munin-node.conf
|
||||
defauts for host is 127.0.0.1 and port 27017
|
||||
defaults for host is 127.0.0.1 and port 27017
|
||||
and will work without being defined :
|
||||
|
||||
[mongodb_docs]
|
||||
|
|
|
@ -15,14 +15,14 @@
|
|||
#env.process_1 httpd
|
||||
#---------------------------------------------------
|
||||
#
|
||||
#chcek two process
|
||||
#check two process
|
||||
#---------------------------------------------------
|
||||
#[healthcheck_process]
|
||||
#env.process_1 httpd
|
||||
#env.process_2 samba
|
||||
#---------------------------------------------------
|
||||
#
|
||||
#chcek three process
|
||||
#check three process
|
||||
#---------------------------------------------------
|
||||
#[healthcheck_process]
|
||||
#env.process_1 httpd
|
||||
|
|
|
@ -83,7 +83,7 @@ sub poll_variables {
|
|||
my $expression = shift;
|
||||
my $ret = 0;
|
||||
open(SERVICE, "$command |")
|
||||
or die("Coult not execute '$command': $!");
|
||||
or die("Could not execute '$command': $!");
|
||||
while (<SERVICE>) {
|
||||
my ($field, $value) = (m/(\w+).*?(\d+(?:\.\d+)?)/);
|
||||
next unless ($field);
|
||||
|
|
|
@ -59,7 +59,7 @@ if ($arg eq 'config') {
|
|||
|
||||
|
||||
open(SERVICE, "$COMMAND |")
|
||||
or die("Coult not execute '$COMMAND': $!");
|
||||
or die("Could not execute '$COMMAND': $!");
|
||||
|
||||
while (<SERVICE>) {
|
||||
my ($k, $v) = (m/(\w+).*?(\d+(?:\.\d+)?)/);
|
||||
|
|
|
@ -62,7 +62,7 @@ if ($arg eq 'config') {
|
|||
my ($free, $used) = (0,0);
|
||||
|
||||
open(SERVICE, "$COMMAND |")
|
||||
or die("Coult not execute '$COMMAND': $!");
|
||||
or die("Could not execute '$COMMAND': $!");
|
||||
|
||||
while (<SERVICE>) {
|
||||
my ($k, $v) = (m/(\w+).*?(\d+(?:\.\d+)?)/);
|
||||
|
@ -75,7 +75,7 @@ while (<SERVICE>) {
|
|||
close(SERVICE);
|
||||
|
||||
open(SERVICE, "$COMMANDSIZE |")
|
||||
or die("Coult not execute '$COMMANDSIZE': $!");
|
||||
or die("Could not execute '$COMMANDSIZE': $!");
|
||||
|
||||
while (<SERVICE>) {
|
||||
my ($k, $v) = (m/(\w+).*?(\d+(?:\.\d+)?)/);
|
||||
|
|
|
@ -72,7 +72,7 @@ my (@infos,$info,$i_data,$i_index);
|
|||
my $COMMAND = "$MYSQLADMIN $ENV{mysqlopts} $db -e 'show table status;' | grep 'Data'";
|
||||
|
||||
open(SERVICE, "$COMMAND |")
|
||||
or die("Coult not execute '$COMMAND': $!");
|
||||
or die("Could not execute '$COMMAND': $!");
|
||||
|
||||
while (<SERVICE>) {
|
||||
(@infos) = split;
|
||||
|
@ -95,7 +95,7 @@ foreach $info (@infos) {
|
|||
$COMMAND = "$MYSQLADMIN $ENV{mysqlopts} $db -e 'show table status;' | cut -f $i_data,$i_index | grep -v leng";
|
||||
|
||||
open(SERVICE, "$COMMAND |")
|
||||
or die("Coult not execute '$COMMAND': $!");
|
||||
or die("Could not execute '$COMMAND': $!");
|
||||
|
||||
while (<SERVICE>) {
|
||||
(m/(\d+).*?(\d+(?:\.\d+)?)/);
|
||||
|
|
|
@ -76,7 +76,7 @@ foreach my $db (getDBList()) {
|
|||
$COMMAND = "$MYSQLADMIN $ENV{mysqlopts} $db -e 'show table status;' | head -n 1";
|
||||
|
||||
open(SERVICE, "$COMMAND |")
|
||||
or die("Coult not execute '$COMMAND': $!");
|
||||
or die("Could not execute '$COMMAND': $!");
|
||||
|
||||
while (<SERVICE>) {
|
||||
(@infos) = split;
|
||||
|
@ -100,7 +100,7 @@ foreach my $db (getDBList()) {
|
|||
$COMMAND = "$MYSQLADMIN $ENV{mysqlopts} $db -e 'show table status;' | cut -f $i_data,$i_index | grep -v leng";
|
||||
|
||||
open(SERVICE, "$COMMAND |")
|
||||
or die("Coult not execute '$COMMAND': $!");
|
||||
or die("Could not execute '$COMMAND': $!");
|
||||
|
||||
while (<SERVICE>) {
|
||||
(m/(\d+).*?(\d+(?:\.\d+)?)/);
|
||||
|
|
|
@ -76,7 +76,7 @@ if (basename($0) !~ /^nagios_multi_/) {
|
|||
exit 1;
|
||||
}
|
||||
|
||||
# tell munin about our multigraph capabilties
|
||||
# tell munin about our multigraph capabilities
|
||||
need_multigraph();
|
||||
|
||||
# import binary information or use default setting
|
||||
|
|
|
@ -13,7 +13,7 @@ with SNMP agent daemon activated. See na_snmp(8) for details.
|
|||
|
||||
=head1 CONFIGURATION
|
||||
|
||||
Unfortunately, SNMPv3 is not fully supported on all NetApp equipments.
|
||||
Unfortunately, SNMPv3 is not fully supported on all NetApp equipment.
|
||||
For this reason, this plugin will use SNMPv2 by default, which is
|
||||
insecure because it doesn't encrypt the community string.
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ with SNMP agent daemon activated. See na_snmp(8) for details.
|
|||
|
||||
=head1 CONFIGURATION
|
||||
|
||||
Unfortunately, SNMPv3 is not fully supported on all NetApp equipments.
|
||||
Unfortunately, SNMPv3 is not fully supported on all NetApp equipment.
|
||||
For this reason, this plugin will use SNMPv2 by default, which is
|
||||
insecure because it doesn't encrypt the community string.
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ with SNMP agent daemon activated. See na_snmp(8) for details.
|
|||
|
||||
=head1 CONFIGURATION
|
||||
|
||||
Unfortunately, SNMPv3 is not fully supported on all NetApp equipments.
|
||||
Unfortunately, SNMPv3 is not fully supported on all NetApp equipment.
|
||||
For this reason, this plugin will use SNMPv2 by default, which is
|
||||
insecure because it doesn't encrypt the community string.
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ with SNMP agent daemon activated. See na_snmp(8) for details.
|
|||
|
||||
=head1 CONFIGURATION
|
||||
|
||||
Unfortunately, SNMPv3 is not fully supported on all NetApp equipments.
|
||||
Unfortunately, SNMPv3 is not fully supported on all NetApp equipment.
|
||||
For this reason, this plugin will use SNMPv2 by default, which is
|
||||
insecure because it doesn't encrypt the community string.
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ with SNMP agent daemon activated. See na_snmp(8) for details.
|
|||
|
||||
=head1 CONFIGURATION
|
||||
|
||||
Unfortunately, SNMPv3 is not fully supported on all NetApp equipments.
|
||||
Unfortunately, SNMPv3 is not fully supported on all NetApp equipment.
|
||||
For this reason, this plugin will use SNMPv2 by default, which is
|
||||
insecure because it doesn't encrypt the community string.
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ with SNMP agent daemon activated. See na_snmp(8) for details.
|
|||
|
||||
=head1 CONFIGURATION
|
||||
|
||||
Unfortunately, SNMPv3 is not fully supported on all NetApp equipments.
|
||||
Unfortunately, SNMPv3 is not fully supported on all NetApp equipment.
|
||||
For this reason, this plugin will use SNMPv2 by default, which is
|
||||
insecure because it doesn't encrypt the community string.
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ with SNMP agent daemon activated. See na_snmp(8) for details.
|
|||
|
||||
=head1 CONFIGURATION
|
||||
|
||||
Unfortunately, SNMPv3 is not fully supported on all NetApp equipments.
|
||||
Unfortunately, SNMPv3 is not fully supported on all NetApp equipment.
|
||||
For this reason, this plugin will use SNMPv2 by default, which is
|
||||
insecure because it doesn't encrypt the community string.
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ with SNMP agent daemon activated. See na_snmp(8) for details.
|
|||
|
||||
=head1 CONFIGURATION
|
||||
|
||||
Unfortunately, SNMPv3 is not fully supported on all NetApp equipments.
|
||||
Unfortunately, SNMPv3 is not fully supported on all NetApp equipment.
|
||||
For this reason, this plugin will use SNMPv2 by default, which is
|
||||
insecure because it doesn't encrypt the community string.
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ with SNMP agent daemon activated. See na_snmp(8) for details.
|
|||
|
||||
=head1 CONFIGURATION
|
||||
|
||||
Unfortunately, SNMPv3 is not fully supported on all NetApp equipments.
|
||||
Unfortunately, SNMPv3 is not fully supported on all NetApp equipment.
|
||||
For this reason, this plugin will use SNMPv2 by default, which is
|
||||
insecure because it doesn't encrypt the community string.
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ with SNMP agent daemon activated. See na_snmp(8) for details.
|
|||
|
||||
=head1 CONFIGURATION
|
||||
|
||||
Unfortunately, SNMPv3 is not fully supported on all NetApp equipments.
|
||||
Unfortunately, SNMPv3 is not fully supported on all NetApp equipment.
|
||||
For this reason, this plugin will use SNMPv2 by default, which is
|
||||
insecure because it doesn't encrypt the community string.
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ fi
|
|||
|
||||
|
||||
# Nur fuer Testzwecke kann das - For testing only you can
|
||||
# Zeitfenster vergroessert werden resize the reference periode
|
||||
# Zeitfenster vergroessert werden resize the reference period
|
||||
if [ "${1//[^[:digit:]]}" != "" ]; then
|
||||
factor=${1//[^[:digit:]]}
|
||||
else
|
||||
|
@ -60,7 +60,7 @@ fi
|
|||
# Zeitfenster in Sekunden - time slot in seconds
|
||||
let Timeslot=60*30*$factor
|
||||
|
||||
# Referenzzeitpunkt berechnen - calculate the reference periode
|
||||
# Referenzzeitpunkt berechnen - calculate the reference period
|
||||
let Ref_Timestamp=Timestamp-Timeslot
|
||||
|
||||
# Zeitstempel der letzten Aktualisierung - timestampe of the last update
|
||||
|
@ -75,7 +75,7 @@ fi
|
|||
echo "ip_change.value 0"
|
||||
fi
|
||||
|
||||
# Nur zum Testen - for testing ony
|
||||
# Nur zum Testen - for testing only
|
||||
if [ "$factor" -gt 1 ]; then
|
||||
echo "======================== Nur fuer Testzwecke ======================"
|
||||
echo "Timestamp :" $Timestamp $(date -d "1970-01-01 UTC + $Timestamp seconds")
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh -eu
|
||||
#
|
||||
# Plugin to monitor the number of hosts in /etc/hosts.deny
|
||||
# that are deined access to sshd
|
||||
# that are denied access to sshd
|
||||
#
|
||||
# Based on denyhosts plugin by tjansson (2009)
|
||||
#
|
||||
|
|
|
@ -26,7 +26,7 @@ Virtual interface names prefixes with '~'
|
|||
This plugin is configurable environment variables.
|
||||
env.exclude - Removing interfaces from graphs, default empty
|
||||
env.include - Includes interfaces into graphs, default empty
|
||||
env.if_max_bps - Maximum interface bps. Avialable suffixes: k, M, G, default empty
|
||||
env.if_max_bps - Maximum interface bps. Available suffixes: k, M, G, default empty
|
||||
env.protexct_peaks - Protect graph peaks, default 'no'
|
||||
env.min_packet_size - Minimal network packet size, default 20
|
||||
Example:
|
||||
|
@ -73,7 +73,7 @@ my $ifpath = '/sys/class/net';
|
|||
# ----------------------------------- global -----------------
|
||||
my $interfaces = {};
|
||||
|
||||
# ------------------------ avialable graphs -------------------------
|
||||
# ------------------------ available graphs -------------------------
|
||||
my $graphs =
|
||||
{
|
||||
'if_bit' =>
|
||||
|
@ -178,7 +178,7 @@ my $graphs =
|
|||
{
|
||||
'category' => 'network',
|
||||
'args' => '--base 1024',
|
||||
'title' => ':if: avgerage packet size',
|
||||
'title' => ':if: average packet size',
|
||||
'vlabel' => 'bytes',
|
||||
'info' => 'This graph shows average packet size of the :if:'
|
||||
},
|
||||
|
@ -187,7 +187,7 @@ my $graphs =
|
|||
}
|
||||
};
|
||||
|
||||
#-------------------------- avialable fields -------------------------
|
||||
#-------------------------- available fields -------------------------
|
||||
# info:
|
||||
# 'munin' => {} - just copy fields to munin config
|
||||
# 'source' => - field data source
|
||||
|
|
|
@ -23,7 +23,7 @@ int fail(char* msg) {
|
|||
}
|
||||
|
||||
/* Returns the ifname from a /proc/net/dev line
|
||||
* It will return an inside pointer to line, and modifiy the end with a \0
|
||||
* It will return an inside pointer to line, and modify the end with a \0
|
||||
*/
|
||||
char* get_ifname_from_procstatline(char* line) {
|
||||
char *ifname;
|
||||
|
|
|
@ -17,12 +17,12 @@ plugin configuration:
|
|||
# run plugin as root (required if you have VLAN sub-interfaces)
|
||||
user = root
|
||||
|
||||
# comma separated list of intreface patterns to exclude from monitoring
|
||||
# comma separated list of interface patterns to exclude from monitoring
|
||||
# default: lo
|
||||
# example:
|
||||
env.exclude = lo,vnet*
|
||||
|
||||
# comma separated list of intreface patterns to include in monitoring
|
||||
# comma separated list of interface patterns to include in monitoring
|
||||
# default: (empty)
|
||||
# example:
|
||||
env.include = br_*
|
||||
|
@ -43,7 +43,7 @@ Tested on: RHEL 6.x and clones (with Python 2.6)
|
|||
TODO:
|
||||
* implement 'data loaning' between graphs, removes duplicit measures
|
||||
* add support for bridging
|
||||
* configurable graph max based on intreface speed
|
||||
* configurable graph max based on interface speed
|
||||
|
||||
MUNIN MAGIC MARKER
|
||||
#%# family=manual
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
=head1 NAME
|
||||
|
||||
multibandwidth - Plugin to monitor the bandwidth between localhost and serveral hosts.
|
||||
multibandwidth - Plugin to monitor the bandwidth between localhost and several hosts.
|
||||
|
||||
=head1 APPLICABLE SYSTEMS
|
||||
|
||||
|
@ -82,7 +82,7 @@ case $1 in
|
|||
echo 'graph_args --base 1024 -l 0'
|
||||
echo 'graph_scale yes'
|
||||
echo 'graph_category network'
|
||||
echo 'graph_info This graph shows the bandwidth between localhost and serveral hosts'
|
||||
echo 'graph_info This graph shows the bandwidth between localhost and several hosts'
|
||||
for host in $hosts; do
|
||||
fieldname="host_$(clean_fieldname "$host")"
|
||||
echo "$fieldname.label $host"
|
||||
|
|
|
@ -48,7 +48,7 @@ function count_connected_users () {
|
|||
local afpd_bin_path=$1
|
||||
afpd_procs=$(ps anx --no-headers -o uid,command |grep -E "\w+\d+*\s${afpd_bin_path}" |wc -l)
|
||||
# one of those processes will be always from root user, so it's not being
|
||||
# used to externaly connect volumes, therefor being disconsider.
|
||||
# used to externally connect volumes, therefore being ignored.
|
||||
echo $(echo "${afpd_procs} - 1" |bc)
|
||||
}
|
||||
|
||||
|
@ -119,7 +119,7 @@ EOM
|
|||
#### Boilerplates ####################################################
|
||||
# Locating AFP related files:
|
||||
# * Binary: Using the first result of "which" command;
|
||||
# * Config: Using "afpd" with parameters to pring configuration file
|
||||
# * Config: Using "afpd" with parameters to print configuration file
|
||||
# location;
|
||||
#
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
=head1 APPLICABLE SYSTEMS
|
||||
|
||||
Linux or *nix system with a logging installtion of NSD v3 installed.
|
||||
Linux or *nix system with a logging installation of NSD v3 installed.
|
||||
(http://nlnetlabs.nl/projects/nsd/)
|
||||
|
||||
=head1 CONFIGURATION
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
# 2009.09.28 _KaszpiR_
|
||||
# - quick an ddirty update to support multiple interfaces, for example symlink vnstat_ to vnstat_eth0 and vnstat_eth1
|
||||
# rember to run before that vnstat -u -i eth0 and vnstat -u -i eth1 to build databases (read manual of vnstat)
|
||||
# remember to run before that vnstat -u -i eth0 and vnstat -u -i eth1 to build databases (read manual of vnstat)
|
||||
# other updates of this script maybe soon
|
||||
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
# Set categories on a bunch of plugins
|
||||
#
|
||||
# Revision 1.3 2004/05/15 21:33:29 jimmyo
|
||||
# "Upped" som plugins from contrib/manual to manual or auto.
|
||||
# "Upped" some plugins from contrib/manual to manual or auto.
|
||||
#
|
||||
# Revision 1.2 2004/05/06 21:55:18 jimmyo
|
||||
# Added patch to contrib-plugin linux/nfsd, to graph rpc count (Alexandre Dupouy).
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# Script for monitoring nginx Virtual host output traffic
|
||||
#
|
||||
# Requierements: logtail awk
|
||||
# Requirements: logtail awk
|
||||
# one unique access log file with $bytes_sent value for more accuracy
|
||||
# check http://wiki.nginx.org/NginxHttpLogModule
|
||||
#
|
||||
|
|
|
@ -87,7 +87,7 @@ stats_output = subprocess.check_output([cmd, '-c', 'iostats', '-c', 'sysstats'],
|
|||
universal_newlines=True).splitlines()
|
||||
|
||||
# Split the cmd output into key/value pairs
|
||||
# Lines that can't be splitted into 2 individual elements by delimiter ':' will be skipped
|
||||
# Lines that can't be split into 2 individual elements by delimiter ':' will be skipped
|
||||
for line in stats_output:
|
||||
if len(line.split(':')) == 2:
|
||||
stats[line.split(':')[0]] = int(line.split(':')[1])
|
||||
|
|
|
@ -45,7 +45,7 @@ of idle and iowait times:
|
|||
env.drawidle 1
|
||||
|
||||
For kernels which have other than 100 jiffies per second (sic) n.b. this is
|
||||
unlikely to be necessary - you may add the followin to the plugin-specific
|
||||
unlikely to be necessary - you may add the following to the plugin-specific
|
||||
configuration:
|
||||
|
||||
env.HZ 1000
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# Monitors memory usage in openVZ or Virtuozzo
|
||||
# based on http://www.huschi.net/archiv/speicher-anzeigen-mit-vzfree.html
|
||||
# based on http://www.huschi.net/archive/speicher-anzeigen-mit-vzfree.html
|
||||
# Author: Michael Richter, http://osor.de/
|
||||
# Cleaned up and translated to english by: Marian Sigler <m@qjym.de>, 2010-08-13
|
||||
#
|
||||
|
|
|
@ -100,7 +100,7 @@ $sth_curr->execute();
|
|||
my ($read_hitratio) = $sth_curr->fetchrow();
|
||||
print "read_hitratio.value $read_hitratio\n";
|
||||
|
||||
#libray hit ratio
|
||||
#library hit ratio
|
||||
$sql_curr = "select sum(lc.pins)/(sum(lc.pins)+sum(lc.reloads))*100 \
|
||||
from v\$librarycache lc";
|
||||
|
||||
|
|
|
@ -83,7 +83,7 @@
|
|||
example: env.exclude_module asmusage tablespace
|
||||
default: asmusage
|
||||
|
||||
Module name(s) to exclude seperated by white-space.
|
||||
Module name(s) to exclude separated by white-space.
|
||||
By default, asmusage module is excluded because another privilege
|
||||
is necessary to connect ASM instance.
|
||||
|
||||
|
@ -91,7 +91,7 @@
|
|||
example: env.include_module asmusage
|
||||
default: none
|
||||
|
||||
Module name(s) to include seperated by white-space.
|
||||
Module name(s) to include separated by white-space.
|
||||
If both include_module and exclude_module are set, exclude will be
|
||||
ignored.
|
||||
|
||||
|
@ -518,7 +518,7 @@ global_attrs[$key]="
|
|||
graph_category db
|
||||
graph_args --base 1000 --lower-limit 0 --rigid
|
||||
graph_vlabel microseconds
|
||||
graph_info Oracle Wait Events - It may look wierd that Y-axis indicates 'microseconds per second'. Although number of times of wait event looks easier to understand, in many cases the number of events does not matter, but wait time become more important to analyze bottle necks.
|
||||
graph_info Oracle Wait Events - It may look weird that Y-axis indicates 'microseconds per second'. Although number of times of wait event looks easier to understand, in many cases the number of events does not matter, but wait time become more important to analyze bottle necks.
|
||||
"
|
||||
data_attrs[$key]=""
|
||||
getfield_func[$key]=getfield_eventwait
|
||||
|
|
|
@ -13,7 +13,7 @@ class HookboxPlugin(MuninPlugin):
|
|||
title = 'hookbox'
|
||||
args = "--base 1000"
|
||||
vlabel = "Y"
|
||||
info = "Subscibed users"
|
||||
info = "Subscribed users"
|
||||
scale = False
|
||||
|
||||
def get_channels(self):
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
|
||||
# yyyy/mm/dd v author changelog:
|
||||
# 2008/01/15 v0.02 Lothar Schmidt added alternetive retrievers, stream name substitution
|
||||
# 2008/01/15 v0.02 Lothar Schmidt added alternative retrievers, stream name substitution
|
||||
# 2008/01/15 v0.01 Lothar Schmidt initial version, email: l.make.a.noise.here@scarydevilmonastery.net
|
||||
|
||||
|
||||
|
@ -87,7 +87,7 @@ graph_vlabel ${GRAPH}
|
|||
EOF
|
||||
for (( I=2 ; I<LASTSTREAM ; I+=3 )) ; do
|
||||
STREAM="${STREAMS[I]##*/}" # stream name
|
||||
STREAMNAME="${!STREAM:-$STREAM}" # substitute against our own desciption, if available
|
||||
STREAMNAME="${!STREAM:-$STREAM}" # substitute against our own description, if available
|
||||
cat << EOF
|
||||
${STREAM}.label $STREAMNAME
|
||||
${STREAM}.draw $STYLE
|
||||
|
|
|
@ -57,7 +57,7 @@ Version # $Rev: 7 $
|
|||
|
||||
The resetting is done only when the minute is 00 and the hour is 00
|
||||
if the script is running to late because of heavy load or when other
|
||||
plungins are running to long, the emptiness of the table is not guarantied
|
||||
plungins are running too long, the emptiness of the table is not guaranteed
|
||||
|
||||
This plugin is in heavy development
|
||||
expect all but functionality
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# OpenBSD's pf(4) monitoring for OpenBSD
|
||||
# 2007, Originally by Gergely Czuczy <phoemix@harmless.hu>
|
||||
# for FreeBSD systems. Ported and splitted by the
|
||||
# for FreeBSD systems. Ported and split by the
|
||||
# immerda admin team admin(at)immerda.ch
|
||||
# this version is adapted for openbsd and is only tested on
|
||||
# openbsd systems.
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# OpenBSD's pf(4) monitoring for OpenBSD
|
||||
# 2007, Originally by Gergely Czuczy <phoemix@harmless.hu>
|
||||
# for FreeBSD systems. Ported and splitted by the
|
||||
# for FreeBSD systems. Ported and split by the
|
||||
# immerda admin team admin(at)immerda.ch
|
||||
# this version is adapted for openbsd and is only tested on
|
||||
# openbsd systems.
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# OpenBSD's pf(4) monitoring for OpenBSD
|
||||
# 2007, Originally by Gergely Czuczy <phoemix@harmless.hu>
|
||||
# for FreeBSD systems. Ported and splitted by the
|
||||
# for FreeBSD systems. Ported and split by the
|
||||
# immerda admin team admin(at)immerda.ch
|
||||
# this version is adapted for openbsd and is only tested on
|
||||
# openbsd systems.
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# OpenBSD's pf(4) monitoring for OpenBSD
|
||||
# 2007, Originally by Gergely Czuczy <phoemix@harmless.hu>
|
||||
# for FreeBSD systems. Ported and splitted by the
|
||||
# for FreeBSD systems. Ported and split by the
|
||||
# immerda admin team admin(at)immerda.ch
|
||||
# this version is adapted for openbsd and is only tested on
|
||||
# openbsd systems.
|
||||
|
|
|
@ -28,13 +28,13 @@
|
|||
# foreach($keys as $key => $val) echo strtolower($key).".value ".$info[$key]."\n";
|
||||
# ?>
|
||||
#
|
||||
# - name that file eaccelerator_status.php, will be easier, file should be at least accesible from the address that runs this script (usually localhost)
|
||||
# you can make this file accessible globally, it just displays the memor usage by eaccelerator, thats all.
|
||||
# - name that file eaccelerator_status.php, will be easier, file should be at least accessible from the address that runs this script (usually localhost)
|
||||
# you can make this file accessible globally, it just displays the memory usage by eaccelerator, that's all.
|
||||
# usually you can put it to the /var/www/ (but it depends on the server configuration etc)
|
||||
# - check if you can see the output of the file, for example if you placed file in the DocumentRoot then it should be available from
|
||||
# http://localhost/eaccelerator_status.php
|
||||
# if you see the plain text with values then its working ok!
|
||||
# if you see the plain text and all values are zero then probalby eaccelerator is not enabled.
|
||||
# if you see the plain text and all values are zero then probably eaccelerator is not enabled.
|
||||
# - installed wget
|
||||
#
|
||||
#################################################################
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
# config (required)
|
||||
# autoconf (optional - used by munin-config)
|
||||
#
|
||||
# Magick markers (optional - used by munin-config and som installation
|
||||
# Magick markers (optional - used by munin-config and some installation
|
||||
# scripts):
|
||||
#%# family=manual
|
||||
#%# capabilities=autoconf
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# Min, Max and Avg are calculated on number of page, default 10. On high traffic site, increase this value and you get a better
|
||||
# stat, on low traffic site keep small value, it's must be avg number of page every 5 minutes.
|
||||
#
|
||||
# Require read permitions for $LOG
|
||||
# Require read permissions for $LOG
|
||||
# (set in /etc/munin/plugin-conf.d/munin-node on debian)
|
||||
# On busy servers you can change value type to COUNTER and set min to 0 to avoid minus peaks at logrotate
|
||||
#
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#%# family=auto snmpauto contrib
|
||||
#%# capabilities=snmpconf
|
||||
|
||||
E_OK="0" # everything went allright
|
||||
E_OK="0" # everything went alright
|
||||
E_UNKNOWN="1" # "catch all" for otherwise unhandled errors
|
||||
|
||||
E_ARG="81" # invalid argument
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue