Skip to content
Snippets Groups Projects
Commit 75183448 authored by Elian Loraux's avatar Elian Loraux
Browse files

undo alert to branch 6-monit-update

parent 68adc702
No related branches found
No related tags found
1 merge request!3add rules of dolibarr
...@@ -54,7 +54,7 @@ fi ...@@ -54,7 +54,7 @@ fi
# install monit if not installed # install monit if not installed
if [ -z "$(dpkg -l | grep ' monit ')" ]; then if [ -z "$(dpkg -l | grep ' monit ')" ]; then
apt-get update && apt-get install -y monit apt-get update && apt-get install -y monit
echo -e 'check device root with path /\n if SPACE usage > 75% then alert\nif SPACE usage > 75% timeout 86400 seconds then alert\n\ncheck device home with path /home\n if SPACE usage > 75% then alert\nif SPACE usage > 75% timeout 86400 seconds then alert' > /etc/monit/conf-available/disc echo -e 'check device root with path /\n if SPACE usage > 75% then alert\n\ncheck device home with path /home\n if SPACE usage > 75% then alert' > /etc/monit/conf-available/disc
ln -s /etc/monit/conf-available/disc /etc/monit/conf-enabled/ ln -s /etc/monit/conf-available/disc /etc/monit/conf-enabled/
sed -i 's/# set httpd/set httpd/' /etc/monit/monitrc sed -i 's/# set httpd/set httpd/' /etc/monit/monitrc
sed -i 's/^# allow localhost/ allow localhost/' /etc/monit/monitrc sed -i 's/^# allow localhost/ allow localhost/' /etc/monit/monitrc
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment