Parcourir la source

Mise à jour de 'netdata.sh'

master
virtubox il y a 4 mois
Parent
révision
86b653b55d
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. +4
    -1
      netdata.sh

+ 4
- 1
netdata.sh 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 &&


Chargement…
Annuler
Enregistrer