Dear All,
I am relatively new to Ansible. Could someone please guide me on writing a playbook which runs hourly to monitor the disk space and generates an email alert if the threshold is breached?
Thank you!
Kind regards,
Amit
Dear All,
I am relatively new to Ansible. Could someone please guide me on writing a playbook which runs hourly to monitor the disk space and generates an email alert if the threshold is breached?
Thank you!
Kind regards,
Amit
Ansible is a configuration management tool. You should not waste
effort trying to shoehorn ansible into some home grown service
monitoring tool.
Instead, use a dedicated service monitoring tool for that job.
Picking the right one is outside the scope of this list, but there is
plenty of information out there, take a look at zabbix, nagios, etc.
Why are you trying to use ansible for this?
I would recommend https://icinga.com or possibly https://grafana.com for such
a requirement.
Antony
Thank you for your suggestion. We already have Dynatrace at work.
For my learning purposes, I wanted to write a playbook.
Kind regards,
Amit
If you are looking to learn, one of the first things I learned to do, was I wrote a playbook, that would set up everything I needed when I would load an OS on one of my Raspberry Pi devices.
–John