Typo in some added checks
This commit is contained in:
parent
40d0536aa0
commit
199c3952f1
|
@ -305,7 +305,7 @@ if [ -e /etc/debian_version ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Verification de la conf log2mail
|
# Verification de la conf log2mail
|
||||||
if [ "$IS_LOG2MAILRUNNING" ]; then
|
if [ "$IS_LOG2MAILRUNNING" = 1 ]; then
|
||||||
is_pack_web && (is_installed log2mail && pgrep log2mail >/dev/null || echo 'IS_LOG2MAILRUNNING')
|
is_pack_web && (is_installed log2mail && pgrep log2mail >/dev/null || echo 'IS_LOG2MAILRUNNING')
|
||||||
fi
|
fi
|
||||||
if [ "$IS_LOG2MAILAPACHE" = 1 ]; then
|
if [ "$IS_LOG2MAILAPACHE" = 1 ]; then
|
||||||
|
@ -382,7 +382,7 @@ if [ -e /etc/debian_version ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if default Apache configuration file for munin is absent (or empty or commented).
|
# Check if default Apache configuration file for munin is absent (or empty or commented).
|
||||||
if [ "$IS_MUNINAPACHECONF" ]; then
|
if [ "$IS_MUNINAPACHECONF" = 1 ]; then
|
||||||
if is_debianversion squeeze || is_debianversion wheezy; then
|
if is_debianversion squeeze || is_debianversion wheezy; then
|
||||||
muninconf="/etc/apache2/conf.d/munin"
|
muninconf="/etc/apache2/conf.d/munin"
|
||||||
else
|
else
|
||||||
|
@ -410,7 +410,7 @@ if [ -e /etc/debian_version ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if munin-node running and RRD files are up to date.
|
# Check if munin-node running and RRD files are up to date.
|
||||||
if [ "$IS_MUNINRUNNING" ]; then
|
if [ "$IS_MUNINRUNNING" = 1 ]; then
|
||||||
pgrep munin-node >/dev/null || echo 'IS_MUNINRUNNING FAILED!'
|
pgrep munin-node >/dev/null || echo 'IS_MUNINRUNNING FAILED!'
|
||||||
[ $(stat -c "%Y" /var/lib/munin/*/*uptime-g.rrd |head -1) -lt $(date +"%s" -d "now - 10 minutes") ] && echo 'IS_MUNINRUNNING FAILED!'
|
[ $(stat -c "%Y" /var/lib/munin/*/*uptime-g.rrd |head -1) -lt $(date +"%s" -d "now - 10 minutes") ] && echo 'IS_MUNINRUNNING FAILED!'
|
||||||
[ $(stat -c "%Y" /var/cache/munin/www/*/*/uptime-day.png |head -1) -lt $(date +"%s" -d "now - 10 minutes") ] && echo 'IS_MUNINRUNNING FAILED!'
|
[ $(stat -c "%Y" /var/cache/munin/www/*/*/uptime-day.png |head -1) -lt $(date +"%s" -d "now - 10 minutes") ] && echo 'IS_MUNINRUNNING FAILED!'
|
||||||
|
|
Loading…
Reference in a new issue