1
0
Bifurcation 0

Mise à jour de 'netdata.sh'

Cette révision appartient à :
virtubox 2019-07-21 16:52:50 +02:00
Parent c9a60cf9f5
révision 86b653b55d
1 fichiers modifiés avec 4 ajouts et 1 suppressions

Voir le fichier

@ -41,7 +41,10 @@ if [ -n "$(command -v mysqladmin)" ]; then
MYSQL_PWD=$(cat /etc/psa/.psa.shadow) mysql -uadmin -e "grant usage on *.* to 'netdata'@'localhost';"
MYSQL_PWD=$(cat /etc/psa/.psa.shadow) mysql -uadmin -e "flush privileges;"
echo "Updating Netdata configuration for Apache monitoring"
sed -i 's/http:\/\/localhost\/server-status?auto/http:\/\/localhost:7080\/server-status?auto/' /usr/lib/netdata/conf.d/python.d/apache.conf
if [ -d /etc/netdata ]; then
sed -i 's/http:\/\/localhost\/server-status?auto/http:\/\/localhost:7080\/server-status?auto/' /usr/lib/netdata/conf.d/python.d/apache.conf
cp /usr/lib/netdata/conf.d/python.d/apache.conf /etc/netdata/python.d/apache.conf -f
fi
fi
# installing required python package for mysql monitoring
apt-get update -qq &&