mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
Whitespace cleanup
* remove trailing whitespace * remove empty lines at the end of files
This commit is contained in:
parent
ef851f0c34
commit
17f784270a
604 changed files with 2927 additions and 2945 deletions
|
@ -17,7 +17,7 @@ wget --delete-after -q -O - localhost:8080/<your path>/munin_db_activity.py
|
|||
wget --delete-after -q -O - localhost:8080/<your path>/munin_cache_parameters.py
|
||||
|
||||
Edit zope_db_activity and zope_cache_parameters scripts to reflect
|
||||
<your path> and your instance(s) ports.
|
||||
<your path> and your instance(s) ports.
|
||||
|
||||
Then move them into your munin plugins lib, and create a symlink under etc according to the
|
||||
usual munin custom:
|
||||
|
@ -33,4 +33,4 @@ Test them with:
|
|||
Restart your munin-node and the graphs should appear shortly.
|
||||
|
||||
If you make any improvements (which should be easy), please update
|
||||
the munin exhange entry, or mail me at gaute(at)pht(dot)no
|
||||
the munin exhange entry, or mail me at gaute(at)pht(dot)no
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
# Reads has logarithmic scale
|
||||
# Adjust some scaling factors
|
||||
# Support for INET connections, the new default
|
||||
#
|
||||
#
|
||||
# Invoke using symlinks to zeo_monitor_ in the form zeo_monitor_{clients,reads,writes,errors}_<storage_name>
|
||||
#
|
||||
# This plugin can be configured manually or by autoconf (provided that the ZEO
|
||||
|
@ -26,7 +26,7 @@
|
|||
# ln -s /usr/share/munin/plugins/zeo_monitor_ /etc/munin/plugins/zeo_monitor_reads_temp
|
||||
# ln -s /usr/share/munin/plugins/zeo_monitor_ /etc/munin/plugins/zeo_monitor_writes_1
|
||||
# ln -s /usr/share/munin/plugins/zeo_monitor_ /etc/munin/plugins/zeo_monitor_writes_temp
|
||||
#
|
||||
#
|
||||
#
|
||||
# Configuration variables:
|
||||
#
|
||||
|
@ -131,7 +131,7 @@ die qq(Symlink to this script by appending a mode and storage name such as "zeo_
|
|||
##########
|
||||
|
||||
if ( $ARGV[0] and $ARGV[0] eq "config") {
|
||||
|
||||
|
||||
print <<"EOF";
|
||||
graph_title ZEO $mode for storage $storage_name
|
||||
graph_args --base 1000 --lower-limit 0
|
||||
|
@ -258,7 +258,7 @@ sub parse_zeo_monitor {
|
|||
)
|
||||
\n
|
||||
/sx;
|
||||
|
||||
|
||||
my %name_var=(
|
||||
'Clients' => 'clients',
|
||||
'Commits' => 'commits',
|
||||
|
@ -268,7 +268,7 @@ sub parse_zeo_monitor {
|
|||
'Conflicts' => 'conflicts',
|
||||
'Conflicts resolved' => 'conflictsres',
|
||||
);
|
||||
|
||||
|
||||
my %stats=();
|
||||
foreach (split /\n/, $stats) {
|
||||
(my $name,my $value)=split ': ',$_,2;
|
||||
|
@ -276,7 +276,7 @@ sub parse_zeo_monitor {
|
|||
next unless $var;
|
||||
$stats{$var}=$value;
|
||||
}
|
||||
|
||||
|
||||
return %stats;
|
||||
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@ else:
|
|||
print 'obs_in_db%(i)s.value' % id, obs_in_db
|
||||
print 'obs_cached%(i)s.value'% id, obs_cached
|
||||
print 'obs_target%(i)s.value'% id, obs_target
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -32,8 +32,8 @@ import time
|
|||
if len(argv) > 1:
|
||||
if argv[1] == 'config':
|
||||
|
||||
print """graph_title Zope Conflict Errors
|
||||
graph_vlabel Count
|
||||
print """graph_title Zope Conflict Errors
|
||||
graph_vlabel Count
|
||||
graph_category appserver
|
||||
graph_info The number of conflict errors in event logs over the past 24h""".replace("\n ","\n")
|
||||
for i in range(0,len(logs)):
|
||||
|
@ -52,7 +52,7 @@ else:
|
|||
delta = datetime.now() - logdate
|
||||
if delta.days >= 1:
|
||||
continue
|
||||
error_count += 1
|
||||
error_count += 1
|
||||
id = dict(i=i)
|
||||
print 'error_count%(i)s.value' % id, error_count
|
||||
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ else:
|
|||
print 'load_count%(i)s.value' % id, total_load_count
|
||||
print 'store_count%(i)s.value'% id, total_store_count
|
||||
print 'connections%(i)s.value'% id, total_connections
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue