From 132cff2f479bd1be87b4cb1af6ff97e9c6c31675 Mon Sep 17 00:00:00 2001 From: Kent Fredric Date: Mon, 13 Feb 2017 00:50:03 +1300 Subject: [PATCH] Replace "Nagios::Plugin" with "Monitoring::Plugin" As this basically is an upstream renaming of the package to avoid trademark issues, drop-in substitution is satisfactory. Closes https://github.com/Flameeyes/nagios-plugins-flameeyes/issues/1 Bug: https://bugs.gentoo.org/608224 --- README.md | 2 +- gentoo/check_openrc.pl | 4 ++-- gentoo/check_portage_age.pl | 4 ++-- network/check_smb_share.pl | 4 ++-- system/check_smart.pl | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index add2e36..9e9731b 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ derived from another one that was published under a different license. Dependencies ------------ -All Perl-based plugins will require Nagios::Plugin at the very least, +All Perl-based plugins will require Monitoring::Plugin at the very least, as that implements the basic Nagios API in a flexible way. * `check_smart.pl` diff --git a/gentoo/check_openrc.pl b/gentoo/check_openrc.pl index a3cebb7..e300a58 100755 --- a/gentoo/check_openrc.pl +++ b/gentoo/check_openrc.pl @@ -36,7 +36,7 @@ =head1 LICENSE =cut use strict; -use Nagios::Plugin; +use Monitoring::Plugin; my $LICENSE = <new( shortname => "OPENRC", +my $np = Monitoring::Plugin->new( shortname => "OPENRC", usage => "Usage: %s [--stopped-critical] ", blurb => "Check services status on OpenRC", license => $LICENSE, diff --git a/gentoo/check_portage_age.pl b/gentoo/check_portage_age.pl index bc690c5..a02c9c1 100755 --- a/gentoo/check_portage_age.pl +++ b/gentoo/check_portage_age.pl @@ -37,7 +37,7 @@ =head1 LICENSE =cut use strict; -use Nagios::Plugin; +use Monitoring::Plugin; use Date::Parse; use Time::Duration; @@ -51,7 +51,7 @@ =head1 LICENSE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. END -my $np = Nagios::Plugin->new( shortname => "PORTAGE_AGE", +my $np = Monitoring::Plugin->new( shortname => "PORTAGE_AGE", usage => "Usage: %s -w SECONDS -c SECONDS", blurb => "Check Portage tree age (last sync)", license => $LICENSE, diff --git a/network/check_smb_share.pl b/network/check_smb_share.pl index 1697859..0dc23bf 100755 --- a/network/check_smb_share.pl +++ b/network/check_smb_share.pl @@ -38,7 +38,7 @@ =head1 LICENSE =cut use strict; -use Nagios::Plugin; +use Monitoring::Plugin; use Filesys::SmbClient; my $LICENSE = <new( shortname => "SMB SHARE", +my $np = Monitoring::Plugin->new( shortname => "SMB SHARE", usage => "Usage: %s [-u USERNAME] [-p PASSWORD] [-w WORKGROUP] -H HOSTNAME [-P PATH] [-W] [-D] SHARE", blurb => "Check for accessibility of SMB shares", license => $LICENSE, diff --git a/system/check_smart.pl b/system/check_smart.pl index 24939f1..3af1a82 100755 --- a/system/check_smart.pl +++ b/system/check_smart.pl @@ -39,7 +39,7 @@ =head1 LICENSE =cut use strict; -use Nagios::Plugin; +use Monitoring::Plugin; my $LICENSE = <new( shortname => "SMART", +my $np = Monitoring::Plugin->new( shortname => "SMART", usage => "Usage: %s [--sudo] [--smartctl PATH] [--device TYPE] device", blurb => "Check health status of S.M.A.R.T. drives", license => $LICENSE,