https://github.com/0xibra/monitoring-mini-scripts
Useful bash scripts that monitor systemd services.
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (4.7%) to scientific vocabulary
Keywords
Repository
Useful bash scripts that monitor systemd services.
Basic Info
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
README.md
Monitoring bash scripts
simple bash scripts that monitor a few systemd services.
Monitor Apache http server
file: scripts/monitor_apache.sh
Checks if the apache2 service is running, if not and if has crashed, attempts to restart it after period of time which can be defined with the DOWNTIME_BEFORE_RESTART environment variable (default: 900 secs).
You can also configure a slack notification by defining the variable APACHE_MONITOR_SLACK_HOOK.
If defined, the script will send a notification message with details in case of errors.
When configuring this script with a cron job, don't forget to use flock to avoid double executions.
Example:
conf
*/5 * * * * flock -n /tmp/apache_monitor.lock -c "/path/to/scripts_dir/apache_monitor.sh"
flock will ensure single execution if the script takes too long.
Owner
- Name: Ibra
- Login: 0xIbra
- Kind: user
- Location: Toulouse, France
- Company: Digital Dealer Factory
- Website: https://www.ibragim.fr
- Twitter: ibra_akv
- Repositories: 4
- Profile: https://github.com/0xIbra
Just another guy who's passionate and curious about tech, a guy who likes to learn by creating something of use.
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: 9 months ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0