mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
Improve incorrect or unspecific output for "autoconf"
Some plugins emit wrongly formatted "no" messages or lack the "yes" message on success.
This commit is contained in:
parent
e4cd049b01
commit
2ec4e4c1f7
20 changed files with 68 additions and 99 deletions
|
@ -34,9 +34,9 @@ LOGS=${logfile:-/var/log/apache2/error.log}
|
|||
|
||||
if [[ $1 == autoconf ]]; then
|
||||
for LOG in $LOGS; do
|
||||
if [[ ! -r $LOGS ]]; then
|
||||
echo no
|
||||
exit 1
|
||||
if [[ ! -r $LOG ]]; then
|
||||
echo "no (cannot read '$LOG')"
|
||||
exit 0
|
||||
fi
|
||||
done
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue