https://github.com/mrlesmithjr/ansible-monit
https://github.com/mrlesmithjr/ansible-monit
ansible ansible-role monit
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mrlesmithjr/ansible-monit
- Owner: mrlesmithjr
- Created: 2015-10-01T18:36:07.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-02-27T22:29:07.000Z (over 8 years ago)
- Last Synced: 2025-07-22T12:49:25.740Z (11 months ago)
- Topics: ansible, ansible-role, monit
- Size: 23.4 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Role Name
An [Ansible](https://www.ansible.com) role to install/configure [monit](https://mmonit.com/monit/)
## Requirements
None.
## Role Variables
[defaults/main.yml](defaults/main.yml)
## Dependencies
None.
## Example Playbook
```yaml
---
- hosts: test-nodes
vars:
config_monit: true
monit_enable_web_server: true
monit_monitor_services:
- name: 'cron'
monitored: true
pidfile: '/var/run/crond.pid'
start_program: '/usr/sbin/service cron start'
stop_program: '/usr/sbin/service cron stop'
- name: 'docker'
monitored: true
pidfile: '/var/run/docker.pid'
start_program: '/usr/sbin/service docker start'
stop_program: '/usr/sbin/service docker stop'
- name: 'ntp'
action: 'restart'
failed_host: 127.0.0.1
failed_host_port: 123
failed_host_type:
- 'udp'
monitored: true
pidfile: '/var/run/ntpd.pid'
start_program: '/usr/sbin/service ntp start'
stop_program: '/usr/sbin/service ntp stop'
- name: 'rsyslogd'
monitored: true
pidfile: '/var/run/rsyslogd.pid'
start_program: '/usr/sbin/service rsyslog start'
stop_program: '/usr/sbin/service rsyslog stop'
- name: 'sshd'
failed_host: 127.0.0.1
failed_host_port: 22
monitored: true
pidfile: '/var/run/sshd.pid'
start_program: '/usr/sbin/service ssh start'
stop_program: '/usr/sbin/service ssh stop'
monit_web_server_allow_list:
- 192.168.0.0/16
- localhost
monit_web_server_local_only: false
pri_domain_name: 'test.vagrant.local'
roles:
- name: Install/Configure Monitoring Of Services
role: ansible-monit
- name: Install Docker
role: ansible-docker
tasks:
```
## License
MIT
## Author Information
Larry Smith Jr.
- [EverythingShouldBeVirtual](http://everythingshouldbevirtual.com)
- [@mrlesmithjr](https://www.twitter.com/mrlesmithjr)
-