1
0
Fork 0

Mise à jour de 'netdata.sh'

This commit is contained in:
virtubox 2019-07-21 16:52:50 +02:00
parent c9a60cf9f5
commit 86b653b55d
1 changed files with 4 additions and 1 deletions

View File

@ -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 "grant usage on *.* to 'netdata'@'localhost';"
MYSQL_PWD=$(cat /etc/psa/.psa.shadow) mysql -uadmin -e "flush privileges;" MYSQL_PWD=$(cat /etc/psa/.psa.shadow) mysql -uadmin -e "flush privileges;"
echo "Updating Netdata configuration for Apache monitoring" 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 fi
# installing required python package for mysql monitoring # installing required python package for mysql monitoring
apt-get update -qq && apt-get update -qq &&