Révision 2c912170
Fix some spelling mistakes
Thanks, codespell!
| plugins/backuppc/backuppc | ||
|---|---|---|
| 9 | 9 |
|
| 10 | 10 |
=head1 APPLICABLE SYSTEMS |
| 11 | 11 |
|
| 12 |
Hosts with a local backuppc respository.
|
|
| 12 |
Hosts with a local backuppc repository. |
|
| 13 | 13 |
|
| 14 | 14 |
|
| 15 | 15 |
=head1 CONFIGURATION |
| plugins/chrony/chrony_ | ||
|---|---|---|
| 64 | 64 |
#%# capabilities=autoconf suggest |
| 65 | 65 |
|
| 66 | 66 |
|
| 67 |
=head1 KNOWN ISSSUES
|
|
| 67 |
=head1 KNOWN ISSUES |
|
| 68 | 68 |
|
| 69 | 69 |
The plugin will only work with 'external' sources. It will not recognize the names of internal refclocks. |
| 70 | 70 |
|
| plugins/chrony/chrony_sourcestats | ||
|---|---|---|
| 35 | 35 |
|
| 36 | 36 |
By default the graphs are drawn using automatic scaling with these |
| 37 | 37 |
limits set the vertical scale of the graph will be bounded |
| 38 |
(rigidly). Note the vallues above are (reasonable) example vallues,
|
|
| 38 |
(rigidly). Note the values above are (reasonable) example values,
|
|
| 39 | 39 |
not the default. |
| 40 | 40 |
|
| 41 | 41 |
=head1 VERSION |
| ... | ... | |
| 56 | 56 |
#%# family=manual |
| 57 | 57 |
#%# capabilities=multigraph |
| 58 | 58 |
|
| 59 |
=head1 KNOWN ISSSUES
|
|
| 59 |
=head1 KNOWN ISSUES |
|
| 60 | 60 |
|
| 61 | 61 |
There may be some issues when IP addresses are used instead of |
| 62 | 62 |
hostnames in the timesources environment. Also, the names should match |
| plugins/cpu/multicpu | ||
|---|---|---|
| 13 | 13 |
0.1 initial release - Florian Fida |
| 14 | 14 |
*/ |
| 15 | 15 |
|
| 16 |
// make sure that paht to ps is valid for your system
|
|
| 16 |
// make sure that path to ps is valid for your system
|
|
| 17 | 17 |
$ps_cmd = '/bin/ps -eo "%C,%a"'; |
| 18 | 18 |
|
| 19 | 19 |
// list of processes to monitor, can also be set by env.ps_filter in munin config |
| plugins/disk/quota2percent_ | ||
|---|---|---|
| 76 | 76 |
|
| 77 | 77 |
V17.0124 |
| 78 | 78 |
|
| 79 |
not pubish, first version
|
|
| 79 |
not published, first version
|
|
| 80 | 80 |
|
| 81 | 81 |
=head1 AUTHOR |
| 82 | 82 |
|
| plugins/disk/smart-c/smart_.c | ||
|---|---|---|
| 17 | 17 |
static char getitem(char *input, unsigned char item, char *output) |
| 18 | 18 |
{
|
| 19 | 19 |
unsigned char i = 0; |
| 20 |
unsigned char seperators = 0;
|
|
| 20 |
unsigned char separators = 0;
|
|
| 21 | 21 |
char know_this_seperator = 0; |
| 22 | 22 |
unsigned char start = 0; |
| 23 | 23 |
unsigned char stop = 0; |
| ... | ... | |
| 28 | 28 |
} |
| 29 | 29 |
|
| 30 | 30 |
/* If we're requested to return the very first item... */ |
| 31 |
if (seperators == item) {
|
|
| 31 |
if (separators == item) {
|
|
| 32 | 32 |
start = i; |
| 33 | 33 |
} |
| 34 | 34 |
|
| 35 |
while (input[i] && seperators < item + 1) {
|
|
| 35 |
while (input[i] && separators < item + 1) {
|
|
| 36 | 36 |
if (input[i] == ' ') {
|
| 37 | 37 |
if (know_this_seperator == 0) {
|
| 38 | 38 |
know_this_seperator = 1; |
| 39 |
seperators++;
|
|
| 40 |
if (seperators == item + 1) {
|
|
| 39 |
separators++;
|
|
| 40 |
if (separators == item + 1) {
|
|
| 41 | 41 |
stop = i; |
| 42 | 42 |
break; |
| 43 | 43 |
} |
| 44 | 44 |
} |
| 45 | 45 |
} else if (know_this_seperator) {
|
| 46 | 46 |
know_this_seperator = 0; |
| 47 |
if (seperators == item) {
|
|
| 47 |
if (separators == item) {
|
|
| 48 | 48 |
start = i; |
| 49 | 49 |
} |
| 50 | 50 |
} else if (input[i] == '\n') {
|
| plugins/dspam/dspam_activity | ||
|---|---|---|
| 137 | 137 |
A) short="Blacklisted (RBL)" long="Message received and classified as spam because the sender ip is listed on the RBL" ;; |
| 138 | 138 |
M) short="Retrained as spam" long="Messages classified as innocent, but retrained by user as spam" ;; |
| 139 | 139 |
F) short="Retrained as innocent" long="Messages classified as spam, but retrained by the user as innocent" ;; |
| 140 |
N) short=Inoculation long="Messages trained as spam trough inoculation" ;; |
|
| 140 |
N) short=Inoculation long="Messages trained as spam through inoculation" ;;
|
|
| 141 | 141 |
C) short=Corpusfed long="Messages fed from a corpus" ;; |
| 142 | 142 |
esac |
| 143 | 143 |
|
| plugins/http/http_response | ||
|---|---|---|
| 125 | 125 |
echo 'multigraph http_response_code' |
| 126 | 126 |
echo 'graph_args --base 1000 -l 0 -u 511' |
| 127 | 127 |
echo 'graph_title HTTP Response Codes' |
| 128 |
echo 'graph_vlabel Repsonse Code'
|
|
| 128 |
echo 'graph_vlabel Response Code'
|
|
| 129 | 129 |
echo 'graph_category network' |
| 130 | 130 |
echo 'graph_info This graph shows HTTP response code statistics' |
| 131 | 131 |
echo 'graph_printf %3.0lf' |
| plugins/icecast/icecast_ | ||
|---|---|---|
| 50 | 50 |
#exclude = ("123.123.123.123",)
|
| 51 | 51 |
exclude = () |
| 52 | 52 |
|
| 53 |
# Exclude these sources from calculation. This is useful to excluse special sources like
|
|
| 53 |
# Exclude these sources from calculation. This is useful to exclude special sources like
|
|
| 54 | 54 |
# fallback sources which doesn't expose the same information and then break this script |
| 55 | 55 |
# Ever add fallback sources to this list |
| 56 | 56 |
#source_exclude = ["/fallback.mp3", "/fallback.ogg"] |
| plugins/luftdaten/feinstaubsensor | ||
|---|---|---|
| 202 | 202 |
|
| 203 | 203 |
|
| 204 | 204 |
def print_graph_section(graph_description, hosts, include_config, include_values): |
| 205 |
# retrieve the data and omit ony output, if the relevant key is missing
|
|
| 205 |
# retrieve the data and omit output only if the relevant key is missing
|
|
| 206 | 206 |
results = [] |
| 207 | 207 |
for host_info in hosts: |
| 208 | 208 |
data = get_sensor_data(host_info.host) |
| plugins/munin/healthcheck_log | ||
|---|---|---|
| 3 | 3 |
#healthcheck on munin |
| 4 | 4 |
#egrep system log and alert. |
| 5 | 5 |
# |
| 6 |
#programed by rti (hiroyuki fujie) super.rti@gmail.com @super_rti |
|
| 6 |
#programmed by rti (hiroyuki fujie) super.rti@gmail.com @super_rti
|
|
| 7 | 7 |
#LICENSE: NYSL (public domain) |
| 8 | 8 |
# |
| 9 | 9 |
# |
| plugins/munin/healthcheck_process | ||
|---|---|---|
| 3 | 3 |
#healthcheck on munin |
| 4 | 4 |
#check process and alert. |
| 5 | 5 |
# |
| 6 |
#programed by rti (hiroyuki fujie) super.rti@gmail.com @super_rti |
|
| 6 |
#programmed by rti (hiroyuki fujie) super.rti@gmail.com @super_rti
|
|
| 7 | 7 |
#LICENSE: NYSL (public domain) |
| 8 | 8 |
# |
| 9 | 9 |
#config file |
| plugins/munin/healthcheck_url | ||
|---|---|---|
| 5 | 5 |
#egrep contents string |
| 6 | 6 |
# ... and alert. |
| 7 | 7 |
# |
| 8 |
#programed by rti (hiroyuki fujie) super.rti@gmail.com @super_rti |
|
| 8 |
#programmed by rti (hiroyuki fujie) super.rti@gmail.com @super_rti
|
|
| 9 | 9 |
#LICENSE: NYSL (public domain) |
| 10 | 10 |
# |
| 11 | 11 |
#config file |
| plugins/network/ip_forward_ | ||
|---|---|---|
| 5 | 5 |
# |
| 6 | 6 |
# ln -s /usr/share/node/node/plugins-auto/if_forward_ /etc/munin/node.d/if_forward_eth0 |
| 7 | 7 |
# |
| 8 |
# ...will monitor forwarded traffic trough eth0. |
|
| 8 |
# ...will monitor forwarded traffic through eth0.
|
|
| 9 | 9 |
# |
| 10 | 10 |
# Additionally, you need these iptables rules as the first rules (they don't do anything, just make packet counts) |
| 11 | 11 |
# |
| plugins/network/linux_if/README.md | ||
|---|---|---|
| 5 | 5 |
|
| 6 | 6 |
Plugin will group all bonding slaves into one aggregated graph. It removes clutter |
| 7 | 7 |
of having many single-metric graphs for individual interfaces. You still can click |
| 8 |
trough to individual graphs. |
|
| 8 |
through to individual graphs.
|
|
| 9 | 9 |
|
| 10 | 10 |
In this example, `p1p1`, `p2p1` are physical interfaces of one bond0. Only p1p1 is active, |
| 11 | 11 |
as we are using Active-Backup bonding mode. `Total` (black) is the throughput of parent |
| plugins/php/eaccelerator | ||
|---|---|---|
| 119 | 119 |
|
| 120 | 120 |
|
| 121 | 121 |
################################################################# |
| 122 |
# run the sript |
|
| 122 |
# run the script
|
|
| 123 | 123 |
if [ -x $WGET ]; then |
| 124 | 124 |
# quiet output to stdout |
| 125 | 125 |
wget -q $WGET_FLAGS "$URL" -O - |
| plugins/php/php_apc_ | ||
|---|---|---|
| 118 | 118 |
fi |
| 119 | 119 |
|
| 120 | 120 |
################################################################# |
| 121 |
# run the sript |
|
| 121 |
# run the script
|
|
| 122 | 122 |
|
| 123 | 123 |
[ -x $WGET ] && $WGET -q $WGET_FLAGS "$URL?act=$act" -O - && exit 0 |
| 124 | 124 |
|
| plugins/postgresql/pgbouncer_ | ||
|---|---|---|
| 165 | 165 |
# connect to data |
| 166 | 166 |
my $dbh = DBI->connect("DBI:Pg:dbname=$db_name;host=$db_host;port=$db_port", $db_user, $db_pass)
|
| 167 | 167 |
or die ("Cannot connect to database");
|
| 168 |
# go trough each set and get the data |
|
| 168 |
# go through each set and get the data
|
|
| 169 | 169 |
foreach my $get ('pools', 'stats')
|
| 170 | 170 |
{
|
| 171 | 171 |
# prep and execute the show query |
| plugins/security/forefront_ | ||
|---|---|---|
| 32 | 32 |
# |
| 33 | 33 |
# Install guide: |
| 34 | 34 |
# This plugin relies on correct configured ODBC for the MOM database |
| 35 |
# Prerequisits: |
|
| 35 |
# Prerequisites:
|
|
| 36 | 36 |
# * Install and configure FreeTDS and DBD::Sybase (packages tdsodbc and libdbd-sybase-perl on Ubuntu) |
| 37 | 37 |
# - DBD::Sybase is preferred over ODBC because of strange TEXT field handling in DBD::ODBC |
| 38 | 38 |
# |
| ... | ... | |
| 214 | 214 |
chomp($field); |
| 215 | 215 |
print $field . ".label " . $profiles{$policy}{'name'} . "\n";
|
| 216 | 216 |
print $field . ".draw LINE2\n"; |
| 217 |
print $field . ".info Numer of computers having the " .$profiles{$policy}{'name'} . " profile.\n";
|
|
| 217 |
print $field . ".info Number of computers having the " .$profiles{$policy}{'name'} . " profile.\n";
|
|
| 218 | 218 |
if($profiles{$policy}{'old'}) {
|
| 219 | 219 |
print $field . "old.label " . $profiles{$policy}{'name'} . " (old)\n";
|
| 220 | 220 |
print $field . "old.draw LINE2\n"; |
| 221 |
print $field . "old.info Numer of computers having an old version of the " .$profiles{$policy}{'name'} . " profile.\n";
|
|
| 221 |
print $field . "old.info Number of computers having an old version of the " .$profiles{$policy}{'name'} . " profile.\n";
|
|
| 222 | 222 |
} |
| 223 | 223 |
} |
| 224 | 224 |
} |
| plugins/ssl/certbot_expiry | ||
|---|---|---|
| 164 | 164 |
|
| 165 | 165 |
if ( $cert_files{$cert_name}{"cert"} ne "" ) {
|
| 166 | 166 |
if ( ! -f -r $cert_files{$cert_name}{"cert"}) {
|
| 167 |
# warn, only on debuging, that a file couldn't be opened. sane defaults will show zero days remaining for this certificate |
|
| 167 |
# warn, only on debugging, that a file couldn't be opened. sane defaults will show zero days remaining for this certificate
|
|
| 168 | 168 |
if ( $DEBUG ) { print "# WARNING: {$cert_name} certificate not found or not readable" }
|
| 169 | 169 |
} else {
|
| 170 | 170 |
# use openssl for the info |
| plugins/tomcat/tomcat_access | ||
|---|---|---|
| 80 | 80 |
exit 0; |
| 81 | 81 |
} |
| 82 | 82 |
my $au = LWP::UserAgent->new(timeout => $TIMEOUT); |
| 83 |
my $repsonse = $au->request(HTTP::Request->new('GET',$url));
|
|
| 84 |
if($repsonse->is_success and $repsonse->content =~ /<status>.*<\/status>/im) {
|
|
| 83 |
my $response = $au->request(HTTP::Request->new('GET',$url));
|
|
| 84 |
if($response->is_success and $response->content =~ /<status>.*<\/status>/im) {
|
|
| 85 | 85 |
print "yes\n"; |
| 86 | 86 |
exit 0; |
| 87 | 87 |
} else {
|
| plugins/zope/README-zodb | ||
|---|---|---|
| 33 | 33 |
Restart your munin-node and the graphs should appear shortly. |
| 34 | 34 |
|
| 35 | 35 |
If you make any improvements (which should be easy), please update |
| 36 |
the munin exhange entry, or mail me at gaute(at)pht(dot)no |
|
| 36 |
the munin exchange entry, or mail me at gaute(at)pht(dot)no |
|
Formats disponibles : Unified diff