Skip to content

Latest commit

 

History

History
72 lines (61 loc) · 1.49 KB

README.md

File metadata and controls

72 lines (61 loc) · 1.49 KB

rdeadman

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.

Installation

First, install the rdeadman gem.

gem install rdeadman

Usage

Basic Usage

  1. 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
  1. Run the command to start monitoring the hosts.
rdeadman hosts.conf
  1. To specify the interval (in seconds) between checks, provide it as the second argument.
rdeadman hosts.conf 10

Configuration File Example

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

Development

To contribute to this project, follow these steps:

  1. Fork the repository.
  2. Clone your forked repository locally.
git clone https://github.com/takuan517/rdeadman.git
  1. Install the dependencies.
bundle install
  1. Create a new branch for your changes.
git checkout -b my-feature-branch
  1. Commit your changes and push them to your forked repository.
git commit -m "Add my new feature"
git push origin my-feature-branch
  1. Create a pull request.

Testing

Run the tests using RSpec.

bundle exec rspec

License

This project is licensed under the MIT License. See the LICENSE file for details.