Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/perfecto25/monit-scripts
collection of monit rule examples and custom checkers
https://github.com/perfecto25/monit-scripts
Last synced: 7 days ago
JSON representation
collection of monit rule examples and custom checkers
- Host: GitHub
- URL: https://github.com/perfecto25/monit-scripts
- Owner: perfecto25
- Created: 2022-08-18T05:14:57.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-08-21T06:39:37.000Z (about 2 years ago)
- Last Synced: 2023-02-28T06:03:10.676Z (over 1 year ago)
- Language: Python
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Monit sample scripts and rule sets
full description here
https://perfecto25.medium.com/monit-alert-system-config-examples-a7967d6a1e1f
## setup Monit agents
create "monit" service account with /home/monit
create /etc/monit directory
add symlink
ln -s /etc/monit/monit.conf /home/monit/.monitrc
add any sudoers rules that monit agent may need (restart service, read file, etc)
vi /etc/sudoers.d/monit
%monit ALL=(ALL) NOPASSWD: /usr/bin/find
%monit ALL=(root) NOPASSWD: /bin/systemctl restart httpd
%monit ALL=(root) NOPASSWD: /bin/ls /proc/*
%monit ALL=(root) NOPASSWD: /bin/cat /proc/*