APACHEMUNIN: muunin config can be in other files

This commit is contained in:
Jérémy Lecour 2019-03-22 18:37:53 +01:00 committed by Jérémy Lecour
parent a4c1629912
commit fc3d2e28cf

View file

@ -446,7 +446,7 @@ if is_debian; then
|| failed "IS_APACHEMUNIN" "mising munin plugins for Apache"
else
pattern="/server-status-[[:alnum:]]{4,}"
{ grep -q -s -E "^env.url.*${pattern}" /etc/munin/plugin-conf.d/munin-node \
{ grep -r -q -s -E "^env.url.*${pattern}" /etc/munin/plugin-conf.d \
&& { grep -q -s -E "${pattern}" /etc/apache2/apache2.conf \
|| grep -q -s -E "${pattern}" /etc/apache2/mods-enabled/status.conf;
};