https://github.com/0xibra/monitoring-mini-scripts

Useful bash scripts that monitor systemd services.

https://github.com/0xibra/monitoring-mini-scripts

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

bash-script bash-scripting
Last synced: 5 months ago · JSON representation

Repository

Useful bash scripts that monitor systemd services.

Basic Info
  • Host: GitHub
  • Owner: 0xIbra
  • Language: Shell
  • Default Branch: master
  • Homepage:
  • Size: 12.7 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
bash-script bash-scripting
Created over 3 years ago · Last pushed over 3 years ago
Metadata Files
Readme

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

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
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels