Mise à jour de 'netdata.sh'
This commit is contained in:
parent
c9a60cf9f5
commit
86b653b55d
|
@ -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 &&
|
||||
|
|
Loading…
Reference in New Issue