Révision 8589c6df
spelling fixes (2nd try)
| plugins/apache/apache_blackbox | ||
|---|---|---|
| 6 | 6 |
# http://www.ziritione.org |
| 7 | 7 |
# |
| 8 | 8 |
# Installing: configure apache blackbox and set the logfile to /var/log/blackbox.log |
| 9 |
# or change the BLACKBOXLOG setting bellow.
|
|
| 9 |
# or change the BLACKBOXLOG setting below. |
|
| 10 | 10 |
# |
| 11 | 11 |
# Dependencies: apache mod_logio, apache blackbox |
| 12 | 12 |
# http://www.devco.net/archives/2008/03/05/detailed_apache_stats.php |
| plugins/apache/apache_users | ||
|---|---|---|
| 45 | 45 |
# Analyse logfile |
| 46 | 46 |
while read REQUEST_ADDR REQUEST_USERNAME REQUEST_BYTES |
| 47 | 47 |
do |
| 48 |
# Name resolution for known adresses |
|
| 48 |
# Name resolution for known addresses
|
|
| 49 | 49 |
REQUEST_DOMAIN=$( awk '/^'"$REQUEST_ADDR"'/ { print $2 }' /etc/hosts )
|
| 50 | 50 |
REQUEST_ADDR=${REQUEST_DOMAIN:-$REQUEST_ADDR}
|
| 51 | 51 |
|
| plugins/apt/deb_packages/README.md | ||
|---|---|---|
| 22 | 22 |
|
| 23 | 23 |
This plugin has checked on Debian - Wheezy and squeeze. If you want to use it |
| 24 | 24 |
on older installations, tell me whether it works or which errors you had. It |
| 25 |
shoud run past python-apt 0.7 and python 2.5. |
|
| 25 |
should run past python-apt 0.7 and python 2.5.
|
|
| 26 | 26 |
|
| 27 | 27 |
check out this git repository from |
| 28 | 28 |
|
| plugins/apt/deb_packages/deb_packages.py | ||
|---|---|---|
| 24 | 24 |
TODO: shorten ext_info with getShortestConfigOfOptions |
| 25 | 25 |
TODO: check whether cachefile matches the config |
| 26 | 26 |
• i have no clever idea to do this without 100 lines of code |
| 27 |
BUG: If a package will be upgraded, and brings in new dependancies,
|
|
| 27 |
BUG: If a package will be upgraded, and brings in new dependencies,
|
|
| 28 | 28 |
these new deps will not be counted. WONTFIX |
| 29 | 29 |
""" |
| 30 | 30 |
import sys |
| ... | ... | |
| 257 | 257 |
'architecture' |
| 258 | 258 |
Architecture values are usually the same and can be ignored. |
| 259 | 259 |
|
| 260 |
tells you wich representation of a tree as line is shortest. |
|
| 260 |
tells you which representation of a tree as line is shortest.
|
|
| 261 | 261 |
Is needed to say which ext.info line would be the shortest |
| 262 | 262 |
to write the shortest readable output. |
| 263 | 263 |
""" |
| plugins/aris/aris_players | ||
|---|---|---|
| 37 | 37 |
exit; |
| 38 | 38 |
} |
| 39 | 39 |
|
| 40 |
$sqlLink = mysql_connect($aris_db_host,$aris_db_user,$aris_db_pass) or die('MySQL authenticaiton error');
|
|
| 40 |
$sqlLink = mysql_connect($aris_db_host,$aris_db_user,$aris_db_pass) or die('MySQL authentication error');
|
|
| 41 | 41 |
mysql_select_db($aris_db_name) or die('MySQL Wrong Scheme Error');
|
| 42 | 42 |
|
| 43 | 43 |
$query = 'SELECT COUNT(DISTINCT player_id) AS count FROM player_log WHERE timestamp BETWEEN DATE_SUB(NOW(), INTERVAL 5 MINUTE) AND NOW()'; |
| plugins/asterisk/asterisk_18_fax_spandsp/asterisk_fax_negotiations_failed | ||
|---|---|---|
| 124 | 124 |
$astman->disconnect; |
| 125 | 125 |
|
| 126 | 126 |
# Some idiot who wrote the SpanDSP code spelled "Negotiation" wrong. |
| 127 |
print "t38_failed.value $faxstats{'Spandsp T.38'}{'Negotation Failed'}\n";
|
|
| 128 |
print "g711_failed.value $faxstats{'Spandsp G.711'}{'Negotation Failed'}\n";
|
|
| 127 |
print "t38_failed.value $faxstats{'Spandsp T.38'}{'Negotiation Failed'}\n";
|
|
| 128 |
print "g711_failed.value $faxstats{'Spandsp G.711'}{'Negotiation Failed'}\n";
|
|
| 129 | 129 |
|
| 130 | 130 |
exit( 0 ); |
| 131 | 131 |
|
| plugins/ceph/ceph-osd-info | ||
|---|---|---|
| 60 | 60 |
|
| 61 | 61 |
import socket,os,json,sys,re,glob,itertools |
| 62 | 62 |
|
| 63 |
# this overides config values for specific graphs: |
|
| 63 |
# this overrides config values for specific graphs:
|
|
| 64 | 64 |
# "graphname.osd1":{"graph_title":"This is the graph for OSD 1!"}
|
| 65 | 65 |
# "graphname.osd*":{"graph_title":"This is one of the 'dig deeper' graphs!"}
|
| 66 | 66 |
# "graphname":{"graph_title":"This is my great graph!"}
|
| plugins/disk/dirsizes | ||
|---|---|---|
| 16 | 16 |
# env.watchdirs /var/www,/tmp |
| 17 | 17 |
# |
| 18 | 18 |
# Change the env.watchdirs-variable according to your wishes. |
| 19 |
# DONT FORGET TO RUN AS ROOT! |
|
| 19 |
# DON'T FORGET TO RUN AS ROOT!
|
|
| 20 | 20 |
# |
| 21 | 21 |
# You can test this plugin by calling it with params "test" and your watchdirs: |
| 22 | 22 |
# ./dirsizes test /dir1,/tmp/dir2 |
| plugins/disk/du | ||
|---|---|---|
| 35 | 35 |
# [du] |
| 36 | 36 |
# user root |
| 37 | 37 |
# |
| 38 |
# - by default the value is in MegaBytes, to change it you should edit below line in the script to something else, recognizeable by du (see man du)
|
|
| 38 |
# - by default the value is in MegaBytes, to change it you should edit below line in the script to something else, recognizable by du (see man du) |
|
| 39 | 39 |
# du -sm $DIR in MB |
| 40 | 40 |
# du -sk $DIR in KB |
| 41 | 41 |
# |
| plugins/dovecot/dovecot.rej | ||
|---|---|---|
| 1 |
diff a/plugins/dovecot/dovecot b/plugins/dovecot/dovecot (rejected hunks) |
|
| 2 |
@@ -23,7 +23,7 @@ $aborted = 0; |
|
| 3 |
|
|
| 4 |
$logfile = $ENV{'LOGFILE'} || '/var/log/mail.log';
|
|
| 5 |
|
|
| 6 |
-# Use an overridden $PATH for all external programs if needed |
|
| 7 |
+# Use an overrided $PATH for all external programs if needed |
|
| 8 |
$DOVEADM = "doveadm"; |
|
| 9 |
|
|
| 10 |
if ( $ARGV[0] and $ARGV[0] eq "autoconf" ) {
|
|
| plugins/dspam/dspam_ | ||
|---|---|---|
| 83 | 83 |
correctly classified messages (both ham and spam) in |
| 84 | 84 |
relation to the number of all processed messages. |
| 85 | 85 |
|
| 86 |
absprocessed - Shows the absolute numbers of mesages processed, |
|
| 86 |
absprocessed - Shows the absolute numbers of messages processed,
|
|
| 87 | 87 |
sorted by the classification that DSPAM uses. The |
| 88 | 88 |
numbers are stacked, making the height of the column |
| 89 | 89 |
display the increase of processed messages over time. |
| plugins/dvb/femon | ||
|---|---|---|
| 14 | 14 |
# |
| 15 | 15 |
# Parameters |
| 16 | 16 |
# femonpath - Specify path to femon program (Default: /usr/bin/femon) |
| 17 |
# graph_args - Specifiy graph args (Default: --lower-limit 0 --upper-limit 100 --rigid)
|
|
| 17 |
# graph_args - Specify graph args (Default: --lower-limit 0 --upper-limit 100 --rigid) |
|
| 18 | 18 |
# |
| 19 | 19 |
# Author: Nicolas Knotzer <nknotzer@gmail.com> |
| 20 | 20 |
# |
| plugins/healthcheck/healthcheck_log | ||
|---|---|---|
| 65 | 65 |
#user root #log file is read only root user. |
| 66 | 66 |
#env.log_1 /var/log/messages #target log filename |
| 67 | 67 |
#env.grep_1 critical|error #egrep string. |
| 68 |
#defualt by critical|error|warning|crash|fatal|kernel
|
|
| 68 |
#default by critical|error|warning|crash|fatal|kernel
|
|
| 69 | 69 |
#--------------------------------------------------- |
| 70 | 70 |
# |
| 71 | 71 |
|
| plugins/healthcheck/healthcheck_url | ||
|---|---|---|
| 17 | 17 |
#env.url_1 http://127.0.0.1/ |
| 18 | 18 |
#--------------------------------------------------- |
| 19 | 19 |
# |
| 20 |
#chcek two site
|
|
| 20 |
#check two site
|
|
| 21 | 21 |
#--------------------------------------------------- |
| 22 | 22 |
#[healthcheck_url] |
| 23 | 23 |
#env.url_1 http://127.0.0.1/ |
| 24 | 24 |
#env.url_2 http://www.google.com/ |
| 25 | 25 |
#--------------------------------------------------- |
| 26 | 26 |
# |
| 27 |
#chcek three site
|
|
| 27 |
#check three site
|
|
| 28 | 28 |
#--------------------------------------------------- |
| 29 | 29 |
#[healthcheck_url] |
| 30 | 30 |
#env.url_1 http://127.0.0.1/ |
| plugins/ipvs/ipvs_cps | ||
|---|---|---|
| 5 | 5 |
|
| 6 | 6 |
=head1 NAME |
| 7 | 7 |
|
| 8 |
ipvs_conn -Indicate the number of conections per second |
|
| 8 |
ipvs_conn -Indicate the number of connections per second
|
|
| 9 | 9 |
|
| 10 | 10 |
=head1 CONFIGURATION |
| 11 | 11 |
|
| plugins/mail/imap_bandwidth | ||
|---|---|---|
| 48 | 48 |
=head1 INTERPRETATION |
| 49 | 49 |
|
| 50 | 50 |
The plugin simply shows the average bandwidth during one IMAP upload and one |
| 51 |
IMAP download of a file containg random bytes. |
|
| 51 |
IMAP download of a file containing random bytes.
|
|
| 52 | 52 |
|
| 53 | 53 |
You need to be aware that this measurement obviously increases the load on |
| 54 | 54 |
your IMAP servers for the duration of the measurement. |
| plugins/memcached/memcached_servers_ | ||
|---|---|---|
| 72 | 72 |
} |
| 73 | 73 |
|
| 74 | 74 |
if ($#addresses != $#labels) {
|
| 75 |
print "Error: number of adresses and labels must be equal.\n"; |
|
| 75 |
print "Error: number of addresses and labels must be equal.\n";
|
|
| 76 | 76 |
exit 1; |
| 77 | 77 |
} |
| 78 | 78 |
|
| plugins/mythtv/mythtv_status_ | ||
|---|---|---|
| 61 | 61 |
# |
| 62 | 62 |
# Revision 1.4 2010/10/10 idobson |
| 63 | 63 |
# MythTV database information always loaded (used by autoconf,config and data dump for most options) |
| 64 |
# Active tuner now split up by video source, hung encoders are listed separatly |
|
| 64 |
# Active tuner now split up by video source, hung encoders are listed separately
|
|
| 65 | 65 |
# Schedule now uses myth module/QUERY_GETALLPENDING to get Scheduled Recordings/Repeats/Conflicts |
| 66 | 66 |
# Recorded now splits recorded into groups (Expireable, Delete pending, Save) |
| 67 | 67 |
# Code now strict safe |
| plugins/nagios/nagios_multi_ | ||
|---|---|---|
| 27 | 27 |
svcchkdetail => This graph shows current services warning,critical,unknown,checked,scheduled,flapping,down |
| 28 | 28 |
svcchkext => This graph shows the service check execution times |
| 29 | 29 |
svcchklat => This graph shows the service check latency times |
| 30 |
svcchksc => This graph shows the serivce check state change %
|
|
| 30 |
svcchksc => This graph shows the service check state change %
|
|
| 31 | 31 |
|
| 32 | 32 |
hosts => I<MULTIGRAPH> This graphs the current host problems. |
| 33 | 33 |
hostchkdetail => This graph shows current hosts down,unreachable,checked,scheduled,flapping,down |
| plugins/network/fwbuilder_ | ||
|---|---|---|
| 7 | 7 |
# |
| 8 | 8 |
# ...will monitor the IP 192.168.0.1. |
| 9 | 9 |
# |
| 10 |
# Aditionally, you need Accountingrules in fwbuilder |
|
| 10 |
# Additionally, you need Accountingrules in fwbuilder
|
|
| 11 | 11 |
# fwbuilder creates Chains in INPUT-, OUTPUT- and FORWARD-Chain |
| 12 | 12 |
# with Rules that "RETURN" |
| 13 | 13 |
# You will have to specify rule options with name "ACCOUNTING" for the |
| plugins/network/ip_forward_ | ||
|---|---|---|
| 7 | 7 |
# |
| 8 | 8 |
# ...will monitor forwarded traffic trough eth0. |
| 9 | 9 |
# |
| 10 |
# Aditionally, you need these iptables rules as the first rules (they don't do anything, just make packet counts) |
|
| 10 |
# Additionally, you need these iptables rules as the first rules (they don't do anything, just make packet counts)
|
|
| 11 | 11 |
# |
| 12 | 12 |
# iptables -A FORWARD -i eth0 |
| 13 | 13 |
# iptables -A FORWARD -o eth0 |
| plugins/network/linux_if/linux_if | ||
|---|---|---|
| 27 | 27 |
# example: |
| 28 | 28 |
env.include = br_* |
| 29 | 29 |
|
| 30 |
# should staticly configured interfaces be included (they have ifcfg-* file) |
|
| 30 |
# should statically configured interfaces be included (they have ifcfg-* file)
|
|
| 31 | 31 |
# default: true |
| 32 | 32 |
env.include_configured_if = true |
| 33 | 33 |
|
| ... | ... | |
| 41 | 41 |
Tested on: RHEL 6.x and clones (with Python 2.6) |
| 42 | 42 |
|
| 43 | 43 |
TODO: |
| 44 |
* implment 'data loaning' between graphs, removes duplicit measures |
|
| 44 |
* implement 'data loaning' between graphs, removes duplicit measures
|
|
| 45 | 45 |
* add support for bridging |
| 46 | 46 |
* configurable graph max based on intreface speed |
| 47 | 47 |
|
| plugins/network/netatalk3 | ||
|---|---|---|
| 47 | 47 |
function count_connected_users () {
|
| 48 | 48 |
local afpd_bin_path=$1 |
| 49 | 49 |
afpd_procs=$(ps anx --no-headers -o uid,command |grep -E "\w+\d+*\s${afpd_bin_path}" |wc -l)
|
| 50 |
# one of those processess will be always from root user, so it's not being
|
|
| 50 |
# one of those processes will be always from root user, so it's not being |
|
| 51 | 51 |
# used to externaly connect volumes, therefor being disconsider. |
| 52 | 52 |
echo $(echo "${afpd_procs} - 1" |bc)
|
| 53 | 53 |
} |
| ... | ... | |
| 119 | 119 |
#### Boilerplates #################################################### |
| 120 | 120 |
# Locating AFP related files: |
| 121 | 121 |
# * Binary: Using the first result of "which" command; |
| 122 |
# * Config: Using "afpd" with paremeters to pring configuration file
|
|
| 122 |
# * Config: Using "afpd" with parameters to pring configuration file
|
|
| 123 | 123 |
# location; |
| 124 | 124 |
# |
| 125 | 125 |
|
| plugins/openvz/openvzcpu | ||
|---|---|---|
| 3 | 3 |
# vim: sts=8 sw=8 ts=8 |
| 4 | 4 |
|
| 5 | 5 |
# |
| 6 |
# Run "perldoc thisfilename" to get a well-formated set of documentation |
|
| 6 |
# Run "perldoc thisfilename" to get a well-formatted set of documentation
|
|
| 7 | 7 |
# for this munin plugin. |
| 8 | 8 |
# |
| 9 | 9 |
=head1 NAME |
| plugins/power5/consumed_cpu_cycles | ||
|---|---|---|
| 79 | 79 |
OLDPURR=$ACTUALPURR; |
| 80 | 80 |
fi |
| 81 | 81 |
|
| 82 |
# calcualte CPU cycles
|
|
| 82 |
# calculate CPU cycles
|
|
| 83 | 83 |
CPUCYCLES=$(echo $OLDPURR $ACTUALPURR $TIMEBASE $OLDTIME $ACTUALTIME | awk '{printf ("%.1f", (($1-$2)/$3)/($4-$5));}');
|
| 84 | 84 |
|
| 85 | 85 |
# write data to state file |
| plugins/rabbitmq/rabbitmq_consumers | ||
|---|---|---|
| 16 | 16 |
#%# capabilities=autoconf |
| 17 | 17 |
|
| 18 | 18 |
# If run with the "autoconf"-parameter, give our opinion on whether we |
| 19 |
# should be run on this system or not. This is optinal, and only used by |
|
| 19 |
# should be run on this system or not. This is optional, and only used by
|
|
| 20 | 20 |
# munin-config. In the case of this plugin, we should most probably |
| 21 | 21 |
# always be included. |
| 22 | 22 |
|
| plugins/rabbitmq/rabbitmq_messages | ||
|---|---|---|
| 16 | 16 |
#%# capabilities=autoconf |
| 17 | 17 |
|
| 18 | 18 |
# If run with the "autoconf"-parameter, give our opinion on whether we |
| 19 |
# should be run on this system or not. This is optinal, and only used by |
|
| 19 |
# should be run on this system or not. This is optional, and only used by
|
|
| 20 | 20 |
# munin-config. In the case of this plugin, we should most probably |
| 21 | 21 |
# always be included. |
| 22 | 22 |
|
| plugins/rabbitmq/rabbitmq_messages_unacknowledged | ||
|---|---|---|
| 16 | 16 |
#%# capabilities=autoconf |
| 17 | 17 |
|
| 18 | 18 |
# If run with the "autoconf"-parameter, give our opinion on whether we |
| 19 |
# should be run on this system or not. This is optinal, and only used by |
|
| 19 |
# should be run on this system or not. This is optional, and only used by
|
|
| 20 | 20 |
# munin-config. In the case of this plugin, we should most probably |
| 21 | 21 |
# always be included. |
| 22 | 22 |
|
| plugins/rabbitmq/rabbitmq_messages_uncommitted | ||
|---|---|---|
| 16 | 16 |
#%# capabilities=autoconf |
| 17 | 17 |
|
| 18 | 18 |
# If run with the "autoconf"-parameter, give our opinion on whether we |
| 19 |
# should be run on this system or not. This is optinal, and only used by |
|
| 19 |
# should be run on this system or not. This is optional, and only used by
|
|
| 20 | 20 |
# munin-config. In the case of this plugin, we should most probably |
| 21 | 21 |
# always be included. |
| 22 | 22 |
|
| plugins/rabbitmq/rabbitmq_queue_memory | ||
|---|---|---|
| 16 | 16 |
#%# capabilities=autoconf |
| 17 | 17 |
|
| 18 | 18 |
# If run with the "autoconf"-parameter, give our opinion on whether we |
| 19 |
# should be run on this system or not. This is optinal, and only used by |
|
| 19 |
# should be run on this system or not. This is optional, and only used by
|
|
| 20 | 20 |
# munin-config. In the case of this plugin, we should most probably |
| 21 | 21 |
# always be included. |
| 22 | 22 |
|
| plugins/rtorrent/rtom_allsessions_mem | ||
|---|---|---|
| 3 | 3 |
# xmlrpc based munin plugin for monitoring rtorrent's memory usage |
| 4 | 4 |
# prerequisites: |
| 5 | 5 |
# - rtorrent 0.7.5 or newer compiled with --with-xmlrpc-c |
| 6 |
# check http://libtorrent.rakshasa.no/wiki/RTorrentXMLRPCGuide for further informations
|
|
| 6 |
# check http://libtorrent.rakshasa.no/wiki/RTorrentXMLRPCGuide for further information |
|
| 7 | 7 |
# |
| 8 | 8 |
# written by Gabor Hudiczius |
| 9 | 9 |
# web: http://projects.cyla.homeip.net/rtwi/wiki/rTorrentOMeter |
| plugins/rtorrent/rtom_allsessions_peers | ||
|---|---|---|
| 3 | 3 |
# xmlrpc based munin plugin for monitoring rtorrent's peer count |
| 4 | 4 |
# prerequisites: |
| 5 | 5 |
# - rtorrent 0.7.5 or newer compiled with --with-xmlrpc-c |
| 6 |
# check http://libtorrent.rakshasa.no/wiki/RTorrentXMLRPCGuide for further informations
|
|
| 6 |
# check http://libtorrent.rakshasa.no/wiki/RTorrentXMLRPCGuide for further information |
|
| 7 | 7 |
# |
| 8 | 8 |
# written by Gabor Hudiczius |
| 9 | 9 |
# web: http://projects.cyla.homeip.net/rtwi/wiki/rTorrentOMeter |
| plugins/rtorrent/rtom_allsessions_spdd | ||
|---|---|---|
| 3 | 3 |
# xmlrpc based munin plugin for monitoring rtorrent's upload/download speed |
| 4 | 4 |
# prerequisites: |
| 5 | 5 |
# - rtorrent 0.7.5 or newer compiled with --with-xmlrpc-c |
| 6 |
# check http://libtorrent.rakshasa.no/wiki/RTorrentXMLRPCGuide for further informations
|
|
| 6 |
# check http://libtorrent.rakshasa.no/wiki/RTorrentXMLRPCGuide for further information |
|
| 7 | 7 |
# |
| 8 | 8 |
# written by Gabor Hudiczius |
| 9 | 9 |
# web: http://projects.cyla.homeip.net/rtwi/wiki/rTorrentOMeter |
| plugins/rtorrent/rtom_allsessions_vol | ||
|---|---|---|
| 3 | 3 |
# xmlrpc based munin plugin for monitoring rtorrent's torrent count |
| 4 | 4 |
# prerequisites: |
| 5 | 5 |
# - rtorrent 0.7.5 or newer compiled with --with-xmlrpc-c |
| 6 |
# check http://libtorrent.rakshasa.no/wiki/RTorrentXMLRPCGuide for further informations
|
|
| 6 |
# check http://libtorrent.rakshasa.no/wiki/RTorrentXMLRPCGuide for further information |
|
| 7 | 7 |
# |
| 8 | 8 |
# written by Gabor Hudiczius |
| 9 | 9 |
# web: http://projects.cyla.homeip.net/rtwi/wiki/rTorrentOMeter |
| plugins/rtorrent/rtom_mem | ||
|---|---|---|
| 3 | 3 |
# xmlrpc based munin plugin for monitoring rtorrent's memory usage |
| 4 | 4 |
# prerequisites: |
| 5 | 5 |
# - rtorrent 0.7.5 or newer compiled with --with-xmlrpc-c |
| 6 |
# check http://libtorrent.rakshasa.no/wiki/RTorrentXMLRPCGuide for further informations
|
|
| 6 |
# check http://libtorrent.rakshasa.no/wiki/RTorrentXMLRPCGuide for further information |
|
| 7 | 7 |
# |
| 8 | 8 |
# written by Gabor Hudiczius |
| 9 | 9 |
# web: http://projects.cyla.homeip.net/rtwi/wiki/rTorrentOMeter |
| plugins/rtorrent/rtom_peers | ||
|---|---|---|
| 3 | 3 |
# xmlrpc based munin plugin for monitoring rtorrent's peer count |
| 4 | 4 |
# prerequisites: |
| 5 | 5 |
# - rtorrent 0.7.5 or newer compiled with --with-xmlrpc-c |
| 6 |
# check http://libtorrent.rakshasa.no/wiki/RTorrentXMLRPCGuide for further informations
|
|
| 6 |
# check http://libtorrent.rakshasa.no/wiki/RTorrentXMLRPCGuide for further information |
|
| 7 | 7 |
# |
| 8 | 8 |
# written by Gabor Hudiczius |
| 9 | 9 |
# web: http://projects.cyla.homeip.net/rtwi/wiki/rTorrentOMeter |
| plugins/rtorrent/rtom_spdd | ||
|---|---|---|
| 3 | 3 |
# xmlrpc based munin plugin for monitoring rtorrent's upload/download speed |
| 4 | 4 |
# prerequisites: |
| 5 | 5 |
# - rtorrent 0.7.5 or newer compiled with --with-xmlrpc-c |
| 6 |
# check http://libtorrent.rakshasa.no/wiki/RTorrentXMLRPCGuide for further informations
|
|
| 6 |
# check http://libtorrent.rakshasa.no/wiki/RTorrentXMLRPCGuide for further information |
|
| 7 | 7 |
# |
| 8 | 8 |
# written by Gabor Hudiczius |
| 9 | 9 |
# web: http://projects.cyla.homeip.net/rtwi/wiki/rTorrentOMeter |
| plugins/rtorrent/rtom_vol | ||
|---|---|---|
| 3 | 3 |
# xmlrpc based munin plugin for monitoring rtorrent's torrent count |
| 4 | 4 |
# prerequisites: |
| 5 | 5 |
# - rtorrent 0.7.5 or newer compiled with --with-xmlrpc-c |
| 6 |
# check http://libtorrent.rakshasa.no/wiki/RTorrentXMLRPCGuide for further informations
|
|
| 6 |
# check http://libtorrent.rakshasa.no/wiki/RTorrentXMLRPCGuide for further information |
|
| 7 | 7 |
# |
| 8 | 8 |
# written by Gabor Hudiczius |
| 9 | 9 |
# web: http://projects.cyla.homeip.net/rtwi/wiki/rTorrentOMeter |
| plugins/samba/samba_locked | ||
|---|---|---|
| 9 | 9 |
# |
| 10 | 10 |
# $Log$ |
| 11 | 11 |
# Revision 1.0 2007/04/16 Jon Higgs |
| 12 |
# Initial Release - Adapated from jimmyo's processses plugin.
|
|
| 12 |
# Initial Release - Adapted from jimmyo's processses plugin. |
|
| 13 | 13 |
# |
| 14 | 14 |
# Magick markers (optional - used by munin-config and som installation |
| 15 | 15 |
# scripts): |
| plugins/samba/samba_users | ||
|---|---|---|
| 9 | 9 |
# |
| 10 | 10 |
# $Log$ |
| 11 | 11 |
# Revision 1.0 2007/04/16 Jon Higgs |
| 12 |
# Initial Release - Adapated from jimmyo's processses plugin.
|
|
| 12 |
# Initial Release - Adapted from jimmyo's processses plugin. |
|
| 13 | 13 |
# |
| 14 | 14 |
# Revision 1.1 2014/07/24 MangaII |
| 15 | 15 |
# Add exit 0 |
| plugins/security/forefront_ | ||
|---|---|---|
| 27 | 27 |
# Config variables |
| 28 | 28 |
# |
| 29 | 29 |
# dsn - If DSN name differs from hostname |
| 30 |
# dbuser - Valid MS SQL user (Windows authentication is posible using "DOMAIN\user") |
|
| 30 |
# dbuser - Valid MS SQL user (Windows authentication is possible using "DOMAIN\user")
|
|
| 31 | 31 |
# dbpass - Password |
| 32 | 32 |
# |
| 33 | 33 |
# Install guide: |
| plugins/sensors/allnet__ | ||
|---|---|---|
| 61 | 61 |
|
| 62 | 62 |
# ----------------------------------------------------------------------------- |
| 63 | 63 |
|
| 64 |
# No need to change those, can be overriden from commandline. |
|
| 64 |
# No need to change those, can be overridden from commandline.
|
|
| 65 | 65 |
my $hostname = 'localhost'; |
| 66 | 66 |
my $valtype = 'temp'; # or humidity or amps |
| 67 | 67 |
# These are tried one after another. |
| plugins/snmp/snmp__if_combined | ||
|---|---|---|
| 47 | 47 |
IF-MIB::ifType.123 = INTEGER: l2vlan(135) |
| 48 | 48 |
|
| 49 | 49 |
propVirtual or l2vlan is usually used for VLAN interfaces. Tunnel |
| 50 |
would normaly be for VPNs. A minor horde of different interface types |
|
| 50 |
would normally be for VPNs. A minor horde of different interface types
|
|
| 51 | 51 |
are supposted, please see IANAifType-MIB (on your system or find with |
| 52 | 52 |
Google) for a full list. |
| 53 | 53 |
|
| plugins/solr/solrmulticore | ||
|---|---|---|
| 17 | 17 |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 18 | 18 |
# |
| 19 | 19 |
# |
| 20 |
# This plugin monitors a SOLR server configured for multicore by automaticaly |
|
| 20 |
# This plugin monitors a SOLR server configured for multicore by automatically
|
|
| 21 | 21 |
# getting core names from SOLR default page. |
| 22 | 22 |
# |
| 23 | 23 |
# Tested on SOLR 1.4.0 |
| plugins/sourceds/srcds_cpu | ||
|---|---|---|
| 29 | 29 |
} |
| 30 | 30 |
push(@INC, dirname($0)); |
| 31 | 31 |
|
| 32 |
# Load Rcon module or exit with failuer message
|
|
| 32 |
# Load Rcon module or exit with failure message
|
|
| 33 | 33 |
if (!eval "require Rcon") {
|
| 34 | 34 |
print "Failed to load Rcon module. "; |
| 35 | 35 |
print "Make sure Rcon.pm is copied to Munin plugins directory.\n"; |
| plugins/sourceds/srcds_fps | ||
|---|---|---|
| 30 | 30 |
} |
| 31 | 31 |
push(@INC, dirname($0)); |
| 32 | 32 |
|
| 33 |
# Load Rcon module or exit with failuer message
|
|
| 33 |
# Load Rcon module or exit with failure message
|
|
| 34 | 34 |
if (!eval "require Rcon") {
|
| 35 | 35 |
print "Failed to load Rcon module. "; |
| 36 | 36 |
print "Make sure Rcon.pm is copied to Munin plugins directory.\n"; |
| plugins/sourceds/srcds_inout | ||
|---|---|---|
| 29 | 29 |
} |
| 30 | 30 |
push(@INC, dirname($0)); |
| 31 | 31 |
|
| 32 |
# Load Rcon module or exit with failuer message
|
|
| 32 |
# Load Rcon module or exit with failure message
|
|
| 33 | 33 |
if (!eval "require Rcon") {
|
| 34 | 34 |
print "Failed to load Rcon module. "; |
| 35 | 35 |
print "Make sure Rcon.pm is copied to Munin plugins directory.\n"; |
| plugins/sourceds/srcds_players | ||
|---|---|---|
| 30 | 30 |
} |
| 31 | 31 |
push(@INC, dirname($0)); |
| 32 | 32 |
|
| 33 |
# Load Rcon module or exit with failuer message
|
|
| 33 |
# Load Rcon module or exit with failure message
|
|
| 34 | 34 |
if (!eval "require Rcon") {
|
| 35 | 35 |
print "Failed to load Rcon module. "; |
| 36 | 36 |
print "Make sure Rcon.pm is copied to Munin plugins directory.\n"; |
| plugins/sourceds/srcds_uptime | ||
|---|---|---|
| 28 | 28 |
} |
| 29 | 29 |
push(@INC, dirname($0)); |
| 30 | 30 |
|
| 31 |
# Load Rcon module or exit with failuer message
|
|
| 31 |
# Load Rcon module or exit with failure message
|
|
| 32 | 32 |
if (!eval "require Rcon") {
|
| 33 | 33 |
print "Failed to load Rcon module. "; |
| 34 | 34 |
print "Make sure Rcon.pm is copied to Munin plugins directory.\n"; |
| plugins/spotweb/spotweb_average | ||
|---|---|---|
| 30 | 30 |
# env.database spotweb # Spotweb database (optional) |
| 31 | 31 |
# |
| 32 | 32 |
# [spotweb_average] |
| 33 |
# env.period 1800 # The period over wich to check in seconds, default to 30 minutes (1800 seconds) |
|
| 33 |
# env.period 1800 # The period over which to check in seconds, default to 30 minutes (1800 seconds)
|
|
| 34 | 34 |
# env.watchlist yes # Show items in the watchlist (period independent) |
| 35 | 35 |
# |
| 36 | 36 |
# |
| plugins/spotweb/spotweb_cat_average | ||
|---|---|---|
| 28 | 28 |
# env.database spotweb # Spotweb database (optional) |
| 29 | 29 |
# |
| 30 | 30 |
# [spotweb_cat_average] |
| 31 |
# env.period 1800 # The period over wich to check in seconds, default to 30 minutes (1800 seconds) |
|
| 31 |
# env.period 1800 # The period over which to check in seconds, default to 30 minutes (1800 seconds)
|
|
| 32 | 32 |
# env.countporn 'no' # Also count porn? Default is 'yes' |
| 33 | 33 |
# |
| 34 | 34 |
|
| plugins/spotweb/spotweb_catsize_average | ||
|---|---|---|
| 28 | 28 |
# env.database spotweb # Spotweb database (optional) |
| 29 | 29 |
# |
| 30 | 30 |
# [spotweb_catsize_average] |
| 31 |
# env.period 1800 # The period over wich to check in seconds, default to 30 minutes (1800 seconds) |
|
| 31 |
# env.period 1800 # The period over which to check in seconds, default to 30 minutes (1800 seconds)
|
|
| 32 | 32 |
# env.countporn 'no' # Also count porn? Default is 'yes' |
| 33 | 33 |
# |
| 34 | 34 |
|
| plugins/system/cpu_linux_multi | ||
|---|---|---|
| 34 | 34 |
# # |
| 35 | 35 |
######################################################################## |
| 36 | 36 |
# |
| 37 |
# multigraph, supersampling, extended cpu informations
|
|
| 37 |
# multigraph, supersampling, extended cpu information |
|
| 38 | 38 |
# |
| 39 | 39 |
# require: mpstat (to actually collect the data) |
| 40 | 40 |
# |
| plugins/system/irq | ||
|---|---|---|
| 76 | 76 |
{
|
| 77 | 77 |
'title' => 'Interrupts per cpu', |
| 78 | 78 |
'args' => '--base 1000', |
| 79 |
'vlabel' => 'count of IRQ (+) / sIRQ (-) per secund',
|
|
| 80 |
'info' => 'This graph shows interrupts per secund from last update',
|
|
| 79 |
'vlabel' => 'count of IRQ (+) / sIRQ (-) per second',
|
|
| 80 |
'info' => 'This graph shows interrupts per second from last update',
|
|
| 81 | 81 |
'category' => 'system' |
| 82 | 82 |
}, |
| 83 | 83 |
'irq_cpu' => |
| 84 | 84 |
{
|
| 85 | 85 |
'title' => 'CPU:cpu: :irq_type:', |
| 86 | 86 |
'args' => '--base 1000', |
| 87 |
'vlabel' => 'count per secund',
|
|
| 88 |
'info' => 'This graph shows :irq_type: for CPU:cpu: per secund from last update',
|
|
| 87 |
'vlabel' => 'count per second',
|
|
| 88 |
'info' => 'This graph shows :irq_type: for CPU:cpu: per second from last update',
|
|
| 89 | 89 |
'category' => 'cpu :cpu:' |
| 90 | 90 |
} |
| 91 | 91 |
}; |
| ... | ... | |
| 333 | 333 |
$gr->{$graph_name}{'graph'}{'category'} = replace($graphs->{'irq_cpu'}{'category'}, ':cpu:', $i);
|
| 334 | 334 |
# -- child fields -- |
| 335 | 335 |
my @irq_names = keys %{$IRQi->{'stat'}{$irq_type}{$i}};
|
| 336 |
# names splitted for better sorting
|
|
| 336 |
# names split for better sorting |
|
| 337 | 337 |
for my $irq_name (( |
| 338 | 338 |
(sort {int $a <=> int $b} grep{/^\d/} @irq_names),
|
| 339 | 339 |
(sort grep{!/(^\d|ERR|MIS)/} @irq_names),
|
| plugins/vdr/vdr_ | ||
|---|---|---|
| 2 | 2 |
|
| 3 | 3 |
# Version 1.2 |
| 4 | 4 |
# - kein div 0 Fehler mehr wenn der Host nicht zu erreichen ist |
| 5 |
# - Serien Timer werden nun seperat gezaehlt (anzahl pro Woche)
|
|
| 5 |
# - Serien Timer werden nun separat gezaehlt (anzahl pro Woche)
|
|
| 6 | 6 |
# - im Namen kann munic conform der hostname mit angegeben werden: vdr_localhost vdr_192.168.0.2, ... (localhost ist default) |
| 7 | 7 |
# - Timer werden nur ignoriert wenn sie 0(inaktiv) als Status haben |
| 8 | 8 |
# - Erkennung der neuen Aufzeichnungen passte nicht mehr |
| ... | ... | |
| 134 | 134 |
} |
| 135 | 135 |
|
| 136 | 136 |
if (length($anzahl) && $anzahl =~ /\D/){
|
| 137 |
#print "Serie"; |
|
| 137 |
#print "Series";
|
|
| 138 | 138 |
$anzahlSerienTimer+=length($anzahl); |
| 139 | 139 |
$anzahlSerienMinuten+=$dauer*length($anzahl); |
| 140 | 140 |
} else {
|
| 141 |
#print "keine Serie"; |
|
| 141 |
#print "keine Series";
|
|
| 142 | 142 |
$anzahlTimer++; |
| 143 | 143 |
$anzahlMinuten+=$dauer; |
| 144 | 144 |
} |
| plugins/voip/murmur_users | ||
|---|---|---|
| 19 | 19 |
Notice: |
| 20 | 20 |
- script allows the usage of the 'config' and 'autoconf' parameters during startup, make fure you edt config section before running it |
| 21 | 21 |
- $limit - number of lines to tail from the lgo file, better keep it below 5000 for lower cpu load, |
| 22 |
aditionally on busy servers you can keep it really low, suggested 3x maximum number of users online |
|
| 22 |
additionally on busy servers you can keep it really low, suggested 3x maximum number of users online
|
|
| 23 | 23 |
- tested on |
| 24 | 24 |
PHP 5.2.6-3 with Suhosin-Patch 0.9.6.2 (cli) (built: Aug 21 2008 17:02:32) |
| 25 | 25 |
murmur 1.1.4 precompiled binaries from sourceforge net, all running under debian etch |
| plugins/voip/murmurice_host_port_id_description_avg | ||
|---|---|---|
| 21 | 21 |
|
| 22 | 22 |
Configuration: |
| 23 | 23 |
1. link creation |
| 24 |
create a symlink to thie file in the following format:
|
|
| 24 |
create a symlink to the file in the following format: |
|
| 25 | 25 |
murmurice_ip_port_sid_description_avg |
| 26 | 26 |
where ip/port correspond to the ip and port on which the mumble ice interface listens to |
| 27 | 27 |
sid is the server id we want to query (mumble can run multiple servers ) |
| plugins/xbnbt/xbnbt_peers | ||
|---|---|---|
| 16 | 16 |
# along with this program; if not, write to the Free Software |
| 17 | 17 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 18 | 18 |
# |
| 19 |
# Capabilites |
|
| 19 |
# Capabilities
|
|
| 20 | 20 |
# config |
| 21 | 21 |
# autoconf |
| 22 | 22 |
# |
| samples/munin.conf/Overviews | ||
|---|---|---|
| 12 | 12 |
node_order Glassfish MongoDB |
| 13 | 13 |
|
| 14 | 14 |
[Quick;Glassfish] |
| 15 |
# dont poll a node, we are loaning graphs from other RRDs |
|
| 15 |
# don't poll a node, we are loaning graphs from other RRDs
|
|
| 16 | 16 |
address 127.0.0.1 |
| 17 | 17 |
update no |
| 18 | 18 |
# define some "virtual" graph (loaned) |
| templates/munstrap/static/js/formatdate.js | ||
|---|---|---|
| 282 | 282 |
// A full numeric representation of a year, 4 digits |
| 283 | 283 |
|
| 284 | 284 |
// we first check, if getFullYear is supported. if it |
| 285 |
// is, we just use that. ppks code is nice, but wont |
|
| 285 |
// is, we just use that. ppks code is nice, but won't
|
|
| 286 | 286 |
// work with dates outside 1900-2038, or something like that |
| 287 | 287 |
if (date.getFullYear) {
|
| 288 | 288 |
var newDate = new Date("January 1 2001 00:00:00 +0000");
|
| templates/official/munin-serviceview.tmpl | ||
|---|---|---|
| 57 | 57 |
</table> |
| 58 | 58 |
<h2>Graph Information</h2> |
| 59 | 59 |
<TMPL_LOOP NAME="GRAPHINFO"> |
| 60 |
<!-- Do we actually allow mutiple graph_info, or is this just to access the nested data? --> |
|
| 60 |
<!-- Do we actually allow multiple graph_info, or is this just to access the nested data? -->
|
|
| 61 | 61 |
<p class="graph_info"><TMPL_VAR NAME="info"></p> |
| 62 | 62 |
</TMPL_LOOP> |
| 63 | 63 |
<TMPL_IF NAME="STATE_WARNING"><p class="warning"><p><strong>Note:</strong> |
| tools/munin-node-from-hell/muninnode-from-hell | ||
|---|---|---|
| 359 | 359 |
% (pluginprofile, tentative_plugin) |
| 360 | 360 |
continue |
| 361 | 361 |
|
| 362 |
# support more than one instanciation of the same plugin.
|
|
| 362 |
# support more than one instantiation of the same plugin.
|
|
| 363 | 363 |
plugininstancename = tentative_plugin |
| 364 | 364 |
i=2 |
| 365 | 365 |
while (plugins.has_key(plugininstancename)): |
Formats disponibles : Unified diff