Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rla/sitecheck
Simple Bash script to check whether multiple sites are online
https://github.com/rla/sitecheck
bash monitoring uptime-monitor
Last synced: 15 days ago
JSON representation
Simple Bash script to check whether multiple sites are online
- Host: GitHub
- URL: https://github.com/rla/sitecheck
- Owner: rla
- License: mit
- Created: 2013-02-11T22:30:49.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-09-25T10:44:33.000Z (over 11 years ago)
- Last Synced: 2024-04-11T20:56:27.704Z (10 months ago)
- Topics: bash, monitoring, uptime-monitor
- Language: Shell
- Size: 105 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Sitecheck
=========Script to monitor a number of sites. For each URL it checks
whether the status code is 200. Built using curl.The script allows to periodically monitor the list of sites. The
result is logged into a log file.Installation
------------adduser sitecheck
mkdir /opt/sitecheck
chown sitecheck:sitecheck /opt/sitecheck
cd /opt/sitecheck
su sitecheck
touch sites.txt
touch sites.log
Then copy `sites.sh` to `/opt/sitecheck` and use `chmod +x /opt/sitecheck/sites.sh` to make
it executable.
Configuration
-------------Add crontab entry to run monitoring every 5 minutes:
*/5 * * * * /opt/sitecheck/sites.sh
Add entries to `/opt/sitecheck/sites.txt`. Each line is single URL.
License
-------The MIT license. See LICENSE file.