mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-25 02:18:08 +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
|
@ -2,7 +2,7 @@
|
|||
# Plugin to monitor the number of hosts denied by BlockHosts
|
||||
#
|
||||
# $Log$
|
||||
# based on:
|
||||
# based on:
|
||||
# denyhosts plugin
|
||||
# Revision 1.0 2009/06/05 16:00:00 tjansson
|
||||
#
|
||||
|
@ -11,7 +11,7 @@
|
|||
# Parameters:
|
||||
# config (required)
|
||||
# autoconf (optional - used by munin-config)
|
||||
|
||||
|
||||
LOG=/etc/hosts.allow
|
||||
|
||||
if [ "$1" = "autoconf" ]; then
|
||||
|
@ -23,9 +23,9 @@ if [ "$1" = "autoconf" ]; then
|
|||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
if [ "$1" = "config" ]; then
|
||||
|
||||
|
||||
echo 'graph_title Hosts denied by BlockHosts'
|
||||
echo 'graph_args -l 0'
|
||||
echo 'graph_vlabel denied hosts '
|
||||
|
@ -34,6 +34,6 @@ if [ "$1" = "config" ]; then
|
|||
echo 'HostsWatched.label Hosts watched by BlockHosts'
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
echo HostsDenied.value `egrep -c " : deny" $LOG`
|
||||
echo HostsWatched.value `egrep -c "#bh: ip:" $LOG`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue