Révision 17f78427
Whitespace cleanup
- remove trailing whitespace
- remove empty lines at the end of files
| plugins/ssh/openssh-denyhosts | ||
|---|---|---|
| 11 | 11 |
# |
| 12 | 12 |
|
| 13 | 13 |
mktempfile () {
|
| 14 |
mktemp -t
|
|
| 15 |
}
|
|
| 14 |
mktemp -t |
|
| 15 |
} |
|
| 16 | 16 |
|
| 17 | 17 |
AUTH_LOG=${logfile:-/var/log/auth.log}
|
| 18 | 18 |
STATEFILE=$MUNIN_PLUGSTATE/sshd.offset |
| ... | ... | |
| 59 | 59 |
$LOGTAIL ${AUTH_LOG} $STATEFILE | grep 'sshd' > ${TEMP_FILE}
|
| 60 | 60 |
|
| 61 | 61 |
refused=`grep -ic 'refused' ${TEMP_FILE}`
|
| 62 |
accepted=`grep -ic 'accepted' ${TEMP_FILE}`
|
|
| 62 |
accepted=`grep -ic 'accepted' ${TEMP_FILE}`
|
|
| 63 | 63 |
invalid=`grep -ic 'invalid user' ${TEMP_FILE}`
|
| 64 | 64 |
failed=`grep -ic 'failed password' ${TEMP_FILE}`
|
| 65 | 65 |
|
Formats disponibles : Unified diff