Browse Source

Mise à jour de 'netdata.sh'

master
virtubox 3 months ago
parent
commit
86b653b55d
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      netdata.sh

+ 4
- 1
netdata.sh 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 "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…
Cancel
Save