rdeadman
is a network monitoring tool for monitoring the availability of multiple hosts. This gem periodically pings specified hosts and displays the results in real-time.
First, install the rdeadman
gem.
gem install rdeadman
- Create a configuration file (e.g., hosts.conf) with the hosts you want to monitor.
# hosts.conf
google.com
example.com
8.8.8.8
- Run the command to start monitoring the hosts.
rdeadman hosts.conf
- To specify the interval (in seconds) between checks, provide it as the second argument.
rdeadman hosts.conf 10
List the hosts you want to monitor, one per line. You can add comments using the # symbol.
# hosts.conf
# Comments: Monitoring the following hosts
google.com
example.com
8.8.8.8
To contribute to this project, follow these steps:
- Fork the repository.
- Clone your forked repository locally.
git clone https://github.com/takuan517/rdeadman.git
- Install the dependencies.
bundle install
- Create a new branch for your changes.
git checkout -b my-feature-branch
- Commit your changes and push them to your forked repository.
git commit -m "Add my new feature"
git push origin my-feature-branch
- Create a pull request.
Run the tests using RSpec.
bundle exec rspec
This project is licensed under the MIT License. See the LICENSE file for details.