sensu-plugins / sensu-plugins-network-checks

This plugin provides native network instrumentation for monitoring and metrics collection, including: hardware, TCP response, RBLs, whois, port status, and more.
http://sensu-plugins.io
MIT License
30 stars 77 forks source link

Fix installation by pinning whois gem v4 #148

Open yoshikazusawa opened 1 month ago

yoshikazusawa commented 1 month ago

Pull Request Checklist

Is this in reference to an existing issue?

General

New Plugins

Purpose

The recent update of the whois gem to version 6.0.0 has raised the minimum required Ruby version to 3.0. https://rubygems.org/gems/whois/versions/6.0.0

This change has caused the sensu-install -p sensu-plugins-network-checks command to fail with the following error:

sensu-install -p sensu-plugins-network-checks
[SENSU-INSTALL] installing Sensu plugins ...
[SENSU-INSTALL] determining if Sensu gem 'sensu-plugins-network-checks' is already installed ...
false
[SENSU-INSTALL] Sensu plugin gems to be installed: ["sensu-plugins-network-checks"]
[SENSU-INSTALL] installing Sensu gem 'sensu-plugins-network-checks'
ERROR:  Error installing sensu-plugins-network-checks:
        whois requires Ruby version >= 3.0.

To address this issue, I have pinned the whois gem to the last compatible major version 4.

Known Compatibility Issues