mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 13:46:59 +01:00
Fix interface name in Monit's config
This commit is contained in:
parent
77cf4d9c90
commit
ae2e2b8ed3
2 changed files with 9 additions and 4 deletions
|
|
@ -1,20 +1,25 @@
|
||||||
---
|
---
|
||||||
- name: Install monit
|
- name: Install monit
|
||||||
package: name=monit state=present update_cache=yes
|
package:
|
||||||
|
name: monit
|
||||||
|
state: present
|
||||||
|
update_cache: yes
|
||||||
|
|
||||||
- name: Enable and start monit service
|
- name: Enable and start monit service
|
||||||
systemd:
|
systemd:
|
||||||
name: monit.service
|
name: monit.service
|
||||||
state: started
|
state: started
|
||||||
enabled: True
|
enabled: True
|
||||||
|
|
||||||
- name: Create fullBackup.sh
|
- name: Create fullBackup.sh
|
||||||
copy:
|
copy:
|
||||||
src: checkBackupStatus.sh
|
src: checkBackupStatus.sh
|
||||||
dest: /usr/local/bin/checkBackupStatus.sh
|
dest: /usr/local/bin/checkBackupStatus.sh
|
||||||
mode: 0700
|
mode: 0700
|
||||||
|
|
||||||
- name: Copy monit config
|
- name: Copy monit config
|
||||||
template:
|
template:
|
||||||
src: monitrc
|
src: monitrc
|
||||||
dest: /etc/monit/monitrc
|
dest: /etc/monit/monitrc
|
||||||
mode: 0600
|
mode: 0600
|
||||||
notify:
|
notify: reload monit
|
||||||
- reload monit
|
|
||||||
|
|
|
||||||
|
|
@ -299,7 +299,7 @@ check filesystem root with path /
|
||||||
## Check a network link status (up/down), link capacity changes, saturation
|
## Check a network link status (up/down), link capacity changes, saturation
|
||||||
## and bandwidth usage.
|
## and bandwidth usage.
|
||||||
#
|
#
|
||||||
check network public with interface enp4s0
|
check network public with interface enp3s0
|
||||||
if failed link then alert
|
if failed link then alert
|
||||||
# if changed link then alert
|
# if changed link then alert
|
||||||
# if saturation > 90% then alert
|
# if saturation > 90% then alert
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue