From 62b34b7806512502248293d92823dacab06cf822 Mon Sep 17 00:00:00 2001 From: monitorbuilder_pel7ppc64lebuilder0 Date: Tue, 29 Jun 2021 07:52:47 +0200 Subject: [PATCH] nagios-plugins updates (bundles) Signed-off-by: monitorbuilder_pel7ppc64lebuilder0 --- .../0001-track-codes-in-all-cases-66.patch | 25 + ...t-rise-critical-error-when-used-is-0.patch | 26 + ...ter-check-script-to-make-more-nagios.patch | 238 +++ ...Update-check_rabbitmq_cluster.cfg-74.patch | 29 + ...ot-found-report-an-UNKNOWN-status-75.patch | 62 + ...text-about-the-order-of-thresholds-8.patch | 37 + SOURCES/0007-minor-docs-fixes-79.patch | 75 + ...er-class-for-hostnames-to-accommodat.patch | 54 + ...luster-return-correctly-excluded-nod.patch | 26 + ...ovels-in-connections-list-on-shovel-.patch | 30 + SOURCES/lib-lib64.patch | 412 ++++++ ...e-assignment-of-not-parsed-to-jitter.patch | 11 + ...statement-and-the-external-ntp-comma.patch | 13 + ...agios-plugins-0012-fix-perl-ntp-ipv6.patch | 28 + ...ns-check_sip-0001-Fix-for-Nagios-3.x.patch | 38 + SOURCES/nagios-plugins.README.PowerEL | 7 + SPECS/nagios-plugins-bonding.spec | 112 ++ SPECS/nagios-plugins-check-updates.spec | 249 ++++ SPECS/nagios-plugins-check_sip.spec | 122 ++ SPECS/nagios-plugins-openmanage.spec | 292 ++++ SPECS/nagios-plugins-rabbitmq.spec | 72 + SPECS/nagios-plugins-snmp-disk-proc.spec | 154 ++ SPECS/nagios-plugins.spec | 1316 +++++++++++++++++ 23 files changed, 3428 insertions(+) create mode 100644 SOURCES/0001-track-codes-in-all-cases-66.patch create mode 100644 SOURCES/0002-don-t-rise-critical-error-when-used-is-0.patch create mode 100644 SOURCES/0003-Improve-the-cluster-check-script-to-make-more-nagios.patch create mode 100644 SOURCES/0004-Update-check_rabbitmq_cluster.cfg-74.patch create mode 100644 SOURCES/0005-If-a-queue-is-not-found-report-an-UNKNOWN-status-75.patch create mode 100644 SOURCES/0006-Add-descriptive-text-about-the-order-of-thresholds-8.patch create mode 100644 SOURCES/0007-minor-docs-fixes-79.patch create mode 100644 SOURCES/0008-Add-.-to-character-class-for-hostnames-to-accommodat.patch create mode 100644 SOURCES/0009-check_rabbitmq_cluster-return-correctly-excluded-nod.patch create mode 100644 SOURCES/0010-Fix-to-handle-shovels-in-connections-list-on-shovel-.patch create mode 100644 SOURCES/lib-lib64.patch create mode 100644 SOURCES/nagios-plugins-0002-Remove-assignment-of-not-parsed-to-jitter.patch create mode 100644 SOURCES/nagios-plugins-0007-Fix-the-use-lib-statement-and-the-external-ntp-comma.patch create mode 100644 SOURCES/nagios-plugins-0012-fix-perl-ntp-ipv6.patch create mode 100644 SOURCES/nagios-plugins-check_sip-0001-Fix-for-Nagios-3.x.patch create mode 100644 SOURCES/nagios-plugins.README.PowerEL create mode 100644 SPECS/nagios-plugins-bonding.spec create mode 100644 SPECS/nagios-plugins-check-updates.spec create mode 100644 SPECS/nagios-plugins-check_sip.spec create mode 100644 SPECS/nagios-plugins-openmanage.spec create mode 100644 SPECS/nagios-plugins-rabbitmq.spec create mode 100644 SPECS/nagios-plugins-snmp-disk-proc.spec create mode 100644 SPECS/nagios-plugins.spec diff --git a/SOURCES/0001-track-codes-in-all-cases-66.patch b/SOURCES/0001-track-codes-in-all-cases-66.patch new file mode 100644 index 0000000..7505ad2 --- /dev/null +++ b/SOURCES/0001-track-codes-in-all-cases-66.patch @@ -0,0 +1,25 @@ +From 59f2fbf7d50957daf005a8ea167e7686f280a04a Mon Sep 17 00:00:00 2001 +From: Matthew Wilson +Date: Mon, 25 Apr 2016 14:06:55 -0700 +Subject: [PATCH 01/10] track codes in all cases (#66) + +--- + scripts/check_rabbitmq_queue | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/scripts/check_rabbitmq_queue b/scripts/check_rabbitmq_queue +index 335c7b3..b8201d5 100755 +--- a/scripts/check_rabbitmq_queue ++++ b/scripts/check_rabbitmq_queue +@@ -187,6 +187,8 @@ for my $metric (@metrics) { + my $value = 0; + $value = $result->{$metric} if defined $result->{$metric}; + my $code = $p->check_threshold(check => $value, warning => $warning, critical=> $critical); ++ push @values, $code; ++ + $p->add_message($code, sprintf("$metric ".$STATUS_TEXT{$code}." (%d)", $value)) ; + $p->add_perfdata(label=>$metric, value => $value, warning=>$warning, critical=> $critical); + } +-- +2.20.1 + diff --git a/SOURCES/0002-don-t-rise-critical-error-when-used-is-0.patch b/SOURCES/0002-don-t-rise-critical-error-when-used-is-0.patch new file mode 100644 index 0000000..9dbfa6a --- /dev/null +++ b/SOURCES/0002-don-t-rise-critical-error-when-used-is-0.patch @@ -0,0 +1,26 @@ +From caabebdf4e1d820c19b7d7fa8e682848f22834e9 Mon Sep 17 00:00:00 2001 +From: "Thierno IB. BARRY" +Date: Tue, 26 Apr 2016 00:06:16 +0200 +Subject: [PATCH 02/10] don't rise critical error when $used is 0 + +close #57 +--- + scripts/check_rabbitmq_server | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/scripts/check_rabbitmq_server b/scripts/check_rabbitmq_server +index 3a6ec98..4e47585 100755 +--- a/scripts/check_rabbitmq_server ++++ b/scripts/check_rabbitmq_server +@@ -188,7 +188,7 @@ sub check { + my $warning = shift; + my $critical = shift; + +- if (!$p || !$used) { ++ if (!$p || !defined($used)) { + $p->nagios_exit( return_code=>CRITICAL, message=>'Unable to get values for '.$label); + } else { + my $value = percent($used, $limit); +-- +2.20.1 + diff --git a/SOURCES/0003-Improve-the-cluster-check-script-to-make-more-nagios.patch b/SOURCES/0003-Improve-the-cluster-check-script-to-make-more-nagios.patch new file mode 100644 index 0000000..8c0f7bf --- /dev/null +++ b/SOURCES/0003-Improve-the-cluster-check-script-to-make-more-nagios.patch @@ -0,0 +1,238 @@ +From c670ebe177f0b67da2804f7b3862b4c141a032fa Mon Sep 17 00:00:00 2001 +From: "Thierno IB. BARRY" +Date: Tue, 26 Apr 2016 20:21:24 +0200 +Subject: [PATCH 03/10] Improve the cluster check script to make more nagios + friendly (#69) + +- Use request function as other scripts +- Use check_threshold instead of manual check (close #67) +- Add an expected node list in the cluster (close #68) +--- + scripts/check_rabbitmq_cluster | 138 +++++++++++++++++++++++++-------- + t/1_checks_scripts.t | 4 +- + 2 files changed, 107 insertions(+), 35 deletions(-) + +diff --git a/scripts/check_rabbitmq_cluster b/scripts/check_rabbitmq_cluster +index 534f01f..f4da8cb 100755 +--- a/scripts/check_rabbitmq_cluster ++++ b/scripts/check_rabbitmq_cluster +@@ -7,7 +7,8 @@ + use strict; + use warnings; + +-use Monitoring::Plugin; ++use Monitoring::Plugin qw(OK CRITICAL WARNING UNKNOWN); ++use Monitoring::Plugin::Functions qw(%STATUS_TEXT); + use LWP::UserAgent; + use URI::Escape; + use JSON; +@@ -73,18 +74,23 @@ $p->add_arg(spec => 'proxyurl=s', + help => "Use proxy url like http://proxy.domain.com:8080", + ); + ++$p->add_arg(spec => 'nodes|n=s', ++ help => "Comma separated list of expected nodes in the cluster", ++); ++ + $p->add_arg( +- spec => 'warning|w=i', ++ spec => 'warning|w=s', + help => +-qq{-w, --warning=THRESHOLD ++qq{-w, --warning=THRESHOLD[,THRESHOLD[,THRESHOLD]] + Warning thresholds specified in order that the metrics are returned. + Specify -1 if no warning threshold.}, ++ + ); + + $p->add_arg( +- spec => 'critical|c=i', ++ spec => 'critical|c=s', + help => +-qq{-c, --critical=THRESHOLD ++qq{-c, --critical=THRESHOLD[,THRESHOLD[,THRESHOLD]] + Critical thresholds specified in order that the metrics are returned. + Specify -1 if no critical threshold.}, + ); +@@ -92,11 +98,34 @@ qq{-c, --critical=THRESHOLD + # Parse arguments and process standard ones (e.g. usage, help, version) + $p->getopts; + ++# perform sanity checking on command line options ++my %warning; ++if (defined $p->opts->warning) { ++ my @warning = split(',', $p->opts->warning); ++ $p->nagios_die("You should specify 1 to 3 ranges for --warning argument") unless $#warning < 3; ++ ++ $warning{'nb_running_node'} = shift @warning; ++ $warning{'nb_running_disc_node'} = shift @warning; ++ $warning{'nb_running_ram_node'} = shift @warning; ++} ++ ++my %critical; ++if (defined $p->opts->critical) { ++ my @critical = split(',', $p->opts->critical); ++ $p->nagios_die("You should specify specify 1 to 3 ranges for --critical argument") unless $#critical < 3; ++ ++ $critical{'nb_running_node'} = shift @critical; ++ $critical{'nb_running_disc_node'} = shift @critical; ++ $critical{'nb_running_ram_node'} = shift @critical; ++} ++ ++# check stuff. + my $hostname=$p->opts->hostname; + my $port=$p->opts->port; + + my $url = sprintf("http%s://%s:%d/api/nodes", ($p->opts->ssl ? "s" : ""), $hostname, $port); + my $ua = LWP::UserAgent->new; ++ + if (defined $p->opts->proxyurl) + { + $ua->proxy('http', $p->opts->proxyurl); +@@ -110,40 +139,85 @@ $ua->timeout($p->opts->timeout); + if ($p->opts->ssl and $ua->can('ssl_opts')) { + $ua->ssl_opts(verify_hostname => $p->opts->ssl_strict); + } +-my $req = HTTP::Request->new(GET => $url); +-$req->authorization_basic($p->opts->username, $p->opts->password); +-my $res = $ua->request($req); +- +-if (!$res->is_success) { +- # Deal with standard error conditions - make the messages more sensible +- if ($res->code == 400) { +- my $bodyref = decode_json $res->content; +- $p->nagios_exit(CRITICAL, $bodyref->{'reason'}); +- } +- $res->code == 404 and $p->nagios_die("Not found"); +- $res->code == 401 and $p->nagios_die("Access refused"); +- if ($res->code < 200 or $res->code > 400 ) { +- $p->nagios_exit(CRITICAL, "Received ".$res->status_line); +- } ++ ++my ($retcode, $result) = request($url); ++if ($retcode != 200) { ++ $p->nagios_exit(CRITICAL, "$result : $url"); + } + +-my @nodes = @{ decode_json $res->content }; +-my $count = 0; +-foreach my $node ( @nodes ) { +- if ($node->{"name"} && $node->{"running"}) { +- $count++; +- } ++my $values = {}; ++$values->{'running_nodes'} = (); ++$values->{'nb_running_node'} = 0; ++$values->{'nb_running_disc_node'} = 0; ++$values->{'nb_running_ram_node'} = 0; ++ ++foreach my $node ( @$result ) { ++ if ($node->{"name"} && $node->{"running"}) { ++ push @{ $values->{'running_nodes'} }, $node->{"name"}; ++ ++ $values->{'nb_running_node'}++; ++ $values->{'nb_running_disc_node'}++ if ($node->{"type"} && $node->{"type"} eq "disc"); ++ $values->{'nb_running_ram_node'}++ if ($node->{"type"} && $node->{"type"} eq "ram"); ++ } + } + +-if ($p->opts->critical && $count <= $p->opts->critical) { +- $p->nagios_exit( CRITICAL, "The cluster has $count nodes" ); ++my $code = 0; ++my $message = ""; ++ ++if (defined($p->opts->nodes)) { ++ my @nodes = split(',', $p->opts->nodes); ++ my @excluded_nodes = diff(\@nodes, \@{ $values->{'running_nodes'} }); ++ my $nb_excluded_nodes = @excluded_nodes; ++ ($code, $message) = (OK, "All nodes are running"); ++ ($code, $message) = (CRITICAL, "$nb_excluded_nodes failed cluster node: " . join(',', @excluded_nodes)) if($nb_excluded_nodes ne 0); ++} ++else { ++ my @metrics = ("nb_running_node", "nb_running_disc_node", "nb_running_ram_node"); ++ for my $metric (@metrics) { ++ my $warning = undef; ++ $warning = $warning{$metric} if (defined $warning{$metric} and $warning{$metric} ne -1); ++ ++ my $critical = undef; ++ $critical = $critical{$metric} if (defined $critical{$metric} and $critical{$metric} ne -1); ++ ++ my $value = 0; ++ $value = $values->{$metric} if defined $values->{$metric}; ++ my $code = $p->check_threshold(check => $value, warning => $warning, critical=> $critical); ++ $p->add_message($code, sprintf("$metric ".$STATUS_TEXT{$code}." (%d)", $value)); ++ } ++ ($code, $message) = $p->check_messages(join_all=>', '); + } + +-if ($p->opts->warning && $count <= $p->opts->warning) { +- $p->nagios_exit( WARNING, "The cluster has $count nodes" ); ++$p->nagios_exit(return_code => $code, message => $message); ++ ++sub request { ++ my ($url) = @_; ++ my $req = HTTP::Request->new(GET => $url); ++ $req->authorization_basic($p->opts->username, $p->opts->password); ++ my $res = $ua->request($req); ++ ++ if (!$res->is_success) { ++ # Deal with standard error conditions - make the messages more sensible ++ if ($res->code == 400) { ++ my $bodyref = decode_json $res->content; ++ return (400, $bodyref->{'reason'}); ++ ++ } ++ $res->code == 404 and return (404, "Not Found"); ++ $res->code == 401 and return (401, "Access Refused"); ++ $res->status_line =~ /Can\'t connect/ and return (500, "Connection Refused : $url"); ++ if ($res->code < 200 or $res->code > 400 ) { ++ return ($res->code, "Received ".$res->status_line); ++ } ++ } ++ my $bodyref = decode_json $res->content; ++ return($res->code, $bodyref); + } + +-$p->nagios_exit( OK, "The cluster has $count nodes" ); ++sub diff { ++ my ($array_1, $array_2) = (@_); ++ return grep { my $baz = $_; grep($_ ne $baz, @$array_2) } @$array_1; ++} + + =head1 NAME + +@@ -206,7 +280,7 @@ is needed is to specify the host to connect to: + + This returns a standard Nagios result: + +- RABBITMQ_NODE OK - The cluster has 3 nodes ++ RABBITMQ_CLUSTER OK - The cluster has 3 nodes + + =head1 ERRORS + +diff --git a/t/1_checks_scripts.t b/t/1_checks_scripts.t +index ad9a4b7..7672f84 100644 +--- a/t/1_checks_scripts.t ++++ b/t/1_checks_scripts.t +@@ -13,9 +13,7 @@ $args = sprintf("--hostname=%s --username=%s --password=%s", $rabbit_hostname, $ + script_runs(['scripts/check_rabbitmq_aliveness', $args]); + + # Checks on check_rabbitmq_cluster +-$regex = /The cluster has \d+ nodes/im; + script_runs(['scripts/check_rabbitmq_cluster', ($args, ' -w 1 -c 1')]); +-script_stdout_like $regex, 'scripts/check_rabbitmq_cluster stdout is correct'; + + # Checks on check_rabbitmq_connections + script_runs(['scripts/check_rabbitmq_connections', $args]); +@@ -35,7 +33,7 @@ script_runs(['scripts/check_rabbitmq_queue', ($args, '--queue=aliveness-test')]) + # Checks on check_rabbitmq_server + $regex = /(Memory=.*)\s(Process=.*)\s(FD=.*)/im; + script_runs(['scripts/check_rabbitmq_server', ($args, "--node=${rabbit_servername}")]); +-script_stdout_like $regex, 'scripts/check_rabbitmq_server stdout is correct'; ++script_stdout_like $regex, 'Scripts/check_rabbitmq_server stdout is correct'; + + # Checks on check_rabbitmq_watermark + script_runs(['scripts/check_rabbitmq_watermark', ($args, "--node=${rabbit_servername}")]); +-- +2.20.1 + diff --git a/SOURCES/0004-Update-check_rabbitmq_cluster.cfg-74.patch b/SOURCES/0004-Update-check_rabbitmq_cluster.cfg-74.patch new file mode 100644 index 0000000..448c0c0 --- /dev/null +++ b/SOURCES/0004-Update-check_rabbitmq_cluster.cfg-74.patch @@ -0,0 +1,29 @@ +From 3d7ad2b27c4df0ef048d93891af9cded0a4f9b15 Mon Sep 17 00:00:00 2001 +From: Augie Schwer +Date: Thu, 26 May 2016 16:18:53 -0700 +Subject: [PATCH 04/10] Update check_rabbitmq_cluster.cfg (#74) + +Typo, was "partition" should be "cluster". +--- + etc/nagios-plugins/config/check_rabbitmq_cluster.cfg | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/etc/nagios-plugins/config/check_rabbitmq_cluster.cfg b/etc/nagios-plugins/config/check_rabbitmq_cluster.cfg +index 94fa8ae..a302496 100644 +--- a/etc/nagios-plugins/config/check_rabbitmq_cluster.cfg ++++ b/etc/nagios-plugins/config/check_rabbitmq_cluster.cfg +@@ -1,9 +1,9 @@ + define command{ +- command_name check_rabbitmq_partition ++ command_name check_rabbitmq_cluster + command_line exec sudo /usr/lib/nagios/plugins/check_rabbitmq_cluster --extra-opts=$ARG1$ + } + + define command{ +- command_name check_rabbitmq_partition_by_ssh ++ command_name check_rabbitmq_cluster_by_ssh + command_line exec ssh $HOSTADDRESS$ sudo /usr/lib/nagios/plugins/check_rabbitmq_cluster --extra-opts=$ARG1$ + } +-- +2.20.1 + diff --git a/SOURCES/0005-If-a-queue-is-not-found-report-an-UNKNOWN-status-75.patch b/SOURCES/0005-If-a-queue-is-not-found-report-an-UNKNOWN-status-75.patch new file mode 100644 index 0000000..6ac6940 --- /dev/null +++ b/SOURCES/0005-If-a-queue-is-not-found-report-an-UNKNOWN-status-75.patch @@ -0,0 +1,62 @@ +From c09c063754e5e6dbd36e85870ef5cb61253aa1a0 Mon Sep 17 00:00:00 2001 +From: Ron Griffin +Date: Thu, 6 Oct 2016 15:21:18 -0500 +Subject: [PATCH 05/10] If a queue is not found, report an UNKNOWN status (#75) + +* If a queue is not found, report an UNKNOWN status +* Add ignore option to report an OK status if queue doesn't exist +* Setting default value for ignore option +--- + scripts/check_rabbitmq_queue | 15 +++++++++++++++ + 1 file changed, 15 insertions(+) + +diff --git a/scripts/check_rabbitmq_queue b/scripts/check_rabbitmq_queue +index b8201d5..0909798 100755 +--- a/scripts/check_rabbitmq_queue ++++ b/scripts/check_rabbitmq_queue +@@ -95,6 +95,11 @@ $p->add_arg(spec => 'proxyurl=s', + help => "Use proxy url like http://proxy.domain.com:8080", + ); + ++$p->add_arg(spec => 'ignore|ignore!', ++ help => "Ignore alerts if queue does not exist (default: false)", ++ default => 0 ++); ++ + # Parse arguments and process standard ones (e.g. usage, help, version) + $p->getopts; + +@@ -131,6 +136,7 @@ my $port=$p->opts->port; + my $vhost=uri_escape($p->opts->vhost); + my $queue=$p->opts->queue; + my $filter=$p->opts->filter; ++my $ignore=$p->opts->ignore; + + my $ua = LWP::UserAgent->new; + if (defined $p->opts->proxyurl) +@@ -154,6 +160,9 @@ if ($queue eq "all"){ + $url = sprintf("http%s://%s:%d/api/queues/%s/%s", ($p->opts->ssl ? "s" : ""), $hostname, $port, $vhost, $queue); + } + my ($retcode, $result) = request($url); ++if ($retcode == 404 && $ignore) { ++ $p->nagios_exit(OK, "$result : $url"); ++} + if ($retcode != 200) { + $p->nagios_exit(CRITICAL, "$result : $url"); + } +@@ -296,6 +305,12 @@ messages_unacknowledged and consumers. This field consists of + one to four comma-separated thresholds. Specify -1 if no threshold + for a particular count. + ++=item --ignore ++ ++If the queue specified does not exist, this option ignores ++CRITICAL alerts and returns a status of OK. Useful for scenarios ++where queue existence is optional. ++ + =back + + =head1 THRESHOLD FORMAT +-- +2.20.1 + diff --git a/SOURCES/0006-Add-descriptive-text-about-the-order-of-thresholds-8.patch b/SOURCES/0006-Add-descriptive-text-about-the-order-of-thresholds-8.patch new file mode 100644 index 0000000..d9c082e --- /dev/null +++ b/SOURCES/0006-Add-descriptive-text-about-the-order-of-thresholds-8.patch @@ -0,0 +1,37 @@ +From 82763cb426446f4694a49b838bd63f1662b4fd4c Mon Sep 17 00:00:00 2001 +From: Will Yardley +Date: Mon, 20 Mar 2017 07:13:39 -0700 +Subject: [PATCH 06/10] Add descriptive text about the order of thresholds + (#81) + +--- + scripts/check_rabbitmq_queue | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/scripts/check_rabbitmq_queue b/scripts/check_rabbitmq_queue +index 0909798..7e35235 100755 +--- a/scripts/check_rabbitmq_queue ++++ b/scripts/check_rabbitmq_queue +@@ -64,7 +64,8 @@ $p->add_arg( + spec => 'warning|w=s', + help => + qq{-w, --warning=THRESHOLD[,THRESHOLD[,THRESHOLD[,THRESHOLD]]] +- Warning thresholds specified in order that the metrics are returned. ++ Warning thresholds specified in following order: ++ messages[,messages_ready[,messages_unacknowledged[,consumers]]] + Specify -1 if no warning threshold.}, + + ); +@@ -73,7 +74,8 @@ $p->add_arg( + spec => 'critical|c=s', + help => + qq{-c, --critical=THRESHOLD[,THRESHOLD[,THRESHOLD[,THRESHOLD]]] +- Critical thresholds specified in order that the metrics are returned. ++ Critical thresholds specified in following order: ++ messages[,messages_ready[,messages_unacknowledged[,consumers]]] + Specify -1 if no critical threshold.}, + ); + +-- +2.20.1 + diff --git a/SOURCES/0007-minor-docs-fixes-79.patch b/SOURCES/0007-minor-docs-fixes-79.patch new file mode 100644 index 0000000..2f7dfde --- /dev/null +++ b/SOURCES/0007-minor-docs-fixes-79.patch @@ -0,0 +1,75 @@ +From c164023ffc68e0a684b1af0d3518eef5e6dea8f2 Mon Sep 17 00:00:00 2001 +From: Will Yardley +Date: Mon, 20 Mar 2017 07:15:11 -0700 +Subject: [PATCH 07/10] minor docs fixes (#79) + +--- + README.md | 8 ++++---- + scripts/check_rabbitmq_cluster | 6 +++--- + 2 files changed, 7 insertions(+), 7 deletions(-) + +diff --git a/README.md b/README.md +index 39fca00..565b7f7 100755 +--- a/README.md ++++ b/README.md +@@ -5,8 +5,8 @@ nagios-plugins-rabbitmq + Overview + -------- + This package contains a set of nagios checks useful for monitoring a +-RabbitMQ server. They use the RabbitMQ management interface with is over +-HTTP and therefore have a very light profile on the nagios server. ++RabbitMQ server. They use the RabbitMQ management interface over HTTP ++and therefore have a very light profile on the Nagios server. + + See the [documentation](http://www.rabbitmq.com/management.html) on the + RabbitMQ management interface for more details on what it provides. +@@ -48,7 +48,7 @@ Currently we have the following checks: + - Use the `/api/nodes` API to check for partitions in a RabbitMQ cluster. + + - check\_rabbitmq\_cluster +- - Use the `/api/nodes` API to check how many node are alived in the cluster. ++ - Use the `/api/nodes` API to check how many node are alive in the cluster. + + - check\_rabbitmq\_queue + - Use the `/api/queue` API to collect the number of pending, ready and +@@ -90,4 +90,4 @@ limitations under the License. + Contributors + ------------ + +-James Casey , Thierno IB. BARRY [@barryib](https://github.com/barryib) +\ No newline at end of file ++James Casey , Thierno IB. BARRY [@barryib](https://github.com/barryib) +diff --git a/scripts/check_rabbitmq_cluster b/scripts/check_rabbitmq_cluster +index f4da8cb..641a4f4 100755 +--- a/scripts/check_rabbitmq_cluster ++++ b/scripts/check_rabbitmq_cluster +@@ -2,7 +2,7 @@ + # + # check_rabbitmq_cluster + # +-# Use the management API to check how many node are alived in the cluster. ++# Use the management API to check how many node are alive in the cluster. + + use strict; + use warnings; +@@ -221,7 +221,7 @@ sub diff { + + =head1 NAME + +-check_rabbitmq_cluster - Nagios plugin using RabbitMQ management API to check how many node are alived in the cluster ++check_rabbitmq_cluster - Nagios plugin using RabbitMQ management API to check how many node are alive in the cluster + + =head1 SYNOPSIS + +@@ -229,7 +229,7 @@ check_rabbitmq_cluster [options] -H hostname + + =head1 DESCRIPTION + +-Use the management interface of RabbitMQ to check if a cluster partition has occured. ++Use the `/api/nodes` API to check how many node are alive in the cluster. + + It uses Monitoring::Plugin and accepts all standard Nagios options. + +-- +2.20.1 + diff --git a/SOURCES/0008-Add-.-to-character-class-for-hostnames-to-accommodat.patch b/SOURCES/0008-Add-.-to-character-class-for-hostnames-to-accommodat.patch new file mode 100644 index 0000000..273cfab --- /dev/null +++ b/SOURCES/0008-Add-.-to-character-class-for-hostnames-to-accommodat.patch @@ -0,0 +1,54 @@ +From 31cc591c2d771f2392eef4cfe354c34f2ccc20f3 Mon Sep 17 00:00:00 2001 +From: Will Yardley +Date: Mon, 20 Mar 2017 15:19:07 -0700 +Subject: [PATCH 08/10] Add '.' to character class for hostnames (to + accommodate FQDNs) (#80) + +--- + scripts/check_rabbitmq_partition | 2 +- + scripts/check_rabbitmq_server | 2 +- + scripts/check_rabbitmq_watermark | 2 +- + 3 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/scripts/check_rabbitmq_partition b/scripts/check_rabbitmq_partition +index 7c9d3a5..0b4336f 100755 +--- a/scripts/check_rabbitmq_partition ++++ b/scripts/check_rabbitmq_partition +@@ -101,7 +101,7 @@ my $nodename = $p->opts->node; + my $rname = $p->opts->rname; + + if (!$nodename) { +- $hostname =~ /^([a-zA-Z0-9-]*)/; ++ $hostname =~ /^([a-zA-Z0-9-.]+)/; + $nodename = $1; + } + +diff --git a/scripts/check_rabbitmq_server b/scripts/check_rabbitmq_server +index 4e47585..b97803c 100755 +--- a/scripts/check_rabbitmq_server ++++ b/scripts/check_rabbitmq_server +@@ -124,7 +124,7 @@ my $nodename = $p->opts->node; + my $rname = $p->opts->rname; + + if (!$nodename) { +- $hostname =~ /^([a-zA-Z0-9-]*)/; ++ $hostname =~ /^([a-zA-Z0-9-.]*)/; + $nodename = $1; + } + +diff --git a/scripts/check_rabbitmq_watermark b/scripts/check_rabbitmq_watermark +index c944dca..0fe4e0b 100755 +--- a/scripts/check_rabbitmq_watermark ++++ b/scripts/check_rabbitmq_watermark +@@ -107,7 +107,7 @@ my $nodename = $p->opts->node; + my $rname = $p->opts->rname; + + if (!$nodename) { +- $hostname =~ /^([a-zA-Z0-9-]*)/; ++ $hostname =~ /^([a-zA-Z0-9-.]*)/; + $nodename = $1; + } + +-- +2.20.1 + diff --git a/SOURCES/0009-check_rabbitmq_cluster-return-correctly-excluded-nod.patch b/SOURCES/0009-check_rabbitmq_cluster-return-correctly-excluded-nod.patch new file mode 100644 index 0000000..83b2097 --- /dev/null +++ b/SOURCES/0009-check_rabbitmq_cluster-return-correctly-excluded-nod.patch @@ -0,0 +1,26 @@ +From b54ee73e18c43a61a6f341eeae745517f7771465 Mon Sep 17 00:00:00 2001 +From: "Thierno IB. BARRY" +Date: Mon, 3 Apr 2017 15:40:12 +0200 +Subject: [PATCH 09/10] check_rabbitmq_cluster: return correctly excluded nodes + (#84) + +--- + scripts/check_rabbitmq_cluster | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/scripts/check_rabbitmq_cluster b/scripts/check_rabbitmq_cluster +index 641a4f4..f9df23c 100755 +--- a/scripts/check_rabbitmq_cluster ++++ b/scripts/check_rabbitmq_cluster +@@ -216,7 +216,7 @@ sub request { + + sub diff { + my ($array_1, $array_2) = (@_); +- return grep { my $baz = $_; grep($_ ne $baz, @$array_2) } @$array_1; ++ return grep { my $baz = $_; !grep{$_ eq $baz} @$array_2; } @$array_1; + } + + =head1 NAME +-- +2.20.1 + diff --git a/SOURCES/0010-Fix-to-handle-shovels-in-connections-list-on-shovel-.patch b/SOURCES/0010-Fix-to-handle-shovels-in-connections-list-on-shovel-.patch new file mode 100644 index 0000000..d845a48 --- /dev/null +++ b/SOURCES/0010-Fix-to-handle-shovels-in-connections-list-on-shovel-.patch @@ -0,0 +1,30 @@ +From bc20bf810660b96a7b24ecdb058a666e941c6cea Mon Sep 17 00:00:00 2001 +From: Olof Mattsson +Date: Thu, 22 Mar 2018 11:40:00 +0100 +Subject: [PATCH 10/10] Fix to handle shovels in connections list on shovel + source server. (#92) + +--- + scripts/check_rabbitmq_connections | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/scripts/check_rabbitmq_connections b/scripts/check_rabbitmq_connections +index d8bcdfd..b059bac 100755 +--- a/scripts/check_rabbitmq_connections ++++ b/scripts/check_rabbitmq_connections +@@ -149,9 +149,9 @@ $values->{'send_rate'} = 0; + for my $connection (@$result) { + if (not defined($p->opts->clientuser) or $p->opts->clientuser eq $connection->{"user"}) { + $values->{'connections'}++; +- $values->{'connections_notrunning'}++ if $connection->{"state"} ne "running"; +- $values->{'receive_rate'} += $connection->{"recv_oct_details"}->{"rate"}; +- $values->{'send_rate'} += $connection->{"send_oct_details"}->{"rate"}; ++ $values->{'connections_notrunning'}++ if ((not defined $connection->{"state"}) || ($connection->{"state"} ne "running")); ++ $values->{'receive_rate'} += $connection->{"recv_oct_details"}->{"rate"} if (defined $connection->{"recv_oct_details"}->{"rate"}); ++ $values->{'send_rate'} += $connection->{"send_oct_details"}->{"rate"} if (defined $connection->{"send_oct_details"}->{"rate"}); + } + } + +-- +2.20.1 + diff --git a/SOURCES/lib-lib64.patch b/SOURCES/lib-lib64.patch new file mode 100644 index 0000000..0ef91f6 --- /dev/null +++ b/SOURCES/lib-lib64.patch @@ -0,0 +1,412 @@ +From 38ea88121d0510ca43f13e925306e7e6d023ead3 Mon Sep 17 00:00:00 2001 +From: Jeremy Cline +Date: Tue, 23 Apr 2019 19:18:44 +0000 +Subject: [PATCH] lib -> lib64 + +--- + Makefile | 4 ++-- + etc/nagios-plugins/config/check_rabbitmq_aliveness.cfg | 4 ++-- + etc/nagios-plugins/config/check_rabbitmq_cluster.cfg | 4 ++-- + etc/nagios-plugins/config/check_rabbitmq_connections.cfg | 4 ++-- + etc/nagios-plugins/config/check_rabbitmq_exchange.cfg | 4 ++-- + etc/nagios-plugins/config/check_rabbitmq_objects.cfg | 4 ++-- + etc/nagios-plugins/config/check_rabbitmq_overview.cfg | 4 ++-- + etc/nagios-plugins/config/check_rabbitmq_partition.cfg | 4 ++-- + etc/nagios-plugins/config/check_rabbitmq_queue.cfg | 4 ++-- + etc/nagios-plugins/config/check_rabbitmq_server.cfg | 4 ++-- + etc/nagios-plugins/config/check_rabbitmq_shovels.cfg | 4 ++-- + etc/nagios-plugins/config/check_rabbitmq_watermark.cfg | 4 ++-- + etc/nagios/nrpe.d/check_rabbitmq_aliveness.cfg | 1 - + etc/nagios/nrpe.d/check_rabbitmq_cluster.cfg | 1 - + etc/nagios/nrpe.d/check_rabbitmq_connections.cfg | 1 - + etc/nagios/nrpe.d/check_rabbitmq_exchange.cfg | 1 - + etc/nagios/nrpe.d/check_rabbitmq_objects.cfg | 1 - + etc/nagios/nrpe.d/check_rabbitmq_overview.cfg | 1 - + etc/nagios/nrpe.d/check_rabbitmq_partition.cfg | 1 - + etc/nagios/nrpe.d/check_rabbitmq_queue.cfg | 1 - + etc/nagios/nrpe.d/check_rabbitmq_server.cfg | 1 - + etc/nagios/nrpe.d/check_rabbitmq_shovels.cfg | 1 - + etc/nagios/nrpe.d/check_rabbitmq_watermark.cfg | 1 - + etc/nrpe.d/check_rabbitmq_aliveness.cfg | 1 + + etc/nrpe.d/check_rabbitmq_cluster.cfg | 1 + + etc/nrpe.d/check_rabbitmq_connections.cfg | 1 + + etc/nrpe.d/check_rabbitmq_exchange.cfg | 1 + + etc/nrpe.d/check_rabbitmq_objects.cfg | 1 + + etc/nrpe.d/check_rabbitmq_overview.cfg | 1 + + etc/nrpe.d/check_rabbitmq_partition.cfg | 1 + + etc/nrpe.d/check_rabbitmq_queue.cfg | 1 + + etc/nrpe.d/check_rabbitmq_server.cfg | 1 + + etc/nrpe.d/check_rabbitmq_shovels.cfg | 1 + + etc/nrpe.d/check_rabbitmq_watermark.cfg | 1 + + 34 files changed, 35 insertions(+), 35 deletions(-) + delete mode 100644 etc/nagios/nrpe.d/check_rabbitmq_aliveness.cfg + delete mode 100644 etc/nagios/nrpe.d/check_rabbitmq_cluster.cfg + delete mode 100644 etc/nagios/nrpe.d/check_rabbitmq_connections.cfg + delete mode 100644 etc/nagios/nrpe.d/check_rabbitmq_exchange.cfg + delete mode 100644 etc/nagios/nrpe.d/check_rabbitmq_objects.cfg + delete mode 100644 etc/nagios/nrpe.d/check_rabbitmq_overview.cfg + delete mode 100644 etc/nagios/nrpe.d/check_rabbitmq_partition.cfg + delete mode 100644 etc/nagios/nrpe.d/check_rabbitmq_queue.cfg + delete mode 100644 etc/nagios/nrpe.d/check_rabbitmq_server.cfg + delete mode 100644 etc/nagios/nrpe.d/check_rabbitmq_shovels.cfg + delete mode 100644 etc/nagios/nrpe.d/check_rabbitmq_watermark.cfg + create mode 100644 etc/nrpe.d/check_rabbitmq_aliveness.cfg + create mode 100644 etc/nrpe.d/check_rabbitmq_cluster.cfg + create mode 100644 etc/nrpe.d/check_rabbitmq_connections.cfg + create mode 100644 etc/nrpe.d/check_rabbitmq_exchange.cfg + create mode 100644 etc/nrpe.d/check_rabbitmq_objects.cfg + create mode 100644 etc/nrpe.d/check_rabbitmq_overview.cfg + create mode 100644 etc/nrpe.d/check_rabbitmq_partition.cfg + create mode 100644 etc/nrpe.d/check_rabbitmq_queue.cfg + create mode 100644 etc/nrpe.d/check_rabbitmq_server.cfg + create mode 100644 etc/nrpe.d/check_rabbitmq_shovels.cfg + create mode 100644 etc/nrpe.d/check_rabbitmq_watermark.cfg + +diff --git a/Makefile b/Makefile +index bb0e70c..5994568 100644 +--- a/Makefile ++++ b/Makefile +@@ -9,8 +9,8 @@ clean: build + @rm -f nagios-plugins-rabbitmq-*.tar.gz RabbitMQ-API-*.tar.gz _build + + install: +- mkdir -p $(DESTDIR)/usr/lib/nagios/plugins-rabbitmq +- cp scripts/* $(DESTDIR)/usr/lib/nagios/plugins-rabbitmq/ ++ mkdir -p $(DESTDIR)/usr/lib64/nagios/plugins-rabbitmq ++ cp scripts/* $(DESTDIR)/usr/lib64/nagios/plugins-rabbitmq/ + rsync -a etc $(DESTDIR) + + test: +diff --git a/etc/nagios-plugins/config/check_rabbitmq_aliveness.cfg b/etc/nagios-plugins/config/check_rabbitmq_aliveness.cfg +index c2c5bb6..96cc0a0 100644 +--- a/etc/nagios-plugins/config/check_rabbitmq_aliveness.cfg ++++ b/etc/nagios-plugins/config/check_rabbitmq_aliveness.cfg +@@ -1,9 +1,9 @@ + define command{ + command_name check_rabbitmq_aliveness +- command_line exec sudo /usr/lib/nagios/plugins/check_rabbitmq_aliveness --extra-opts=$ARG1$ ++ command_line exec sudo /usr/lib64/nagios/plugins/check_rabbitmq_aliveness --extra-opts=$ARG1$ + } + + define command{ + command_name check_rabbitmq_aliveness_by_ssh +- command_line exec ssh $HOSTADDRESS$ sudo /usr/lib/nagios/plugins/check_rabbitmq_aliveness --extra-opts=$ARG1$ ++ command_line exec ssh $HOSTADDRESS$ sudo /usr/lib64/nagios/plugins/check_rabbitmq_aliveness --extra-opts=$ARG1$ + } +diff --git a/etc/nagios-plugins/config/check_rabbitmq_cluster.cfg b/etc/nagios-plugins/config/check_rabbitmq_cluster.cfg +index a302496..f403e77 100644 +--- a/etc/nagios-plugins/config/check_rabbitmq_cluster.cfg ++++ b/etc/nagios-plugins/config/check_rabbitmq_cluster.cfg +@@ -1,9 +1,9 @@ + define command{ + command_name check_rabbitmq_cluster +- command_line exec sudo /usr/lib/nagios/plugins/check_rabbitmq_cluster --extra-opts=$ARG1$ ++ command_line exec sudo /usr/lib64/nagios/plugins/check_rabbitmq_cluster --extra-opts=$ARG1$ + } + + define command{ + command_name check_rabbitmq_cluster_by_ssh +- command_line exec ssh $HOSTADDRESS$ sudo /usr/lib/nagios/plugins/check_rabbitmq_cluster --extra-opts=$ARG1$ ++ command_line exec ssh $HOSTADDRESS$ sudo /usr/lib64/nagios/plugins/check_rabbitmq_cluster --extra-opts=$ARG1$ + } +diff --git a/etc/nagios-plugins/config/check_rabbitmq_connections.cfg b/etc/nagios-plugins/config/check_rabbitmq_connections.cfg +index 95da0d5..15b6419 100644 +--- a/etc/nagios-plugins/config/check_rabbitmq_connections.cfg ++++ b/etc/nagios-plugins/config/check_rabbitmq_connections.cfg +@@ -1,9 +1,9 @@ + define command{ + command_name check_rabbitmq_connections +- command_line exec sudo /usr/lib/nagios/plugins/check_rabbitmq_connections --extra-opts=$ARG1$ ++ command_line exec sudo /usr/lib64/nagios/plugins/check_rabbitmq_connections --extra-opts=$ARG1$ + } + + define command{ + command_name check_rabbitmq_connections_by_ssh +- command_line exec ssh $HOSTADDRESS$ sudo /usr/lib/nagios/plugins/check_rabbitmq_connections --extra-opts=$ARG1$ ++ command_line exec ssh $HOSTADDRESS$ sudo /usr/lib64/nagios/plugins/check_rabbitmq_connections --extra-opts=$ARG1$ + } +diff --git a/etc/nagios-plugins/config/check_rabbitmq_exchange.cfg b/etc/nagios-plugins/config/check_rabbitmq_exchange.cfg +index 11d7a75..bb0dafe 100644 +--- a/etc/nagios-plugins/config/check_rabbitmq_exchange.cfg ++++ b/etc/nagios-plugins/config/check_rabbitmq_exchange.cfg +@@ -1,9 +1,9 @@ + define command{ + command_name check_rabbitmq_exchange +- command_line exec sudo /usr/lib/nagios/plugins/check_rabbitmq_exchange --extra-opts=$ARG1$ --exchange=$ARG2$ --period=$ARG3$ ++ command_line exec sudo /usr/lib64/nagios/plugins/check_rabbitmq_exchange --extra-opts=$ARG1$ --exchange=$ARG2$ --period=$ARG3$ + } + + define command{ + command_name check_rabbitmq_exchange_by_ssh +- command_line exec ssh $HOSTADDRESS$ sudo /usr/lib/nagios/plugins/check_rabbitmq_exchange --extra-opts=$ARG1$ --exchange=$ARG2$ --period=$ARG3$ ++ command_line exec ssh $HOSTADDRESS$ sudo /usr/lib64/nagios/plugins/check_rabbitmq_exchange --extra-opts=$ARG1$ --exchange=$ARG2$ --period=$ARG3$ + } +diff --git a/etc/nagios-plugins/config/check_rabbitmq_objects.cfg b/etc/nagios-plugins/config/check_rabbitmq_objects.cfg +index a577a27..9a15a26 100644 +--- a/etc/nagios-plugins/config/check_rabbitmq_objects.cfg ++++ b/etc/nagios-plugins/config/check_rabbitmq_objects.cfg +@@ -1,9 +1,9 @@ + define command{ + command_name check_rabbitmq_objects +- command_line exec sudo /usr/lib/nagios/plugins/check_rabbitmq_objects --extra-opts=$ARG1$ ++ command_line exec sudo /usr/lib64/nagios/plugins/check_rabbitmq_objects --extra-opts=$ARG1$ + } + + define command{ + command_name check_rabbitmq_objects_by_ssh +- command_line exec ssh $HOSTADDRESS$ sudo /usr/lib/nagios/plugins/check_rabbitmq_objects --extra-opts=$ARG1$ ++ command_line exec ssh $HOSTADDRESS$ sudo /usr/lib64/nagios/plugins/check_rabbitmq_objects --extra-opts=$ARG1$ + } +diff --git a/etc/nagios-plugins/config/check_rabbitmq_overview.cfg b/etc/nagios-plugins/config/check_rabbitmq_overview.cfg +index a02e070..024813f 100644 +--- a/etc/nagios-plugins/config/check_rabbitmq_overview.cfg ++++ b/etc/nagios-plugins/config/check_rabbitmq_overview.cfg +@@ -1,9 +1,9 @@ + define command{ + command_name check_rabbitmq_overview +- command_line exec sudo /usr/lib/nagios/plugins/check_rabbitmq_overview --extra-opts=$ARG1$ ++ command_line exec sudo /usr/lib64/nagios/plugins/check_rabbitmq_overview --extra-opts=$ARG1$ + } + + define command{ + command_name check_rabbitmq_overview_by_ssh +- command_line exec ssh $HOSTADDRESS$ sudo /usr/lib/nagios/plugins/check_rabbitmq_overview --extra-opts=$ARG1$ ++ command_line exec ssh $HOSTADDRESS$ sudo /usr/lib64/nagios/plugins/check_rabbitmq_overview --extra-opts=$ARG1$ + } +diff --git a/etc/nagios-plugins/config/check_rabbitmq_partition.cfg b/etc/nagios-plugins/config/check_rabbitmq_partition.cfg +index eaab2a7..9c0adea 100644 +--- a/etc/nagios-plugins/config/check_rabbitmq_partition.cfg ++++ b/etc/nagios-plugins/config/check_rabbitmq_partition.cfg +@@ -1,9 +1,9 @@ + define command{ + command_name check_rabbitmq_partition +- command_line exec sudo /usr/lib/nagios/plugins/check_rabbitmq_partition --extra-opts=$ARG1$ ++ command_line exec sudo /usr/lib64/nagios/plugins/check_rabbitmq_partition --extra-opts=$ARG1$ + } + + define command{ + command_name check_rabbitmq_partition_by_ssh +- command_line exec ssh $HOSTADDRESS$ sudo /usr/lib/nagios/plugins/check_rabbitmq_partition --extra-opts=$ARG1$ ++ command_line exec ssh $HOSTADDRESS$ sudo /usr/lib64/nagios/plugins/check_rabbitmq_partition --extra-opts=$ARG1$ + } +diff --git a/etc/nagios-plugins/config/check_rabbitmq_queue.cfg b/etc/nagios-plugins/config/check_rabbitmq_queue.cfg +index 3c03b12..9f1bbba 100644 +--- a/etc/nagios-plugins/config/check_rabbitmq_queue.cfg ++++ b/etc/nagios-plugins/config/check_rabbitmq_queue.cfg +@@ -1,9 +1,9 @@ + define command{ + command_name check_rabbitmq_queue +- command_line exec sudo /usr/lib/nagios/plugins/check_rabbitmq_queue --extra-opts=$ARG1$ --queue=$ARG2$ ++ command_line exec sudo /usr/lib64/nagios/plugins/check_rabbitmq_queue --extra-opts=$ARG1$ --queue=$ARG2$ + } + + define command{ + command_name check_rabbitmq_queue_by_ssh +- command_line exec ssh $HOSTADDRESS$ sudo /usr/lib/nagios/plugins/check_rabbitmq_queue --extra-opts=$ARG1$ --queue=$ARG2$ ++ command_line exec ssh $HOSTADDRESS$ sudo /usr/lib64/nagios/plugins/check_rabbitmq_queue --extra-opts=$ARG1$ --queue=$ARG2$ + } +diff --git a/etc/nagios-plugins/config/check_rabbitmq_server.cfg b/etc/nagios-plugins/config/check_rabbitmq_server.cfg +index 0182b1b..5b32810 100644 +--- a/etc/nagios-plugins/config/check_rabbitmq_server.cfg ++++ b/etc/nagios-plugins/config/check_rabbitmq_server.cfg +@@ -1,9 +1,9 @@ + define command{ + command_name check_rabbitmq_server +- command_line exec sudo /usr/lib/nagios/plugins/check_rabbitmq_server --extra-opts=$ARG1$ ++ command_line exec sudo /usr/lib64/nagios/plugins/check_rabbitmq_server --extra-opts=$ARG1$ + } + + define command{ + command_name check_rabbitmq_server_by_ssh +- command_line exec ssh $HOSTADDRESS$ sudo /usr/lib/nagios/plugins/check_rabbitmq_server --extra-opts=$ARG1$ ++ command_line exec ssh $HOSTADDRESS$ sudo /usr/lib64/nagios/plugins/check_rabbitmq_server --extra-opts=$ARG1$ + } +diff --git a/etc/nagios-plugins/config/check_rabbitmq_shovels.cfg b/etc/nagios-plugins/config/check_rabbitmq_shovels.cfg +index 148d7b4..af1d481 100644 +--- a/etc/nagios-plugins/config/check_rabbitmq_shovels.cfg ++++ b/etc/nagios-plugins/config/check_rabbitmq_shovels.cfg +@@ -1,9 +1,9 @@ + define command{ + command_name check_rabbitmq_shovels +- command_line exec sudo /usr/lib/nagios/plugins/check_rabbitmq_shovels --extra-opts=$ARG1$ ++ command_line exec sudo /usr/lib64/nagios/plugins/check_rabbitmq_shovels --extra-opts=$ARG1$ + } + + define command{ + command_name check_rabbitmq_shovels_by_ssh +- command_line exec ssh $HOSTADDRESS$ sudo /usr/lib/nagios/plugins/check_rabbitmq_shovels --extra-opts=$ARG1$ ++ command_line exec ssh $HOSTADDRESS$ sudo /usr/lib64/nagios/plugins/check_rabbitmq_shovels --extra-opts=$ARG1$ + } +diff --git a/etc/nagios-plugins/config/check_rabbitmq_watermark.cfg b/etc/nagios-plugins/config/check_rabbitmq_watermark.cfg +index 14a9e0b..554f9b4 100644 +--- a/etc/nagios-plugins/config/check_rabbitmq_watermark.cfg ++++ b/etc/nagios-plugins/config/check_rabbitmq_watermark.cfg +@@ -1,9 +1,9 @@ + define command{ + command_name check_rabbitmq_watermark +- command_line exec sudo /usr/lib/nagios/plugins/check_rabbitmq_watermark --extra-opts=$ARG1$ ++ command_line exec sudo /usr/lib64/nagios/plugins/check_rabbitmq_watermark --extra-opts=$ARG1$ + } + + define command{ + command_name check_rabbitmq_watermark_by_ssh +- command_line exec ssh $HOSTADDRESS$ sudo /usr/lib/nagios/plugins/check_rabbitmq_watermark --extra-opts=$ARG1$ ++ command_line exec ssh $HOSTADDRESS$ sudo /usr/lib64/nagios/plugins/check_rabbitmq_watermark --extra-opts=$ARG1$ + } +diff --git a/etc/nagios/nrpe.d/check_rabbitmq_aliveness.cfg b/etc/nagios/nrpe.d/check_rabbitmq_aliveness.cfg +deleted file mode 100644 +index 4d4026a..0000000 +--- a/etc/nagios/nrpe.d/check_rabbitmq_aliveness.cfg ++++ /dev/null +@@ -1 +0,0 @@ +-command[check_nrpe_check_rabbitmq_aliveness]=exec /usr/lib/nagios/plugins-rabbitmq/check_rabbitmq_aliveness --extra-opts=$ARG1$ +diff --git a/etc/nagios/nrpe.d/check_rabbitmq_cluster.cfg b/etc/nagios/nrpe.d/check_rabbitmq_cluster.cfg +deleted file mode 100644 +index 45accfa..0000000 +--- a/etc/nagios/nrpe.d/check_rabbitmq_cluster.cfg ++++ /dev/null +@@ -1 +0,0 @@ +-command[check_nrpe_check_rabbitmq_cluster]=exec /usr/lib/nagios/plugins-rabbitmq/check_rabbitmq_cluster --extra-opts=$ARG1$ +diff --git a/etc/nagios/nrpe.d/check_rabbitmq_connections.cfg b/etc/nagios/nrpe.d/check_rabbitmq_connections.cfg +deleted file mode 100644 +index 35d098e..0000000 +--- a/etc/nagios/nrpe.d/check_rabbitmq_connections.cfg ++++ /dev/null +@@ -1 +0,0 @@ +-command[check_nrpe_check_rabbitmq_connections]=exec /usr/lib/nagios/plugins-rabbitmq/check_rabbitmq_connections --extra-opts=$ARG1$ +diff --git a/etc/nagios/nrpe.d/check_rabbitmq_exchange.cfg b/etc/nagios/nrpe.d/check_rabbitmq_exchange.cfg +deleted file mode 100644 +index e374a93..0000000 +--- a/etc/nagios/nrpe.d/check_rabbitmq_exchange.cfg ++++ /dev/null +@@ -1 +0,0 @@ +-command[check_nrpe_check_rabbitmq_exchange]=exec /usr/lib/nagios/plugins-rabbitmq/check_rabbitmq_exchange --extra-opts=$ARG1$ --exchange=$ARG2$ --period=$ARG3$ +diff --git a/etc/nagios/nrpe.d/check_rabbitmq_objects.cfg b/etc/nagios/nrpe.d/check_rabbitmq_objects.cfg +deleted file mode 100644 +index a6f99c7..0000000 +--- a/etc/nagios/nrpe.d/check_rabbitmq_objects.cfg ++++ /dev/null +@@ -1 +0,0 @@ +-command[check_nrpe_check_rabbitmq_objects]=exec /usr/lib/nagios/plugins-rabbitmq/check_rabbitmq_objects --extra-opts=$ARG1$ +diff --git a/etc/nagios/nrpe.d/check_rabbitmq_overview.cfg b/etc/nagios/nrpe.d/check_rabbitmq_overview.cfg +deleted file mode 100644 +index a320ca2..0000000 +--- a/etc/nagios/nrpe.d/check_rabbitmq_overview.cfg ++++ /dev/null +@@ -1 +0,0 @@ +-command[check_nrpe_check_rabbitmq_overview]=exec /usr/lib/nagios/plugins-rabbitmq/check_rabbitmq_overview --extra-opts=$ARG1$ +diff --git a/etc/nagios/nrpe.d/check_rabbitmq_partition.cfg b/etc/nagios/nrpe.d/check_rabbitmq_partition.cfg +deleted file mode 100644 +index 04ac468..0000000 +--- a/etc/nagios/nrpe.d/check_rabbitmq_partition.cfg ++++ /dev/null +@@ -1 +0,0 @@ +-command[check_nrpe_check_rabbitmq_partition]=exec /usr/lib/nagios/plugins-rabbitmq/check_rabbitmq_partition --extra-opts=$ARG1$ +diff --git a/etc/nagios/nrpe.d/check_rabbitmq_queue.cfg b/etc/nagios/nrpe.d/check_rabbitmq_queue.cfg +deleted file mode 100644 +index 4cf8c98..0000000 +--- a/etc/nagios/nrpe.d/check_rabbitmq_queue.cfg ++++ /dev/null +@@ -1 +0,0 @@ +-command[check_nrpe_check_rabbitmq_queue]=exec /usr/lib/nagios/plugins-rabbitmq/check_rabbitmq_queue --extra-opts=$ARG1$ --queue=$ARG2$ +diff --git a/etc/nagios/nrpe.d/check_rabbitmq_server.cfg b/etc/nagios/nrpe.d/check_rabbitmq_server.cfg +deleted file mode 100644 +index 0e4fc27..0000000 +--- a/etc/nagios/nrpe.d/check_rabbitmq_server.cfg ++++ /dev/null +@@ -1 +0,0 @@ +-command[check_nrpe_check_rabbitmq_server]=exec /usr/lib/nagios/plugins-rabbitmq/check_rabbitmq_server --extra-opts=$ARG1$ +diff --git a/etc/nagios/nrpe.d/check_rabbitmq_shovels.cfg b/etc/nagios/nrpe.d/check_rabbitmq_shovels.cfg +deleted file mode 100644 +index 86428fb..0000000 +--- a/etc/nagios/nrpe.d/check_rabbitmq_shovels.cfg ++++ /dev/null +@@ -1 +0,0 @@ +-command[check_nrpe_check_rabbitmq_shovels]=exec /usr/lib/nagios/plugins-rabbitmq/check_rabbitmq_shovels --extra-opts=$ARG1$ +diff --git a/etc/nagios/nrpe.d/check_rabbitmq_watermark.cfg b/etc/nagios/nrpe.d/check_rabbitmq_watermark.cfg +deleted file mode 100644 +index 59c98de..0000000 +--- a/etc/nagios/nrpe.d/check_rabbitmq_watermark.cfg ++++ /dev/null +@@ -1 +0,0 @@ +-command[check_nrpe_check_rabbitmq_watermark]=exec /usr/lib/nagios/plugins-rabbitmq/check_rabbitmq_watermark --extra-opts=$ARG1$ +diff --git a/etc/nrpe.d/check_rabbitmq_aliveness.cfg b/etc/nrpe.d/check_rabbitmq_aliveness.cfg +new file mode 100644 +index 0000000..d1f5527 +--- /dev/null ++++ b/etc/nrpe.d/check_rabbitmq_aliveness.cfg +@@ -0,0 +1 @@ ++command[check_nrpe_check_rabbitmq_aliveness]=exec /usr/lib64/nagios/plugins-rabbitmq/check_rabbitmq_aliveness --extra-opts=$ARG1$ +diff --git a/etc/nrpe.d/check_rabbitmq_cluster.cfg b/etc/nrpe.d/check_rabbitmq_cluster.cfg +new file mode 100644 +index 0000000..b968538 +--- /dev/null ++++ b/etc/nrpe.d/check_rabbitmq_cluster.cfg +@@ -0,0 +1 @@ ++command[check_nrpe_check_rabbitmq_cluster]=exec /usr/lib64/nagios/plugins-rabbitmq/check_rabbitmq_cluster --extra-opts=$ARG1$ +diff --git a/etc/nrpe.d/check_rabbitmq_connections.cfg b/etc/nrpe.d/check_rabbitmq_connections.cfg +new file mode 100644 +index 0000000..64151db +--- /dev/null ++++ b/etc/nrpe.d/check_rabbitmq_connections.cfg +@@ -0,0 +1 @@ ++command[check_nrpe_check_rabbitmq_connections]=exec /usr/lib64/nagios/plugins-rabbitmq/check_rabbitmq_connections --extra-opts=$ARG1$ +diff --git a/etc/nrpe.d/check_rabbitmq_exchange.cfg b/etc/nrpe.d/check_rabbitmq_exchange.cfg +new file mode 100644 +index 0000000..d3c3664 +--- /dev/null ++++ b/etc/nrpe.d/check_rabbitmq_exchange.cfg +@@ -0,0 +1 @@ ++command[check_nrpe_check_rabbitmq_exchange]=exec /usr/lib64/nagios/plugins-rabbitmq/check_rabbitmq_exchange --extra-opts=$ARG1$ --exchange=$ARG2$ --period=$ARG3$ +diff --git a/etc/nrpe.d/check_rabbitmq_objects.cfg b/etc/nrpe.d/check_rabbitmq_objects.cfg +new file mode 100644 +index 0000000..420bcec +--- /dev/null ++++ b/etc/nrpe.d/check_rabbitmq_objects.cfg +@@ -0,0 +1 @@ ++command[check_nrpe_check_rabbitmq_objects]=exec /usr/lib64/nagios/plugins-rabbitmq/check_rabbitmq_objects --extra-opts=$ARG1$ +diff --git a/etc/nrpe.d/check_rabbitmq_overview.cfg b/etc/nrpe.d/check_rabbitmq_overview.cfg +new file mode 100644 +index 0000000..57f2f68 +--- /dev/null ++++ b/etc/nrpe.d/check_rabbitmq_overview.cfg +@@ -0,0 +1 @@ ++command[check_nrpe_check_rabbitmq_overview]=exec /usr/lib64/nagios/plugins-rabbitmq/check_rabbitmq_overview --extra-opts=$ARG1$ +diff --git a/etc/nrpe.d/check_rabbitmq_partition.cfg b/etc/nrpe.d/check_rabbitmq_partition.cfg +new file mode 100644 +index 0000000..713c899 +--- /dev/null ++++ b/etc/nrpe.d/check_rabbitmq_partition.cfg +@@ -0,0 +1 @@ ++command[check_nrpe_check_rabbitmq_partition]=exec /usr/lib64/nagios/plugins-rabbitmq/check_rabbitmq_partition --extra-opts=$ARG1$ +diff --git a/etc/nrpe.d/check_rabbitmq_queue.cfg b/etc/nrpe.d/check_rabbitmq_queue.cfg +new file mode 100644 +index 0000000..b1cce62 +--- /dev/null ++++ b/etc/nrpe.d/check_rabbitmq_queue.cfg +@@ -0,0 +1 @@ ++command[check_nrpe_check_rabbitmq_queue]=exec /usr/lib64/nagios/plugins-rabbitmq/check_rabbitmq_queue --extra-opts=$ARG1$ --queue=$ARG2$ +diff --git a/etc/nrpe.d/check_rabbitmq_server.cfg b/etc/nrpe.d/check_rabbitmq_server.cfg +new file mode 100644 +index 0000000..d6eea57 +--- /dev/null ++++ b/etc/nrpe.d/check_rabbitmq_server.cfg +@@ -0,0 +1 @@ ++command[check_nrpe_check_rabbitmq_server]=exec /usr/lib64/nagios/plugins-rabbitmq/check_rabbitmq_server --extra-opts=$ARG1$ +diff --git a/etc/nrpe.d/check_rabbitmq_shovels.cfg b/etc/nrpe.d/check_rabbitmq_shovels.cfg +new file mode 100644 +index 0000000..333feb3 +--- /dev/null ++++ b/etc/nrpe.d/check_rabbitmq_shovels.cfg +@@ -0,0 +1 @@ ++command[check_nrpe_check_rabbitmq_shovels]=exec /usr/lib64/nagios/plugins-rabbitmq/check_rabbitmq_shovels --extra-opts=$ARG1$ +diff --git a/etc/nrpe.d/check_rabbitmq_watermark.cfg b/etc/nrpe.d/check_rabbitmq_watermark.cfg +new file mode 100644 +index 0000000..c0df615 +--- /dev/null ++++ b/etc/nrpe.d/check_rabbitmq_watermark.cfg +@@ -0,0 +1 @@ ++command[check_nrpe_check_rabbitmq_watermark]=exec /usr/lib64/nagios/plugins-rabbitmq/check_rabbitmq_watermark --extra-opts=$ARG1$ +-- +2.20.1 + diff --git a/SOURCES/nagios-plugins-0002-Remove-assignment-of-not-parsed-to-jitter.patch b/SOURCES/nagios-plugins-0002-Remove-assignment-of-not-parsed-to-jitter.patch new file mode 100644 index 0000000..53579eb --- /dev/null +++ b/SOURCES/nagios-plugins-0002-Remove-assignment-of-not-parsed-to-jitter.patch @@ -0,0 +1,11 @@ +diff -up ./plugins-scripts/check_ntp.pl.not_parsed ./plugins-scripts/check_ntp.pl +--- ./plugins-scripts/check_ntp.pl.not_parsed 2017-01-16 12:24:03.000000000 -0500 ++++ ./plugins-scripts/check_ntp.pl 2017-07-12 15:29:20.311215673 -0400 +@@ -314,7 +314,6 @@ if ($have_ntpq) { + } + } else { + print "No match!\n" if $verbose; +- $jitter = '(not parsed)'; + } + + } diff --git a/SOURCES/nagios-plugins-0007-Fix-the-use-lib-statement-and-the-external-ntp-comma.patch b/SOURCES/nagios-plugins-0007-Fix-the-use-lib-statement-and-the-external-ntp-comma.patch new file mode 100644 index 0000000..1d96cf9 --- /dev/null +++ b/SOURCES/nagios-plugins-0007-Fix-the-use-lib-statement-and-the-external-ntp-comma.patch @@ -0,0 +1,13 @@ +diff -up ./plugins-scripts/utils.pm.in.ext_ntp_cmds ./plugins-scripts/utils.pm.in +--- ./plugins-scripts/utils.pm.in.ext_ntp_cmds 2017-01-16 12:24:03.000000000 -0500 ++++ ./plugins-scripts/utils.pm.in 2017-07-12 15:31:06.154120875 -0400 +@@ -23,6 +23,9 @@ $PATH_TO_LMSTAT = "@PATH_TO_LMSTAT@" ; + $PATH_TO_SMBCLIENT = "@PATH_TO_SMBCLIENT@" ; + $PATH_TO_MAILQ = "@PATH_TO_MAILQ@"; + $PATH_TO_QMAIL_QSTAT = "@PATH_TO_QMAIL_QSTAT@"; ++# Hardcoded values (autotools patch will be provided to the uptream project) ++$PATH_TO_NTPDATE = "/usr/sbin/ntpdate"; ++$PATH_TO_NTPQ = "/usr/sbin/ntpq"; + + ## common variables + $TIMEOUT = 15; diff --git a/SOURCES/nagios-plugins-0012-fix-perl-ntp-ipv6.patch b/SOURCES/nagios-plugins-0012-fix-perl-ntp-ipv6.patch new file mode 100644 index 0000000..871091a --- /dev/null +++ b/SOURCES/nagios-plugins-0012-fix-perl-ntp-ipv6.patch @@ -0,0 +1,28 @@ +diff -up ./plugins-scripts/check_ntp.pl.fix_ipv6 ./plugins-scripts/check_ntp.pl +--- ./plugins-scripts/check_ntp.pl.fix_ipv6 2019-08-29 21:07:13.497504795 +0000 ++++ ./plugins-scripts/check_ntp.pl 2019-08-29 21:11:48.626816686 +0000 +@@ -112,13 +112,23 @@ if (defined $opt_j || defined $opt_k ) { + } + + $opt_H = shift unless ($opt_H); +-my $host = $1 if ($opt_H && $opt_H =~ m/^([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+|[a-zA-Z][-a-zA-Z0-9]+(\.[a-zA-Z][-a-zA-Z0-9]+)*)$/); ++ ++## From https://bugzilla.redhat.com/show_bug.cgi?id=1731468 ++my $host = $opt_H if ($opt_H && ++ ($opt_H =~ m/^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$/ || # IPv4 ++ $opt_H =~ m/^([0-9a-f]{1,4}:){7}([0-9a-f]{1,4})$/i || # IPv6 without :: ++ $opt_H =~ m/^:(:[0-9a-f]{1,4})+$/i || # IPv6 with leading :: ++ $opt_H =~ m/^([0-9a-f]{1,4}:)+:$/i || # IPv6 with trailing :: ++ $opt_H =~ m/^([0-9a-f]{1,4}:)+(:[0-9a-f]{1,4})+$/i || # IPv6 with middle :: ++ $opt_H =~ m/^[a-z0-9][-a-z0-9]*(\.[a-z0-9][-a-z0-9]*)*$/)); # hostnames ++ + unless ($host) { + print "No target host specified\n"; + print_usage(); + exit $ERRORS{'UNKNOWN'}; + } + ++ + my ($timeout, $owarn, $ocrit, $jwarn, $jcrit); + + $timeout = $TIMEOUT; diff --git a/SOURCES/nagios-plugins-check_sip-0001-Fix-for-Nagios-3.x.patch b/SOURCES/nagios-plugins-check_sip-0001-Fix-for-Nagios-3.x.patch new file mode 100644 index 0000000..9e58eba --- /dev/null +++ b/SOURCES/nagios-plugins-check_sip-0001-Fix-for-Nagios-3.x.patch @@ -0,0 +1,38 @@ +From f5599aafb3cac9b25b1739b31827596581f92c2c Mon Sep 17 00:00:00 2001 +From: Joachim Jaeckel +Date: Sun, 16 Sep 2012 09:53:48 +0400 +Subject: [PATCH 1/1] Fix for Nagios 3.x + +https://bugzilla.redhat.com/823859 +--- + check_sip | 14 ++++++++------ + 1 file changed, 8 insertions(+), 6 deletions(-) + +diff --git a/check_sip b/check_sip +index d2b0ecd..71438df 100644 +--- a/check_sip ++++ b/check_sip +@@ -124,12 +124,14 @@ $socket->send($req); + $response=''; + $resend_times++; + # sip retransmission, totally 35.5 seconds. +-switch($resend_times){ +- case 1 { ualarm(500000); } +- case 2 { $TIMEOUT=1; alarm($TIMEOUT); } +- case 3 { $TIMEOUT=2; alarm($TIMEOUT); } +- else { $TIMEOUT=4; alarm($TIMEOUT); } +-} ++if($resend_times==1) ++ { ualarm(500000); } ++elsif($resend_times==2) ++ { $TIMEOUT=1; alarm($TIMEOUT); } ++elsif ($resend_times==3) ++ { $TIMEOUT=2; alarm($TIMEOUT); } ++else ++ { $TIMEOUT=4; alarm($TIMEOUT); } + #print $resend_times."->".$Total_timeout." $TIMEOUT\n"; + $socket->recv($response, 1024) or $state = 'CRITICAL'; # TODO: CHECK and show '503 Service Unavailable' when receiving unreachable ICMP packet. + #get rid of the 100 Trying - provisional response ... +-- +1.7.12 + diff --git a/SOURCES/nagios-plugins.README.PowerEL b/SOURCES/nagios-plugins.README.PowerEL new file mode 100644 index 0000000..b415e66 --- /dev/null +++ b/SOURCES/nagios-plugins.README.PowerEL @@ -0,0 +1,7 @@ +PowerEL Users + +Nagios plugins for PowerEL have all been packaged separately. +For example, to install the check_http just install nagios-plugins-http. + +All plugins are installed in the architecture dependent directory +/usr/lib{,64}/nagios/plugins/. diff --git a/SPECS/nagios-plugins-bonding.spec b/SPECS/nagios-plugins-bonding.spec new file mode 100644 index 0000000..9cee98f --- /dev/null +++ b/SPECS/nagios-plugins-bonding.spec @@ -0,0 +1,112 @@ +# Name of the plugin +%global plugin check_linux_bonding + +# No binaries here, do not build a debuginfo package. This is a binary +# package on RHEL/Fedora because it depends on %_libdir which is arch +# dependent +%global debug_package %{nil} + +Name: nagios-plugins-bonding +Version: 1.4 +Release: 14%{?dist} +Summary: Nagios plugin to monitor Linux bonding interfaces + +License: GPLv3+ +URL: http://folk.uio.no/trondham/software/%{plugin}.html +Source0: http://folk.uio.no/trondham/software/files/%{plugin}-%{version}.tar.gz + +# Since we're also building for RHEL5 + +# Building requires Docbook XML +BuildRequires: libxslt +BuildRequires: libxml2 +BuildRequires: docbook-style-xsl +BuildRequires: perl-generators + +# Owns the nagios plugins directory +%if 0%{?rhel} > 5 || 0%{?fedora} > 18 +Requires: nagios-common +%else +Requires: nagios-plugins +%endif + +# Makes the transition to new package name easier for existing +# users of RPM packages +Provides: check_linux_bonding = %{version}-%{release} +Obsoletes: check_linux_bonding < 1.3.2 + +%description +This package contains check_linux_bonding, which is a plugin for +Nagios that checks bonding network interfaces on Linux. The plugin +will report any interfaces that are down (both masters and slaves), as +well as other aspects which may point to a problem with bonded +interfaces. + +%prep +%setup -q -n %{plugin}-%{version} + +%build +%if 0%{?rhel} > 5 || 0%{?fedora} > 18 +pushd man +make clean && make +popd +%else +: # use pre-built man-pages on old systems +%endif + +%install +rm -rf %{buildroot} +install -Dp -m 0755 %{plugin} %{buildroot}%{_libdir}/nagios/plugins/%{plugin} +install -Dp -m 0644 man/%{plugin}.8 %{buildroot}%{_mandir}/man8/%{plugin}.8 + +%files +%doc COPYING CHANGES +%{_libdir}/nagios/plugins/%{plugin} +%{_mandir}/man8/%{plugin}.8* + + +%changelog +* Wed Jan 29 2020 Fedora Release Engineering - 1.4-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Jul 25 2019 Fedora Release Engineering - 1.4-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri Feb 01 2019 Fedora Release Engineering - 1.4-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 1.4-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Thu Feb 08 2018 Fedora Release Engineering - 1.4-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Aug 03 2017 Fedora Release Engineering - 1.4-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 1.4-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 1.4-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 1.4-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jun 17 2015 Fedora Release Engineering - 1.4-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sun Aug 17 2014 Fedora Release Engineering - 1.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Mon Jul 28 2014 Trond Hasle Amundsen - 1.4-3 +- Fix specfile bug that resulted in wrong requires for ownership of + the nagios plugins directory +- Conditionalize building man pages for rhel6+ and fedora19+ (others + will use pre-built man pages) + +* Sat Jun 07 2014 Fedora Release Engineering - 1.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Tue May 13 2014 Trond Hasle Amundsen - 1.4-1 +- Upstream release 1.4 diff --git a/SPECS/nagios-plugins-check-updates.spec b/SPECS/nagios-plugins-check-updates.spec new file mode 100644 index 0000000..b8af9f1 --- /dev/null +++ b/SPECS/nagios-plugins-check-updates.spec @@ -0,0 +1,249 @@ +%define plugin check_updates +%define nagiospluginsdir %{_libdir}/nagios/plugins + +# No binaries in this package +%define debug_package %{nil} + +Name: nagios-plugins-check-updates +Version: 1.7.10 +Release: 2%{?dist} +Summary: A Nagios plugin to check if Red Hat or Fedora system is up-to-date + +License: GPLv3+ +URL: https://github.com/matteocorti/check_updates +Source: https://github.com/matteocorti/check_updates/releases/download/v%{version}/check_updates-%{version}.tar.gz + + +BuildRequires: perl-generators +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Test::More) +BuildRequires: perl(Module::Install) +BuildRequires: perl(Monitoring::Plugin) +BuildRequires: perl(Readonly) + +Requires: nagios-plugins +Requires: which +# Yum security plugin: +# Fedora >= 19 : yum-plugin-security (is now provided by the yum package) +# Fedora <= 18 : yum-plugin-security (yum-utils subpackage; also provides yum-security) +# Red Hat Enterprise 6 : yum-plugin-security (yum-utils subpackage; also provides yum-security) +# Red Hat Enterprise 5 : yum-security (yum-utils subpackage) +# Red Hat Enterprise 8+: + +%if (0%{?rhel} && 0%{?rhel} < 8) || (0%{?fedora} && 0%{?fedora} < 31) +Requires: yum-plugin-security +%endif + +Requires: perl(Monitoring::Plugin) + +Obsoletes: check_updates < 1.4.11 + +%description +%{summary}. + + +%prep +%setup -q -n %{plugin}-%{version} +# Remove bundled modules +rm -r ./inc/* +sed -i -e '/^inc\//d' MANIFEST + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor \ + INSTALLSCRIPT=%{nagiospluginsdir} \ + INSTALLVENDORSCRIPT=%{nagiospluginsdir} +make %{?_smp_mflags} + +%install +rm -rf %{buildroot} +make pure_install PERL_INSTALL_ROOT=%{buildroot} +find %{buildroot} -type f -name .packlist -exec rm -f {} \; +find %{buildroot} -type f -name "*.pod" -exec rm -f {} \; +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; +%{_fixperms} %{buildroot}/* + +%check +make test + + +%files +%doc AUTHORS Changes NEWS README.md TODO COPYING COPYRIGHT +%{nagiospluginsdir}/* +%{_mandir}/man1/*.1* + + +%changelog +* Thu May 07 2020 Martin Jackson - 1.7.10-2 +- Fix date + +* Thu May 07 2020 Martin Jackson - 1.7.10-1 +- Remove bundled libs +- New version + +* Thu Feb 27 2020 Martin Jackson - 1.7.9-1 +- Update to latest release, fix bz#1808156; remove bundled lib fixup + +* Wed Jan 29 2020 Fedora Release Engineering - 1.7.8-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Jan 23 2020 Piotr Popieluch - 1.7.8-2 +- Remove bundled libraries + +* Sat Jan 18 2020 Piotr Popieluch - 1.7.8-1 +- Update to 1.7.8 +- Add version to Obsoletes: + +* Mon Dec 2 2019 Martin Jackson - 1.6.23-4 +- Conditionalize yum Requires + +* Thu Jul 25 2019 Fedora Release Engineering - 1.6.23-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri Feb 01 2019 Fedora Release Engineering - 1.6.23-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sun Jul 29 2018 Piotr Popieluch - 1.6.23-1 +- Add Module::Install to BR to fix rhbz#1583366 + +* Fri Jul 13 2018 Fedora Release Engineering - 1.6.19-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Thu Feb 08 2018 Fedora Release Engineering - 1.6.19-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Aug 03 2017 Fedora Release Engineering - 1.6.19-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 1.6.19-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 1.6.19-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Jan 5 2017 Jose Pedro Oliveira - 1.6.19-1 +- Update to 1.6.19. + +* Sat Sep 3 2016 Jose Pedro Oliveira - 1.6.18-2 +- Add missing requirement: perl(Monitoring::Plugin) + +* Wed Jun 1 2016 Jose Pedro Oliveira - 1.6.18-1 +- Update to 1.6.18. + +* Sun May 29 2016 Jose Pedro Oliveira - 1.6.17-1 +- Update to 1.6.17. + +* Mon Apr 18 2016 Jose Pedro Oliveira - 1.6.16-1 +- Update to 1.6.16. + +* Sun Feb 07 2016 Jose Pedro Oliveira - 1.6.15-1 +- Update to 1.6.15. + +* Thu Feb 04 2016 Fedora Release Engineering - 1.6.12-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Mon Dec 28 2015 Jose Pedro Oliveira - 1.6.12-2 +- Upstream project moved to github +- Upstream is now using git instead of subversion +- Version 1.6.12 tarball in github has slightly different content + +* Sat Sep 19 2015 Jose Pedro Oliveira - 1.6.12-1 +- Update to 1.6.12. +- Initial support for DNF. + +* Wed Jun 17 2015 Fedora Release Engineering - 1.6.10-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Mon Feb 16 2015 Jose Pedro Oliveira - 1.6.10-1 +- Update to 1.6.10. +- It now requires perl(Monitoring::Plugin). + +* Tue Feb 10 2015 Jose Pedro Oliveira - 1.6.9-1 +- Update to 1.6.9. +- No longer requires perl(Sort::Versions). +- Ship the version.pm file from check-updates 1.6.7 (temporary). + +* Sun Aug 17 2014 Fedora Release Engineering - 1.6.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Mon Jun 23 2014 Jose Pedro Oliveira - 1.6.7-1 +- Update to 1.6.7. + +* Sat Jun 07 2014 Fedora Release Engineering - 1.6.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Fri Oct 11 2013 Jose Pedro Oliveira - 1.6.6-1 +- Update to 1.6.6. + +* Sat Aug 03 2013 Fedora Release Engineering - 1.6.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Jul 18 2013 Jose Pedro Oliveira - 1.6.5-1 +- Update to 1.6.5. + +* Wed Jun 19 2013 Jose Pedro Oliveira - 1.6.4-1 +- Update to 1.6.4. + +* Sat May 25 2013 Jose Pedro Oliveira - 1.6.3-2 +- Fedora 19: yum-plugin-security is now provided by the yum package + (and the yum-security virtual provide was dropped) (#967225). + +* Wed May 15 2013 Jose Pedro Oliveira - 1.6.3-1 +- Update to 1.6.3. + +* Sat Mar 30 2013 Jose Pedro Oliveira - 1.6.2-1 +- Update to 1.6.2. + +* Thu Feb 14 2013 Fedora Release Engineering - 1.6.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Mon Dec 10 2012 Jose Pedro Oliveira - 1.6.1-1 +- Update to 1.6.1. + +* Fri Jul 20 2012 Fedora Release Engineering - 1.6.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Mon Apr 16 2012 Jose Pedro Oliveira - 1.6.0-1 +- Update to 1.6.0. + +* Fri Jan 13 2012 Fedora Release Engineering - 1.5.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Dec 5 2011 Jose Pedro Oliveira - 1.5.2-1 +- Update to 1.5.2. + +* Sat Dec 3 2011 Jose Pedro Oliveira - 1.5.1-1 +- Update to 1.5.1. + +* Tue Oct 4 2011 Jose Pedro Oliveira - 1.5.0-1 +- Update to 1.5.0. + +* Wed May 25 2011 Jose Pedro Oliveira - 1.4.14-1 +- Update to 1.4.14. + +* Tue May 24 2011 Jose Pedro Oliveira - 1.4.13-1 +- Update to 1.4.13. +- Fixes a build problem in EPEL5 (test script failure). + +* Tue May 24 2011 Jose Pedro Oliveira - 1.4.12-1 +- Update to 1.4.12. +- Upstream added a test suite. + +* Tue Feb 08 2011 Fedora Release Engineering - 1.4.11-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Thu Nov 18 2010 Jose Pedro Oliveira - 1.4.11-1 +- Update to 1.4.11. + +* Mon Nov 1 2010 Jose Pedro Oliveira - 1.4.9-1 +- Update to 1.4.9 (solves the EPEL5 build problem). + +* Sun Oct 31 2010 Jose Pedro Oliveira - 1.4.8-1 +- Update to 1.4.8 (license clarification). + +* Thu Feb 18 2010 Jose Pedro Oliveira - 1.4.7-1 +- Update to 1.4.7. + +* Thu Dec 10 2009 Jose Pedro Oliveira - 1.4.6-1 +- First build for Fedora and EPEL. + +# vim:set ai ts=4 sw=4 sts=4 et: diff --git a/SPECS/nagios-plugins-check_sip.spec b/SPECS/nagios-plugins-check_sip.spec new file mode 100644 index 0000000..ac0470e --- /dev/null +++ b/SPECS/nagios-plugins-check_sip.spec @@ -0,0 +1,122 @@ +%global debug_package %{nil} + +Summary: A Nagios plugin to check SIP servers and devices +Name: nagios-plugins-check_sip +Version: 1.3 +Release: 8%{?dist} +License: GPLv2+ +Group: Applications/System +URL: http://bashton.com/osprojects/nagiosplugins/ +Source0: http://www.bashton.com/downloads/nagios-check_sip-%{version}.tar.gz +# Fix for Nagios 3.x - https://bugzilla.redhat.com/823859 +Patch1: nagios-plugins-check_sip-0001-Fix-for-Nagios-3.x.patch +Requires: nagios-plugins +Requires: nagios-plugins-perl +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +%description +A Nagios plugin that will test a SIP server/device for availability and +response time. + +%prep +%setup -q -n nagios-check_sip-%{version} +# lib64 fix +perl -pi -e "s|/usr/lib64|%{_libdir}|g" check_sip +%if 0%{?el6}%{?fedora} +%patch1 -p1 -b .nagios3x +%endif + +%build + +%install +rm -rf %{buildroot} +install -D -p -m 0755 check_sip %{buildroot}%{_libdir}/nagios/plugins/check_sip + +%clean +rm -rf %{buildroot} + +%files +%doc README COPYING CHANGES +%{_libdir}/nagios/plugins/check_sip + +%changelog +* Sat Jun 07 2014 Fedora Release Engineering - 1.3-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sat Aug 03 2013 Fedora Release Engineering - 1.3-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Wed Jul 17 2013 Petr Pisar - 1.3-6 +- Perl 5.18 rebuild + +* Thu Feb 14 2013 Fedora Release Engineering - 1.3-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Sun Sep 16 2012 Peter Lemenkov - 1.3-4 +- Fixed work with Nagios 3.x (thanks, Joachim Jaeckel) + +* Fri Jul 20 2012 Fedora Release Engineering - 1.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Tue May 22 2012 Peter Lemenkov - 1.3-2 +- Fixed typo (see rhbz #823859) + +* Sun May 06 2012 Peter Lemenkov - 1.3-1 +- Ver. 1.3 (bugfix release) + +* Fri Jan 13 2012 Fedora Release Engineering - 1.2-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Feb 08 2011 Fedora Release Engineering - 1.2-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Sat Jul 25 2009 Fedora Release Engineering - 1.2-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Feb 25 2009 Fedora Release Engineering - 1.2-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Tue Oct 7 2008 Peter Lemenkov 1.2-5 +- Small changes due to Rakesh Pandit's sugestions + +* Tue Sep 30 2008 Peter Lemenkov 1.2-4 +- Fixed project's URL +- Removed unnecessary explicit "Provides:" + +* Sat Aug 23 2008 Peter Lemenkov 1.2-3 +- Cleanups + +* Sun Aug 10 2008 Peter Lemenkov 1.2-2 +- Fixed issue with multiarch + +* Fri May 16 2008 Peter Lemenkov 1.2-1 +-Initial package for Fedora/EPEL +V +* Tue Feb 19 2008 Oden Eriksson 1.1-1mdv2008.1 ++ Revision: 173081 +- 1.1 + + + Olivier Blin + - restore BuildRoot + + + Thierry Vignaud + - kill re-definition of %%buildroot on Pixel's request + +* Tue Apr 17 2007 Oden Eriksson 1.01-3mdv2008.0 ++ Revision: 13796 +- use the new /etc/nagios/plugins.d scandir + + +* Wed Nov 15 2006 Oden Eriksson 1.01-2mdv2007.0 ++ Revision: 84577 +- Import nagios-check_sip + +* Thu Aug 10 2006 Oden Eriksson 1.01-2mdk +- disable debug packages + +* Thu Apr 06 2006 Oden Eriksson 1.01-1mdk +- 1.01 + +* Sun Jul 31 2005 Oden Eriksson 1.0-1mdk +- initial Mandriva package + diff --git a/SPECS/nagios-plugins-openmanage.spec b/SPECS/nagios-plugins-openmanage.spec new file mode 100644 index 0000000..de9fd3a --- /dev/null +++ b/SPECS/nagios-plugins-openmanage.spec @@ -0,0 +1,292 @@ +# Name of the plugin +%global plugin check_openmanage + +# No binaries here, do not build a debuginfo package +%global debug_package %{nil} + +Name: nagios-plugins-openmanage +Version: 3.7.12 +Release: 1%{?dist} +Summary: Nagios plugin to monitor hardware health on Dell servers + +License: GPLv3+ +URL: http://folk.uio.no/trondham/software/%{plugin}.html +Source0: http://folk.uio.no/trondham/software/files/%{plugin}-%{version}.tar.gz + + +# Building requires Docbook XML +BuildRequires: libxslt +BuildRequires: libxml2 +BuildRequires: docbook-style-xsl +BuildRequires: perl-generators + +# Rpmbuild doesn't find these perl dependencies +Requires: perl(Config::Tiny) +Requires: perl(Net::SNMP) + +# Owns the nagios plugins directory +%if 0%{?rhel} > 5 || 0%{?fedora} > 18 +Requires: nagios-common +%else +Requires: nagios-plugins +%endif + +# Make the transition to Fedora/EPEL packages easier for existing +# users of the non-Fedora/EPEL RPM packages +Provides: nagios-plugins-check-openmanage = %{version}-%{release} +Obsoletes: nagios-plugins-check-openmanage < 3.7.2-3 + +%description +check_openmanage is a plugin for Nagios which checks the hardware +health of Dell servers running OpenManage Server Administrator +(OMSA). The plugin can be used remotely with SNMP or locally with +NRPE, check_by_ssh or similar, whichever suits your needs and +particular taste. The plugin checks the health of the storage +subsystem, power supplies, memory modules, temperature probes etc., +and gives an alert if any of the components are faulty or operate +outside normal parameters. + +%prep +%setup -q -n %{plugin}-%{version} +rm -f %{plugin}.exe + +%build +%if 0%{?rhel} > 5 || 0%{?fedora} > 18 +pushd man +make clean && make +popd +%else +: # use pre-built man-pages on old systems +%endif + +%install +rm -rf %{buildroot} +install -Dp -m 0755 %{plugin} %{buildroot}%{_libdir}/nagios/plugins/%{plugin} +install -Dp -m 0644 man/%{plugin}.8 %{buildroot}%{_mandir}/man8/%{plugin}.8 +install -Dp -m 0644 man/%{plugin}.conf.5 %{buildroot}%{_mandir}/man5/%{plugin}.conf.5 + +%files +%doc README COPYING CHANGES example.conf +%{_libdir}/nagios/plugins/%{plugin} +%{_mandir}/man8/%{plugin}.8* +%{_mandir}/man5/%{plugin}.conf.5* + + +%changelog +* Mon Jul 28 2014 Trond Hasle Amundsen - 3.7.12-1 +- Upstream release 3.7.12 +- Conditionalize building man pages for rhel6+ and fedora19+ (others + will use pre-built man pages) +- Conditionalize require nagios-common (rhel6+/fedora19+) or + nagios-plugins (others) for owner of the plugins directory +- Drop perl(Crypt::Rijndael) requirement, as it provides optional and + very rarely used functionality + +* Sat Jun 07 2014 Fedora Release Engineering - 3.7.11-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Tue Aug 6 2013 Trond Hasle Amundsen - 3.7.11-1 +- Upstream release 3.7.11 + +* Sat Aug 03 2013 Petr Pisar - 3.7.10-2 +- Perl 5.18 rebuild + +* Fri Jul 19 2013 Trond Hasle Amundsen - 3.7.10-1 +- Upstream release 3.7.10 + +* Wed Jul 17 2013 Petr Pisar - 3.7.9-3 +- Perl 5.18 rebuild + +* Thu Feb 14 2013 Fedora Release Engineering - 3.7.9-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Thu Jan 10 2013 Trond Hasle Amundsen - 3.7.9-1 +- Upstream release 3.7.9 + +* Wed Dec 12 2012 Trond Hasle Amundsen - 3.7.8-1 +- Upstream release 3.7.8 + +* Thu Dec 6 2012 Trond Hasle Amundsen - 3.7.7-1 +- Upstream release 3.7.7 + +* Fri Jul 20 2012 Fedora Release Engineering - 3.7.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Thu Jun 28 2012 Trond Hasle Amundsen - 3.7.6-1 +- Upstream release 3.7.6 +- Changes to build section and buildrequires for new manpage format + +* Fri Apr 13 2012 Trond Hasle Amundsen - 3.7.5-1 +- Upstream version 3.7.5 + +* Fri Jan 13 2012 Fedora Release Engineering - 3.7.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Nov 28 2011 Trond Hasle Amundsen - 3.7.3-3 +- Provide example config file as documentation rather than installing + it under /etc/nagios +- Remove win32 binary in prep section + +* Tue Nov 15 2011 Trond Hasle Amundsen - 3.7.3-2 +- Spec file changes which address issues raised in rhbz#743615 + +* Wed Oct 5 2011 Trond Hasle Amundsen - 3.7.3-1 +- Version 3.7.3 +- RPM name changed to nagios-plugins-openmanage +- Added obsoletes for old name + +* Tue Sep 27 2011 Xavier Bachelot - 3.7.2-2 +- Add a commented configuration file. +- Add some Requires to have all features out of the box. +- Add Requires on nagios-plugins for %%{_libdir}/nagios/plugins directory. +- Remove some useless command macros. +- Fix Obsoletes/Provides. + +* Mon Sep 19 2011 Trond Hasle Amundsen - 3.7.2-1 +- Version 3.7.2 + +* Mon Aug 22 2011 Trond Hasle Amundsen - 3.7.1-1 +- Version 3.7.1 + +* Mon Aug 15 2011 Trond Hasle Amundsen - 3.7.0-1 +- Version 3.7.0 + +* Mon Jun 06 2011 Trond Hasle Amundsen - 3.6.8-1 +- Version 3.6.8 + +* Thu May 12 2011 Trond Hasle Amundsen - 3.6.7-1 +- Version 3.6.7 + +* Thu Apr 28 2011 Trond Hasle Amundsen - 3.6.6-1 +- Version 3.6.6 + +* Wed Feb 9 2011 Trond Hasle Amundsen - 3.6.5-1 +- Version 3.6.5 + +* Tue Jan 4 2011 Trond Hasle Amundsen - 3.6.4-2 +- Don't compress the man page, rpmbuild takes care of that. Thanks to + Jose Pedro Oliveira for a patch that fixes this. + +* Tue Jan 4 2011 Trond Hasle Amundsen - 3.6.4-1 +- Version 3.6.4 +- Initial build with new spec file +- Spec file adapted to Fedora/EPEL standards + +* Mon Dec 13 2010 Trond Hasle Amundsen - 3.6.3-1 +- Version 3.6.3 + +* Thu Nov 25 2010 Trond Hasle Amundsen - 3.6.2-1 +- Version 3.6.2 + +* Tue Nov 2 2010 Trond Hasle Amundsen - 3.6.1-1 +- Version 3.6.1 + +* Mon Aug 30 2010 Trond Hasle Amundsen - 3.6.0-1 +- Version 3.6.0 + +* Wed Jul 14 2010 Trond Hasle Amundsen - 3.5.10-1 +- Version 3.5.10 + +* Tue Jun 29 2010 Trond Hasle Amundsen - 3.5.9-1 +- Version 3.5.9 + +* Thu Jun 17 2010 Trond Hasle Amundsen - 3.5.8-1 +- Version 3.5.8 + +* Fri Mar 19 2010 Trond Hasle Amundsen - 3.5.7-1 +- Version 3.5.7 + +* Tue Feb 23 2010 Trond Hasle Amundsen - 3.5.6-1 +- Version 3.5.6 + +* Fri Jan 22 2010 Trond Hasle Amundsen - 3.5.5-1 +- Version 3.5.5 + +* Wed Jan 13 2010 Trond Hasle Amundsen - 3.5.4-1 +- Version 3.5.4 + +* Thu Dec 17 2009 Trond Hasle Amundsen - 3.5.3-1 +- Version 3.5.3 + +* Tue Nov 17 2009 Trond Hasle Amundsen - 3.5.2-1 +- Version 3.5.2 + +* Thu Oct 22 2009 Trond Hasle Amundsen - 3.5.1-1 +- Version 3.5.1 + +* Tue Oct 13 2009 Trond Hasle Amundsen - 3.5.0-1 +- Version 3.5.0 +- New location for the manual page (section 3 -> 8) + +* Fri Aug 7 2009 Trond Hasle Amundsen - 3.4.9-1 +- Version 3.4.9 + +* Fri Jul 31 2009 Trond Hasle Amundsen - 3.4.8-1 +- Version 3.4.8 + +* Fri Jul 24 2009 Trond Hasle Amundsen - 3.4.7-1 +- Version 3.4.7 + +* Tue Jul 7 2009 Trond Hasle Amundsen - 3.4.6-1 +- Version 3.4.6 + +* Mon Jun 22 2009 Trond Hasle Amundsen - 3.4.5-1 +- Version 3.4.5 + +* Mon Jun 22 2009 Trond Hasle Amundsen - 3.4.4-1 +- Version 3.4.4 + +* Thu Jun 11 2009 Trond Hasle Amundsen - 3.4.3-1 +- Version 3.4.3 + +* Wed Jun 3 2009 Trond Hasle Amundsen - 3.4.2-1 +- Version 3.4.2 + +* Wed May 27 2009 Trond Hasle Amundsen - 3.4.1-1 +- Version 3.4.1 + +* Mon May 25 2009 Trond Hasle Amundsen - 3.4.0-1 +- Version 3.4.0 + +* Tue May 5 2009 Trond Hasle Amundsen - 3.3.2-1 +- Version 3.3.2 + +* Tue Apr 28 2009 Trond Hasle Amundsen - 3.3.1-1 +- Version 3.3.1 + +* Tue Apr 7 2009 Trond Hasle Amundsen - 3.3.0-1 +- Version 3.3.0 + +* Sun Mar 29 2009 Trond Hasle Amundsen - 3.2.7-1 +- Version 3.2.7 + +* Thu Mar 5 2009 Trond Hasle Amundsen - 3.2.6-1 +- Version 3.2.6 + +* Tue Feb 24 2009 Trond Hasle Amundsen - 3.2.5-1 +- Version 3.2.5 +- take 64bit (other libdir) into consideration + +* Tue Feb 17 2009 Trond Hasle Amundsen - 3.2.4-1 +- Version 3.2.4 + +* Mon Feb 9 2009 Trond Hasle Amundsen - 3.2.3-1 +- Version 3.2.3 + +* Tue Feb 3 2009 Trond Hasle Amundsen - 3.2.2-1 +- Version 3.2.2 + +* Tue Feb 3 2009 Trond Hasle Amundsen - 3.2.1-1 +- Version 3.2.1 + +* Tue Jan 27 2009 Trond Hasle Amundsen - 3.2.0-1 +- Version 3.2.0 + +* Sat Dec 20 2008 Trond Hasle Amundsen - 3.0.2-1 +- Version 3.0.2 + +* Thu Dec 4 2008 Trond Hasle Amundsen - 3.0.0-1 +- Version 3.0.0 + +* Wed Nov 19 2008 Trond Hasle Amundsen - 2.1.0-0 +- first RPM release diff --git a/SPECS/nagios-plugins-rabbitmq.spec b/SPECS/nagios-plugins-rabbitmq.spec new file mode 100644 index 0000000..e2598b8 --- /dev/null +++ b/SPECS/nagios-plugins-rabbitmq.spec @@ -0,0 +1,72 @@ + +Name: nagios-plugins-rabbitmq +Version: 2.0.3 +Release: 1%{?dist} +Summary: Nagios scripts for RabbitMQ + +License: ASL 2.0 +URL: https://github.com/nagios-plugins-rabbitmq/nagios-plugins-rabbitmq/ +Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz +BuildArch: noarch +Patch0: 0001-track-codes-in-all-cases-66.patch +Patch1: 0002-don-t-rise-critical-error-when-used-is-0.patch +Patch2: 0003-Improve-the-cluster-check-script-to-make-more-nagios.patch +Patch3: 0004-Update-check_rabbitmq_cluster.cfg-74.patch +Patch4: 0005-If-a-queue-is-not-found-report-an-UNKNOWN-status-75.patch +Patch5: 0006-Add-descriptive-text-about-the-order-of-thresholds-8.patch +Patch6: 0007-minor-docs-fixes-79.patch +Patch7: 0008-Add-.-to-character-class-for-hostnames-to-accommodat.patch +Patch8: 0009-check_rabbitmq_cluster-return-correctly-excluded-nod.patch +Patch9: 0010-Fix-to-handle-shovels-in-connections-list-on-shovel-.patch +Patch10: lib-lib64.patch + +BuildRequires: rsync +BuildRequires: perl(Test::More) +BuildRequires: perl(Test::Script) +BuildRequires: perl(Module::Build) +BuildRequires: perl(Monitoring::Plugin) +BuildRequires: perl(LWP::UserAgent) +BuildRequires: perl(URI::Escape) +BuildRequires: perl(JSON) +BuildRequires: perl(Data::Dumper) +BuildRequires: perl(Pod::Usage) +BuildRequires: perl(Getopt::Long) +Requires: perl(Monitoring::Plugin) +Requires: perl(LWP::UserAgent) +Requires: perl(URI::Escape) +Requires: perl(JSON) +Requires: perl(Data::Dumper) +Requires: perl(Pod::Usage) +Requires: perl(Getopt::Long) + + +%description +This package contains a set of nagios checks useful for monitoring a +RabbitMQ server. They use the RabbitMQ management interface over HTTP +and therefore have a very light profile on the Nagios server. + + +%prep +%autosetup -p1 -n %{name}-%{version} + + + +%build +make %{?_smp_mflags} build + + +%install +%make_install + + +%files +%doc README.md +%license LICENSE.txt +%{_sysconfdir}/nagios-plugins/config/* +%{_sysconfdir}/nrpe.d/* +/usr/lib64/nagios/plugins-rabbitmq/* + + +%changelog +* Tue Apr 23 2019 Jeremy Cline - 2.0.3-1 +- Initial package diff --git a/SPECS/nagios-plugins-snmp-disk-proc.spec b/SPECS/nagios-plugins-snmp-disk-proc.spec new file mode 100644 index 0000000..1419e6d --- /dev/null +++ b/SPECS/nagios-plugins-snmp-disk-proc.spec @@ -0,0 +1,154 @@ +%global nagios_plugins_dir %{_libdir}/nagios/plugins + +Name: nagios-plugins-snmp-disk-proc +Version: 1.3.1 +Release: 14%{?dist} +Summary: Nagios SNMP plugins to monitor remote disk and processes +# Version intent from README +License: GPLv2 +URL: https://github.com/glensc/nagios-snmp-plugins/ +Source0: https://github.com/glensc/nagios-snmp-plugins/releases/download/%{version}/nagios-snmp-plugins-%{version}.tar.gz +BuildRequires: make +BuildRequires: gcc +BuildRequires: autoconf, automake +BuildRequires: net-snmp-devel +BuildRequires: openssl-devel +# BuildRequires: tcp_wrappers-devel +Requires: nagios-plugins +Provides: nagios-snmp-plugins = %{version}-%{release} + +%description +These plugins allow you to monitor disk space and running processes on +a remote machine via SNMP. + +%prep +%setup -q -n nagios-snmp-plugins-%{version} + +%build +touch ChangeLog +aclocal +autoheader +automake --add-missing +autoconf +%configure +make %{?_smp_mflags} + +%install +install -d -m 755 $RPM_BUILD_ROOT/%{nagios_plugins_dir} +install -p -m 755 check_snmp_disk $RPM_BUILD_ROOT/%{nagios_plugins_dir} +install -p -m 755 check_snmp_proc $RPM_BUILD_ROOT/%{nagios_plugins_dir} + +%files +%doc README COPYING AUTHORS NEWS +%{nagios_plugins_dir}/check_snmp_disk +%{nagios_plugins_dir}/check_snmp_proc + +%changelog +* Tue Jan 26 2021 Fedora Release Engineering - 1.3.1-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Thu Aug 27 2020 Josef Řídký - 1.3.1-13 +- Rebuilt for new net-snmp release + +* Tue Jul 28 2020 Fedora Release Engineering - 1.3.1-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jan 29 2020 Fedora Release Engineering - 1.3.1-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Jul 25 2019 Fedora Release Engineering - 1.3.1-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri Feb 01 2019 Fedora Release Engineering - 1.3.1-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Tue Jul 24 2018 Adam Williamson - 1.3.1-8 +- Rebuild for new net-snmp + +* Fri Jul 13 2018 Fedora Release Engineering - 1.3.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue May 29 2018 Tom Callaway - 1.3.1-7 +- build without tcp_wrappers + +* Thu Feb 08 2018 Fedora Release Engineering - 1.3.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Aug 03 2017 Fedora Release Engineering - 1.3.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 1.3.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 1.3.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 1.3.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jul 8 2015 Tom Callaway - 1.3.1-1 +- update to 1.3.1 + +* Wed Jun 17 2015 Fedora Release Engineering - 1.2-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sun Aug 17 2014 Fedora Release Engineering - 1.2-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 1.2-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sat Aug 03 2013 Fedora Release Engineering - 1.2-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Feb 14 2013 Fedora Release Engineering - 1.2-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Fri Jul 20 2012 Fedora Release Engineering - 1.2-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Jan 13 2012 Fedora Release Engineering - 1.2-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Aug 08 2011 Tom Callaway - 1.2-9 +- rebuild against new net-snmp +- cleanup spec file + +* Tue Feb 08 2011 Fedora Release Engineering - 1.2-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Thu Dec 2 2010 Tom "spot" Callaway - 1.2-7 +- rebuild for new net-snmp + +* Fri Aug 21 2009 Tomas Mraz - 1.2-6 +- rebuilt with new openssl + +* Sat Jul 25 2009 Fedora Release Engineering - 1.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Feb 25 2009 Fedora Release Engineering - 1.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Sat Jan 17 2009 Tomas Mraz - 1.2-3 +- rebuild with new openssl + +* Tue Feb 19 2008 Fedora Release Engineering - 1.2-2 +- Autorebuild for GCC 4.3 + +* Tue Feb 19 2008 Tom "spot" Callaway - 1.2-1 +- bump to 1.2 + +* Wed Dec 19 2007 Tom "spot" Callaway - 1.1-1 +- correct URL +- bump to 1.1 +- fix license +- Patch is obsolete + +* Wed Dec 6 2006 Jose Pedro Oliveira - 1.0-3 +- BR: tcp_wrappers-devel. + +* Wed Dec 6 2006 Jose Pedro Oliveira - 1.0-2 +- Rebuild (net-snmp 5.3 -> 5.4). + +* Sat Aug 12 2006 Jose Pedro Oliveira - 1.0-1 +- Initial build. diff --git a/SPECS/nagios-plugins.spec b/SPECS/nagios-plugins.spec new file mode 100644 index 0000000..8047e8a --- /dev/null +++ b/SPECS/nagios-plugins.spec @@ -0,0 +1,1316 @@ +%global _hardened_build 1 + +%global commit 72dd0a308130b9778828d143d1b9d9906218d6ac +%global shortcommit %(c=%{commit}; echo ${c:0:7}) +%global commdate 20191209 +## Use when first building a package set to see what patches are needed +%global bootstrap 0 + + +Name: nagios-plugins +Version: 2.3.3 +Release: 1%{?dist} + +Summary: Host/service/network monitoring program plugins for Nagios + +License: GPLv2+ +URL: https://www.nagios-plugins.org/ + +## When using checkouts from git, use the following +Source0: https://github.com/nagios-plugins/nagios-plugins/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz +Source1: nagios-plugins.README.PowerEL + +Patch2: nagios-plugins-0002-Remove-assignment-of-not-parsed-to-jitter.patch +Patch7: nagios-plugins-0007-Fix-the-use-lib-statement-and-the-external-ntp-comma.patch +Patch12: nagios-plugins-0012-fix-perl-ntp-ipv6.patch + +BuildRequires: make +BuildRequires: %{_bindir}/mailq +BuildRequires: procps +BuildRequires: %{_bindir}/ssh +BuildRequires: %{_bindir}/uptime +BuildRequires: %{_sbindir}/fping + +# Needed for the git code +BuildRequires: bind-utils +BuildRequires: gcc +BuildRequires: gettext +BuildRequires: libdbi-devel +BuildRequires: iputils +BuildRequires: net-snmp-devel +BuildRequires: net-snmp-utils +BuildRequires: ntpsec +BuildRequires: openldap-devel +BuildRequires: perl(Net::SNMP) +BuildRequires: perl(Crypt::X509) +BuildRequires: perl(Date::Parse) +BuildRequires: perl(LWP::Simple) +BuildRequires: perl(Text::Glob) +BuildRequires: perl-generators +%if 0%{?rhel} && 0%{?rhel} <= 7 +BuildRequires: postgresql-devel +%else +BuildRequires: libpq-devel +%endif +BuildRequires: qstat +BuildRequires: samba-client + +BuildRequires: mariadb-connector-c-devel +BuildRequires: mariadb-connector-c +BuildRequires: mariadb-devel +BuildRequires: freeradius-client-devel +BuildRequires: %{_bindir}/uptime +BuildRequires: iputils +BuildRequires: %{_bindir}/ps + +Requires: icinga2-common + +Obsoletes: nagios-plugins-linux_raid < 1.4.16-11 + +# nagios-plugins-1.4.16: the included gnulib files were last updated +# in June/July 2010 +# Bundled gnulib exception (https://fedorahosted.org/fpc/ticket/174) +Provides: bundled(gnulib) + +# Do not provide private Perl modules +%global __provides_exclude %{?__provides_exclude:%{__provides_exclude}|}^perl\\(utils\\) +%global reqfilt sh -c "%{__perl_requires} | sed -e 's!perl(utils)!nagios-plugins-perl!'" +%global __perl_requires %{reqfilt} + + +%description +Nagios is a program that will monitor hosts and services on your +network, and to email or page you when a problem arises or is +resolved. Nagios runs on a Unix server as a background or daemon +process, intermittently running checks on various services that you +specify. The actual service checks are performed by separate "plugin" +programs which return the status of the checks to Nagios. This package +contains those plugins. + +%package all +Summary: Nagios Plugins - All plugins +Requires: nagios-plugins-breeze, nagios-plugins-by_ssh, nagios-plugins-dhcp, nagios-plugins-dig, nagios-plugins-disk, nagios-plugins-disk_smb, nagios-plugins-dns, nagios-plugins-dummy, nagios-plugins-file_age, nagios-plugins-flexlm, nagios-plugins-fping, nagios-plugins-hpjd, nagios-plugins-http, nagios-plugins-icmp, nagios-plugins-ide_smart, nagios-plugins-ircd, nagios-plugins-ldap, nagios-plugins-load, nagios-plugins-log, nagios-plugins-mailq, nagios-plugins-mrtg, nagios-plugins-mrtgtraf, nagios-plugins-mysql, nagios-plugins-nagios, nagios-plugins-nt, nagios-plugins-ntp, nagios-plugins-ntp-perl, nagios-plugins-nwstat, nagios-plugins-oracle, nagios-plugins-overcr, nagios-plugins-pgsql, nagios-plugins-ping, nagios-plugins-procs, nagios-plugins-game, nagios-plugins-real, nagios-plugins-rpc, nagios-plugins-smtp, nagios-plugins-snmp, nagios-plugins-ssh, nagios-plugins-ssl_validity, nagios-plugins-swap, nagios-plugins-tcp, nagios-plugins-time, nagios-plugins-ups, nagios-plugins-users, nagios-plugins-wave, nagios-plugins-cluster +%ifnarch ppc ppc64 ppc64p7 sparc sparc64 +Requires: nagios-plugins-sensors +%endif + +%description all +This package provides all Nagios plugins. + +%package apt +Summary: Nagios Plugin - check_apt +Requires: nagios-plugins = %{version}-%{release} + +%description apt +Provides check_apt support for Nagios. + +%package breeze +Summary: Nagios Plugin - check_breeze +Requires: nagios-plugins = %{version}-%{release} + +%description breeze +Provides check_breeze support for Nagios. + +%package by_ssh +Summary: Nagios Plugin - check_by_ssh +Requires: nagios-plugins = %{version}-%{release} +Requires: %{_bindir}/ssh + +%description by_ssh +Provides check_by_ssh support for Nagios. + +%package cluster +Summary: Nagios Plugin - check_cluster +Requires: nagios-plugins = %{version}-%{release} + +%description cluster +Provides check_cluster support for Nagios. + +%package dbi +Summary: Nagios Plugin - check_dbi +Requires: nagios-plugins = %{version}-%{release} + +%description dbi +Provides check_dbi support for Nagios. + +%package dhcp +Summary: Nagios Plugin - check_dhcp +Requires: nagios-plugins = %{version}-%{release} +Requires: group(nagios) +Requires(pre): group(nagios) + +%description dhcp +Provides check_dhcp support for Nagios. + +%package dig +Summary: Nagios Plugin - check_dig +Requires: nagios-plugins = %{version}-%{release} +Requires: %{_bindir}/dig + +%description dig +Provides check_dig support for Nagios. + +%package disk +Summary: Nagios Plugin - check_disk +Requires: nagios-plugins = %{version}-%{release} + +%description disk +Provides check_disk support for Nagios. + +%package disk_smb +Summary: Nagios Plugin - check_disk_smb +Requires: nagios-plugins = %{version}-%{release} +Requires: %{_bindir}/smbclient +Requires: perl(utf8::all) + +%description disk_smb +Provides check_disk_smb support for Nagios. + +%package dns +Summary: Nagios Plugin - check_dns +Requires: nagios-plugins = %{version}-%{release} +Requires: %{_bindir}/dig + +%description dns +Provides check_dns support for Nagios. + +%package dummy +Summary: Nagios Plugin - check_dummy +Requires: nagios-plugins = %{version}-%{release} + +%description dummy +Provides check_dummy support for Nagios. +This plugin does not actually check anything, simply provide it with a flag +0-4 and it will return the corresponding status code to Nagios. + +%package file_age +Summary: Nagios Plugin - check_file_age +Requires: nagios-plugins = %{version}-%{release} + +%description file_age +Provides check_file_age support for Nagios. + +%package flexlm +Summary: Nagios Plugin - check_flexlm +Requires: nagios-plugins = %{version}-%{release} + +%description flexlm +Provides check_flexlm support for Nagios. + +%package fping +Summary: Nagios Plugin - check_fping +Requires: nagios-plugins = %{version}-%{release} +Requires: %{_sbindir}/fping +Requires: group(nagios) +Requires(pre): group(nagios) + +%description fping +Provides check_fping support for Nagios. + +%package game +Summary: Nagios Plugin - check_game +Requires: nagios-plugins = %{version}-%{release} +Requires: qstat + +%description game +Provides check_game support for Nagios. + +%package hpjd +Summary: Nagios Plugin - check_hpjd +Requires: nagios-plugins = %{version}-%{release} + +%description hpjd +Provides check_hpjd support for Nagios. + +%package http +Summary: Nagios Plugin - check_http +Requires: nagios-plugins = %{version}-%{release} +Requires: openssl + +%description http +Provides check_http support for Nagios. + +%package icmp +Summary: Nagios Plugin - check_icmp +Requires: nagios-plugins = %{version}-%{release} +Requires: group(nagios) +Requires(pre): group(nagios) + +%description icmp +Provides check_icmp support for Nagios. + +%package ide_smart +Summary: Nagios Plugin - check_ide_smart +Requires: nagios-plugins = %{version}-%{release} +Requires: group(nagios) +Requires(pre): group(nagios) + +%description ide_smart +Provides check_ide_smart support for Nagios. + +%package ifoperstatus +Summary: Nagios Plugin - check_ifoperstatus +Requires: nagios-plugins = %{version}-%{release} + +%description ifoperstatus +Provides check_ifoperstatus support for Nagios to monitor network interfaces. + +%package ifstatus +Summary: Nagios Plugin - check_ifstatus +Requires: nagios-plugins = %{version}-%{release} + +%description ifstatus +Provides check_ifstatus support for Nagios to monitor network interfaces. + +%package ircd +Summary: Nagios Plugin - check_ircd +Requires: nagios-plugins = %{version}-%{release} + +%description ircd +Provides check_ircd support for Nagios. + +%package ldap +Summary: Nagios Plugin - check_ldap +Requires: nagios-plugins = %{version}-%{release} +Requires: openssl + +%description ldap +Provides check_ldap support for Nagios. + +%package load +Summary: Nagios Plugin - check_load +Requires: nagios-plugins = %{version}-%{release} + +%description load +Provides check_load support for Nagios. + +%package log +Summary: Nagios Plugin - check_log +Requires: nagios-plugins = %{version}-%{release} +Requires: grep +Requires: coreutils + +%description log +Provides check_log support for Nagios. + +%package mailq +Summary: Nagios Plugin - check_mailq +Requires: nagios-plugins = %{version}-%{release} +Requires: %{_bindir}/mailq + +%description mailq +Provides check_mailq support for Nagios. + +%package mrtg +Summary: Nagios Plugin - check_mrtg +Requires: nagios-plugins = %{version}-%{release} + +%description mrtg +Provides check_mrtg support for Nagios. + +%package mrtgtraf +Summary: Nagios Plugin - check_mrtgtraf +Requires: nagios-plugins = %{version}-%{release} + +%description mrtgtraf +Provides check_mrtgtraf support for Nagios. + +%package mysql +Summary: Nagios Plugin - check_mysql +Requires: nagios-plugins = %{version}-%{release} +Requires: openssl + +%description mysql +Provides check_mysql and check_mysql_query support for Nagios. + +%package nagios +Summary: Nagios Plugin - check_nagios +Requires: nagios-plugins = %{version}-%{release} + +%description nagios +Provides check_nagios support for Nagios. + +%package nt +Summary: Nagios Plugin - check_nt +Requires: nagios-plugins = %{version}-%{release} + +%description nt +Provides check_nt support for Nagios. + +%package ntp +Summary: Nagios Plugin - check_ntp +Requires: nagios-plugins = %{version}-%{release} + +%description ntp +Provides check_ntp support for Nagios. + +%package ntp-perl +Summary: Nagios Plugin - check_ntp.pl +Requires: nagios-plugins = %{version}-%{release} +Requires: %{_sbindir}/ntpdate +Requires: %{_sbindir}/ntpq + +%description ntp-perl +Provides check_ntp.pl support for Nagios. + +%package nwstat +Summary: Nagios Plugin - check_nwstat +Requires: nagios-plugins = %{version}-%{release} + +%description nwstat +Provides check_nwstat support for Nagios. + +%package oracle +Summary: Nagios Plugin - check_oracle +Requires: nagios-plugins = %{version}-%{release} + +%description oracle +Provides check_oracle support for Nagios. + +%package overcr +Summary: Nagios Plugin - check_overcr +Requires: nagios-plugins = %{version}-%{release} + +%description overcr +Provides check_overcr support for Nagios. + +%package perl +Summary: Nagios plugins perl dep. +Requires: nagios-plugins = %{version}-%{release} + +%description perl +Perl dep for nagios plugins. This is *NOT* an actual plugin it simply provides +utils.pm + + +%package pgsql +Summary: Nagios Plugin - check_pgsql +Requires: nagios-plugins = %{version}-%{release} + +%description pgsql +Provides check_pgsql (PostgreSQL) support for Nagios. + +%package ping +Summary: Nagios Plugin - check_ping +Requires: nagios-plugins = %{version}-%{release} +Requires: iputils +Requires: iputils + +%description ping +Provides check_ping support for Nagios. + +%package procs +Summary: Nagios Plugin - check_procs +Requires: nagios-plugins = %{version}-%{release} + +%description procs +Provides check_procs support for Nagios. + +%package radius +Summary: Nagios Plugin - check_radius +Requires: nagios-plugins = %{version}-%{release} + +%description radius +Provides check_radius support for Nagios. + +%package real +Summary: Nagios Plugin - check_real +Requires: nagios-plugins = %{version}-%{release} + +%description real +Provides check_real (rtsp) support for Nagios. + +%package remove_perfdata +Summary: Nagios plugin tool to remove perf data +Requires: nagios-plugins = %{version}-%{release} + +%description remove_perfdata +Removes perfdata from specified plugin's output + +%package rpc +Summary: Nagios Plugin - check_rpc +Requires: nagios-plugins = %{version}-%{release} +Requires: %{_sbindir}/rpcinfo + +%description rpc +Provides check_rpc support for Nagios. + +%ifnarch ppc ppc64 sparc sparc64 +%package sensors +Summary: Nagios Plugin - check_sensors +Requires: nagios-plugins = %{version}-%{release} +Requires: grep +Requires: %{_bindir}/sensors + +%description sensors +Provides check_sensors support for Nagios. +%endif + +%package smtp +Summary: Nagios Plugin - check_smtp +Requires: nagios-plugins = %{version}-%{release} +Requires: openssl + +%description smtp +Provides check_smtp support for Nagios. + +%package snmp +Summary: Nagios Plugin - check_snmp +Requires: nagios-plugins = %{version}-%{release} +Requires: %{_bindir}/snmpgetnext +Requires: %{_bindir}/snmpget + +%description snmp +Provides check_snmp support for Nagios. + +%package ssh +Summary: Nagios Plugin - check_ssh +Requires: nagios-plugins = %{version}-%{release} + +%description ssh +Provides check_ssh support for Nagios. + +%package ssl_validity +Summary: Nagios Plugin - check_ssl_validity +Requires: nagios-plugins = %{version}-%{release} +Requires: perl(Crypt::X509) +Requires: perl(Date::Parse) +Requires: perl(LWP::Simple) +Requires: perl(Text::Glob) +Requires: openssl + +%description ssl_validity +Provides check_ssl_validity support for Nagios. + +%package swap +Summary: Nagios Plugin - check_swap +Requires: nagios-plugins = %{version}-%{release} + +%description swap +Provides check_swap support for Nagios. + +%package tcp +Summary: Nagios Plugin - check_tcp +Requires: nagios-plugins = %{version}-%{release} +Provides: nagios-plugins-ftp = %{version}-%{release} +Provides: nagios-plugins-imap = %{version}-%{release} +Provides: nagios-plugins-jabber = %{version}-%{release} +Provides: nagios-plugins-nntp = %{version}-%{release} +Provides: nagios-plugins-nntps = %{version}-%{release} +Provides: nagios-plugins-pop = %{version}-%{release} +Provides: nagios-plugins-simap = %{version}-%{release} +Provides: nagios-plugins-spop = %{version}-%{release} +Provides: nagios-plugins-ssmtp = %{version}-%{release} +Provides: nagios-plugins-udp = %{version}-%{release} +Provides: nagios-plugins-udp2 = %{version}-%{release} +Obsoletes: nagios-plugins-udp < 1.4.15-2 +Requires: openssl + +%description tcp +Provides check_tcp, check_ftp, check_imap, check_jabber, check_nntp, +check_nntps, check_pop, check_simap, check_spop, check_ssmtp, check_udp +and check_clamd support for Nagios. + +%package time +Summary: Nagios Plugin - check_time +Requires: nagios-plugins = %{version}-%{release} + +%description time +Provides check_time support for Nagios. + +%package ups +Summary: Nagios Plugin - check_ups +Requires: nagios-plugins = %{version}-%{release} + +%description ups +Provides check_ups support for Nagios. + +%package uptime +Summary: Nagios Plugin - check_uptime +Requires: nagios-plugins = %{version}-%{release} + +%description uptime +Provides check_uptime support for Nagios. + +%package users +Summary: Nagios Plugin - check_users +Requires: nagios-plugins = %{version}-%{release} + +%description users +Provides check_users support for Nagios. + +%package wave +Summary: Nagios Plugin - check_wave +Requires: nagios-plugins = %{version}-%{release} + +%description wave +Provides check_wave support for Nagios. + +%prep +%autosetup -n %{name}-%{version} -N + +%patch2 -p1 -b .remove_ntp_jitter +%patch7 -p1 -b .fix_ntpcommands +%if 0%{?bootstrap} == 0 +%patch12 -p1 -b .fix_perl_ntp +%endif + +%build + +%configure \ + --libexecdir=%{_libdir}/nagios/plugins \ + --with-dbi \ + --with-mysql \ + PATH_TO_SUDO=%{_bindir}/sudo \ + PATH_TO_QSTAT=%{_bindir}/quakestat \ + PATH_TO_FPING=%{_sbindir}/fping \ + PATH_TO_NTPQ=%{_sbindir}/ntpq \ + PATH_TO_NTPDC=%{_sbindir}/ntpdc \ + PATH_TO_NTPDATE=%{_sbindir}/ntpdate \ + PATH_TO_RPCINFO=%{_sbindir}/rpcinfo \ + --with-ps-command="`which ps` -eo 's uid pid ppid vsz rss pcpu etime comm args'" \ + --with-ps-format='%s %d %d %d %d %d %f %s %s %n' \ + --with-ps-cols=10 \ + --with-ping-command='%{_bindir}/ping -n -U -w %d -c %d %s' \ + --with-ping6-command='%{_sbindir}/ping6 -n -U -w %d -c %d %s' \ + --enable-extra-opts \ + --with-ps-varlist='procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procetime,procprog,&pos' + +make %{?_smp_mflags} + +cd plugins-scripts +make check_ntp +cd .. + +cp %{SOURCE1} ./README.PowerEL + +%install +sed -i 's,^MKINSTALLDIRS.*,MKINSTALLDIRS = ../mkinstalldirs,' po/Makefile +make AM_INSTALL_PROGRAM_FLAGS="" DESTDIR=%{buildroot} install +install -m 0755 plugins-root/check_icmp %{buildroot}/%{_libdir}/nagios/plugins +install -m 0755 plugins-root/check_dhcp %{buildroot}/%{_libdir}/nagios/plugins +install -m 0755 plugins/check_ide_smart %{buildroot}/%{_libdir}/nagios/plugins +install -m 0755 plugins/check_ldap %{buildroot}/%{_libdir}/nagios/plugins +install -m 0755 plugins-scripts/check_ntp %{buildroot}/%{_libdir}/nagios/plugins/check_ntp.pl +## This is to fix https://bugzilla.redhat.com/show_bug.cgi?id=1664981 because they are installing the wrong thing +install -m 0755 plugins/check_ntp %{buildroot}/%{_libdir}/nagios/plugins/check_ntp +#install -m 0755 plugins/check_radius %{buildroot}/%{_libdir}/nagios/plugins +install -m 0755 plugins/check_pgsql %{buildroot}/%{_libdir}/nagios/plugins + +%ifarch ppc ppc64 ppc64p7 sparc sparc64 +rm -f %{buildroot}/%{_libdir}/nagios/plugins/check_sensors +%endif + +chmod 644 %{buildroot}/%{_libdir}/nagios/plugins/utils.pm + +%find_lang %{name} + +%files -f %{name}.lang +%doc ACKNOWLEDGEMENTS AUTHORS po/ChangeLog CODING FAQ LEGAL NEWS README REQUIREMENTS SUPPORT THANKS README.PowerEL +%license COPYING +%{_libdir}/nagios/plugins/negate +%{_libdir}/nagios/plugins/urlize +%{_libdir}/nagios/plugins/utils.sh + +%files all + +%files apt +%{_libdir}/nagios/plugins/check_apt + +%files breeze +%{_libdir}/nagios/plugins/check_breeze + +%files by_ssh +%{_libdir}/nagios/plugins/check_by_ssh + +%files cluster +%{_libdir}/nagios/plugins/check_cluster + +%files dbi +%{_libdir}/nagios/plugins/check_dbi + +%files dhcp +%defattr(4750,root,nagios,-) +%{_libdir}/nagios/plugins/check_dhcp + +%files dig +%{_libdir}/nagios/plugins/check_dig + +%files disk +%{_libdir}/nagios/plugins/check_disk + +%files disk_smb +%{_libdir}/nagios/plugins/check_disk_smb + +%files dns +%{_libdir}/nagios/plugins/check_dns + +%files dummy +%{_libdir}/nagios/plugins/check_dummy + +%files file_age +%{_libdir}/nagios/plugins/check_file_age + +%files flexlm +%{_libdir}/nagios/plugins/check_flexlm + +%files fping +%defattr(4750,root,nagios,-) +%{_libdir}/nagios/plugins/check_fping + +%files game +%{_libdir}/nagios/plugins/check_game + +%files hpjd +%{_libdir}/nagios/plugins/check_hpjd + +%files http +%{_libdir}/nagios/plugins/check_http + +%files icmp +%defattr(4750,root,nagios,-) +%{_libdir}/nagios/plugins/check_icmp + +%files ifoperstatus +%{_libdir}/nagios/plugins/check_ifoperstatus + +%files ifstatus +%{_libdir}/nagios/plugins/check_ifstatus + +%files ide_smart +%defattr(4750,root,nagios,-) +%{_libdir}/nagios/plugins/check_ide_smart + +%files ircd +%{_libdir}/nagios/plugins/check_ircd + +%files ldap +%{_libdir}/nagios/plugins/check_ldap +%{_libdir}/nagios/plugins/check_ldaps + +%files load +%{_libdir}/nagios/plugins/check_load + +%files log +%{_libdir}/nagios/plugins/check_log + +%files mailq +%{_libdir}/nagios/plugins/check_mailq + +%files mrtg +%{_libdir}/nagios/plugins/check_mrtg + +%files mrtgtraf +%{_libdir}/nagios/plugins/check_mrtgtraf + +%files mysql +%{_libdir}/nagios/plugins/check_mysql +%{_libdir}/nagios/plugins/check_mysql_query + +%files nagios +%{_libdir}/nagios/plugins/check_nagios + +%files nt +%{_libdir}/nagios/plugins/check_nt + +%files ntp +%{_libdir}/nagios/plugins/check_ntp +%{_libdir}/nagios/plugins/check_ntp_peer +%{_libdir}/nagios/plugins/check_ntp_time + +%files ntp-perl +%{_libdir}/nagios/plugins/check_ntp.pl + +%files nwstat +%{_libdir}/nagios/plugins/check_nwstat + +%files oracle +%{_libdir}/nagios/plugins/check_oracle + +%files overcr +%{_libdir}/nagios/plugins/check_overcr + +%files perl +%{_libdir}/nagios/plugins/utils.pm + +%files pgsql +%{_libdir}/nagios/plugins/check_pgsql + +%files ping +%{_libdir}/nagios/plugins/check_ping + +%files procs +%{_libdir}/nagios/plugins/check_procs + +%files radius +#%{_libdir}/nagios/plugins/check_radius + +%files real +%{_libdir}/nagios/plugins/check_real + +%files remove_perfdata +%{_libdir}/nagios/plugins/remove_perfdata + +%files rpc +%{_libdir}/nagios/plugins/check_rpc + +%ifnarch ppc ppc64 ppc64p7 sparc sparc64 +%files sensors +%{_libdir}/nagios/plugins/check_sensors +%endif + +%files smtp +%{_libdir}/nagios/plugins/check_smtp + +%files snmp +%{_libdir}/nagios/plugins/check_snmp + +%files ssh +%{_libdir}/nagios/plugins/check_ssh + +%files ssl_validity +%{_libdir}/nagios/plugins/check_ssl_validity + +%files swap +%{_libdir}/nagios/plugins/check_swap + +%files tcp +%{_libdir}/nagios/plugins/check_clamd +%{_libdir}/nagios/plugins/check_ftp +%{_libdir}/nagios/plugins/check_imap +%{_libdir}/nagios/plugins/check_jabber +%{_libdir}/nagios/plugins/check_nntp +%{_libdir}/nagios/plugins/check_nntps +%{_libdir}/nagios/plugins/check_pop +%{_libdir}/nagios/plugins/check_simap +%{_libdir}/nagios/plugins/check_spop +%{_libdir}/nagios/plugins/check_ssmtp +%{_libdir}/nagios/plugins/check_tcp +%{_libdir}/nagios/plugins/check_udp + +%files time +%{_libdir}/nagios/plugins/check_time + +%files ups +%{_libdir}/nagios/plugins/check_ups + +%files uptime +%{_libdir}/nagios/plugins/check_uptime + +%files users +%{_libdir}/nagios/plugins/check_users + +%files wave +%{_libdir}/nagios/plugins/check_wave + +%changelog +* Wed Mar 31 2021 Guido Aulisi - 2.3.3-10 +- Fix FTBFS on f35 and f34 (#1923642) +- Use license tag + +* Mon Feb 08 2021 Pavel Raiskup - 2.3.3-9 +- rebuild for libpq ABI fix rhbz#1908268 + +* Tue Jan 26 2021 Fedora Release Engineering - 2.3.3-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 2.3.3-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue May 26 2020 Martin Jackson - 2.3.3-6 +- Specify ping and ping6 commands + +* Tue May 26 2020 Martin Jackson - 2.3.3-5 +- Correct spelling of dep for -all subpackage. BZ#1840031 + +* Sun May 24 2020 Martin Jackson - 2.3.3-4 +- Reinstate ssl_validity. Packager overreacted. + +* Tue May 19 2020 Martin Jackson - 2.3.3-3 +- Remove ssl_validity as perl-Convert-ASN1 has been retired. BZ#1837397 + +* Thu Apr 9 2020 Martin Jackson - 2.3.3-2 +- Add ssl_validity to all plugins metapackage + +* Sun Mar 15 2020 Martin Jackson - 2.3.3-1 +- New upstream version +- Remove reference to path10 which no longer is in the specfile + +* Wed Jan 29 2020 Fedora Release Engineering - 2.3.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Tue Jan 28 2020 Stephen Smoogen - 2.3.1-2 +- Add in perl entries needed for perl oracle plugin to work. + + +* Tue Dec 10 2019 Stephen Smoogen - 2.3.1-1 +- Make first attempt at making this work for 2.3.1 +- Fix BZ#1768270 +- Fix BZ#1752383 +- Fix BZ#1781292 + +* Thu Sep 26 2019 Stephen Smoogen - 2.2.2-2.20190926git1b8ad57 +- Add conditional for perl-UTF8. Thanks to Todd Zullinger and Alexander Kohr +- Update to newer git tag to fix check_smb + +* Sat Sep 21 2019 Stephen Smoogen - 2.2.2-1.20190919git00cff01 + +- Update to 2.2.2 and update to latest patchset to fix things missed in 2.2.2 + +* Thu Aug 29 2019 Stephen Smoogen - 2.2.1-17.20190829gitfb792ff +- Update to latest git and fix release string to match again +- check_ntp.pl was still getting installed as check_ntp. Fix BZ#1664981 +- check_ntp.pl has ipv6 problem. Fix BZ#1731468 + +* Thu Jul 25 2019 Fedora Release Engineering - 2.2.1-16.20180725git3429dad +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Tue Mar 12 2019 Patrick Uiterwijk - 2.2.1-15.20180725git3429dad +- Update requirement for ps to procps +- Fix check_smtp certificate verification + +* Fri Feb 01 2019 Fedora Release Engineering - 2.2.1-15.20180725git3429dad +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Thu Jan 03 2019 Patrick Uiterwijk - 2.2.1-16.20180725git3429dad +- Fix check_smtp certificate verification + +* Thu Dec 13 2018 Patrick Uiterwijk - 2.2.1-15.20180725git3429dad +- Add upstream PR #428 to add PROXY protocol support to check_smtp + +* Wed Jul 25 2018 Stephen Smoogen - 2.2.1-14.20180725git3429dad +- Update to latest git and fix release string to match +- Fix BZ#1604915 +- Fix BZ#1579292 +- Possibly fix BZ#1525609 +- Possibly fix BZ#1518811 +- Possibly fix BZ#1470823 + + +* Fri Jul 13 2018 Fedora Release Engineering - 2.2.1-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Feb 14 2018 Karsten Hopp - 2.2.1-12 +- fix conditionals +- include mysql_version for MYSQL_PORT macro +- fix perl shebang in plugin-scripts/check_ntp + +* Thu Feb 08 2018 Fedora Release Engineering - 2.2.1-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Sat Jan 20 2018 Björn Esser - 2.2.1-10 +- Rebuilt for switch to libxcrypt + +* Tue Nov 21 2017 Stephen Smoogen - 2.2.1-9 +- Fix mysql patch problem with - 2.2.1-8 +- remove git from the release as it isn't standard +- Fix BZ#1512892 +- Fix BZ#1512380 +- Fix BZ#1500028 +- Fix BZ#1494080 +- Fix BZ#1478721 + +* Thu Aug 03 2017 Fedora Release Engineering - 2.2.1-7git +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 2.2.1-6git +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Jul 14 2017 Stephen Smoogen - 2.2.1-5git +- Try to make the logic so it works with mariadb and mysql +- Fail. revert that part. + +* Fri Jul 14 2017 Stephen Smoogen - 2.2.1-4git +- Add explicit file require. Fix BZ# 1470823 +- Add explicit file require. Fix BZ# 1471007 +- Add explicit file require. Fix BZ# 1471012 + +* Wed Jul 12 2017 Stephen Smoogen - 2.2.1-3git +- Updated patches to fix check_http problems + +* Mon Jul 3 2017 Stephen Smoogen - 2.2.1-2git +- Update to git for 20170703 + +* Thu Apr 20 2017 Stephen Smoogen - 2.2.1-1 +- New version of plugins. Remove old patches + +* Wed Mar 22 2017 Stephen Smoogen - 2.2.0-8 +- Bump the release number to have a working version in rawhide due to rpm bug. + +* Sun Mar 12 2017 Stephen Smoogen - 2.2.0-7 +- Fix the patch order to get the code working again. +- get final fix from patrick for check_http header problem + +* Fri Mar 10 2017 Stephen Smoogen - 2.2.0-6 +- Consolidate the patches from patrick and git + +* Tue Mar 07 2017 Patrick Uiterwijk - 2.2.0-5 +- Add patch for check_http to not choke + +* Sat Feb 25 2017 Stephen Smoogen - 2.2.0-4 +- OK so it turns out writing to a non initialized pointer is bad. mmmkay. + +* Sat Feb 25 2017 Stephen Smoogen - 2.2.0-3 +- Try to put in a logic fix for http. It gives answer expected but may not work for upstream + +* Sat Feb 25 2017 Stephen Smoogen - 2.2.0-2 +- My patch to clean up code broke TXT records because they need to go back one char in the c-string array. + +* Fri Feb 24 2017 Stephen Smoogen - 2.2.0-1 +- Update to 2.2.0 +- Add fix for MX to match old 2.0.3 MX +- Remove patches that were incorporated into 2.2.0 +- Remove autoconf patch for openssl110 + +* Thu Feb 16 2017 Stephen Smoogen - 2.1.4-7 +- Got feedback on bz 1422993. Put in fix from github + +* Thu Feb 16 2017 Stephen Smoogen - 2.1.4-6 +- Start collecting and fixing bugzilla reports. This one fixes ipv6 for check_snmp + +* Wed Feb 15 2017 Stephen Smoogen - 2.1.4-5 +- Grab other fixes from git maintenance branch to fix other check_ problems +- Fix autoconf/automake so that it works with openssl 1.1.0 + +* Fri Feb 10 2017 Fedora Release Engineering - 2.1.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Wed Jan 18 2017 Stephen Smoogen - 2.1.4-3 +- Put in patch to fix check_file_age + +* Fri Dec 16 2016 Scott Wilkerson 2.1.4-1 +- Updated to 2.1.4 + +* Thu Feb 04 2016 Scott Wilkerson 2.1.1-1 +- Updated to 2.1.1 +- Fixes bug #1191896 + +* Thu Feb 04 2016 Fedora Release Engineering - 2.0.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Fri Sep 11 2015 Scott Wilkerson 2.0.3-3 +- Fix issue where check_mysql was looking in wrong place for my.cnf +- Fixes bug #1256731 + +* Thu Aug 27 2015 Kevin Fenzi 2.0.3-2 +- Add obsoletes for nagios-plugin-linux_raid < 1.4.3-11 +- Fixes bug #1256682 + +* Tue Aug 04 2015 Josh Boyer - 2.0.3-1 +- Update to 2.0.3 + +* Wed Jun 17 2015 Fedora Release Engineering - 2.0.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sun Aug 17 2014 Fedora Release Engineering - 2.0.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 2.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Thu May 1 2014 Sam Kottler - 2.0.1-1 +- Update to 2.0.1 +- Moved SSD-specific patch which landed upstream +- Update patch to binary paths in plugins-scripts/check_log.sh so it applies +- Add -uptime subpackage + +* Thu Oct 24 2013 Jose Pedro Oliveira - 1.5-2 +- New check_dbi plugin (BR: libdbi-devel; subpackage: nagios-plugins-dbi) + +* Wed Oct 23 2013 Jose Pedro Oliveira - 1.5-1 +- Update to version 1.5 +- New project homepage and source download locations +- Disabled patches 1, 6, 8, and 9. +- No linux_raid subpackage (the contrib directory was removed) + +* Wed Oct 16 2013 Peter Lemenkov - 1.4.16-10 +- Remove EL4 and EL5 support +- Backport patches to fix check_linux_raid in case of resyncing (rhbz #504721) +- Fix smart attribute comparison (rhbz #913085) + +* Sat Aug 03 2013 Fedora Release Engineering - 1.4.16-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Sun Jul 21 2013 Petr Pisar - 1.4.16-8 +- Perl 5.18 rebuild + +* Wed May 22 2013 Jose Pedro Oliveira - 1.4.16-7 +- Build package with PIE flags (#965536) + +* Thu Feb 14 2013 Fedora Release Engineering - 1.4.16-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Fri Aug 17 2012 Jose Pedro Oliveira - 1.4.16-5 +- Fix the use lib statement and the external ntp commands paths in check-ntp.pl + (nagios-plugins-0008-ntpdate-and-ntpq-paths.patch). + +* Thu Aug 16 2012 Jose Pedro Oliveira - 1.4.16-4 +- Remove the erroneous requirements of nagios-plugins-ntp (#848830) +- Ship check-ntp.pl in the new nagios-plugins-ntp-perl subpackage (#848830) + +* Fri Jul 20 2012 Fedora Release Engineering - 1.4.16-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Mon Jul 9 2012 Jose Pedro Oliveira - 1.4.16-2 +- Provides bundled(gnulib) (#821779) + +* Mon Jul 9 2012 Jose Pedro Oliveira - 1.4.16-1 +- Update to version 1.4.16 +- Dropped nagios-plugins-0005-Patch-for-check_linux_raid-with-on-linear-raid0-arra.patch + (upstream). + +* Tue Jun 26 2012 Jose Pedro Oliveira - 1.4.15-7 +- glibc 2.16 no longer defines gets for ISO C11, ISO C++11, and _GNU_SOURCE + (#835621): nagios-plugins-0007-undef-gets-and-glibc-2.16.patch + +* Tue Jun 26 2012 Jose Pedro Oliveira - 1.4.15-6 +- The nagios-plugins RPM no longer needs to own the /usr/lib{,64}/nagios/plugins + directory; this directory is now owned by nagios-common (#835621) +- Small updates (clarification) to the file nagios-plugins.README.Fedora + +* Fri Jan 13 2012 Fedora Release Engineering - 1.4.15-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Wed Mar 23 2011 Dan Horák - 1.4.15-4 +- rebuilt for mysql 5.5.10 (soname bump in libmysqlclient) + +* Tue Feb 08 2011 Fedora Release Engineering - 1.4.15-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Thu Oct 7 2010 Peter Lemenkov - 1.4.15-2 +- Dropped check_udp sub-package (see rhbz #634067). Anyway it + provided just a symlink to check_tcp. +- Fixed weird issue with check_swap returning ok in case of + missing swap (see rhbz #512559). + +* Wed Aug 18 2010 Peter Lemenkov - 1.4.15-1 +- Ver. 1.4.15 +- Dropped patch for restoration of behaviour in case of ssl checks + +* Tue May 18 2010 Peter Lemenkov - 1.4.14-4 +- Restore ssl behaviour for check_http in case of self-signed + certificates (see rhbz #584227). + +* Sat Apr 24 2010 Peter Lemenkov - 1.4.14-3 +- Removed Requires - nagios (see rhbz #469530). +- Added "Requires,Requires(pre): group(nagios)" where necessary +- Sorted %%files sections +- No need to ship INSTALL file +- Added more doc files to main package + +* Mon Apr 12 2010 Peter Lemenkov - 1.4.14-2 +- Added missing Requires - nagios (see rhbz #469530). +- Fixed path to qstat -> quakestat (see rhbz #533777) +- Disable radius plugin for EL4 - there is not radiuscleint-ng for EL-4 + +* Wed Mar 10 2010 Peter Lemenkov - 1.4.14-1 +- Ver. 1.4.14 +- Rebased patches. + +* Fri Aug 21 2009 Tomas Mraz - 1.4.13-17 +- rebuilt with new openssl + +* Sat Jul 25 2009 Fedora Release Engineering - 1.4.13-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Mon Jun 22 2009 Mike McGrath - 1.4.13-15 +- Added patch from upstream to fix ntp faults (bz #479030) + +* Wed Feb 25 2009 Fedora Release Engineering - 1.4.13-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Sat Jan 24 2009 Caolán McNamara 1.4.13-13 +- rebuild for dependencies + +* Sat Jan 17 2009 Tomas Mraz 1.4.13-12 +- rebuild with new openssl + +* Mon Oct 20 2008 Robert M. Albrecht 1.4.13-11 +- Enabled --with-extra-opts again + +* Mon Oct 20 2008 Robert M. Albrecht 1.4.13-10 +- removed provides perl plugins Bugzilla 457404 + +* Thu Oct 16 2008 Mike McGrath 1.4.13-9 +- This is a "CVS is horrible" rebuild + +* Thu Oct 9 2008 Mike McGrath 1.4.13-8 +- Rebuilt with a proper patch + +* Wed Oct 8 2008 Mike McGrath 1.4.13-7 +- Added changed recent permission changes to allow nagios group to execute + +* Wed Oct 8 2008 Mike McGrath 1.4.13-6 +- Fixed up some permission issues + +* Mon Oct 6 2008 Mike McGrath 1.4.13-5 +- Fixing patch, missing semicolon + +* Sun Sep 28 2008 Mike McGrath 1.4.13-4 +- Upstream released new version #464419 +- Added patch fix for check_linux_raid #253898 +- Upstream releases fix for #451015 - check_ntp_peers +- Upstream released fix for #459309 - check_ntp +- Added Provides Nagios::Plugins for #457404 +- Fixed configure line for #458985 check_procs + +* Thu Jul 10 2008 Robert M. Albrecht 1.4.12-3 +- Removed --with-extra-opts, does not build in Koji + +* Mon Jun 30 2008 Robert M. Albrecht 1.4.12-2 +- Enabled --with-extra-opts + +* Sun Jun 29 2008 Robert M. Albrecht 1.4.12-1 +- Upstream released version 1.4.12 +- Removed patches ping_timeout.patch and pgsql-fix.patch + +* Wed Apr 30 2008 Mike McGrath 1.4.11-4 +- added patch for check_pgsql + +* Wed Apr 09 2008 Mike McGrath 1.4.11-2 +- Fix for 250588 + +* Thu Feb 28 2008 Mike McGrath 1.4.11-1 +- Upstream released version 1.4.11 +- Added check_ntp peer and time + +* Tue Feb 19 2008 Fedora Release Engineering - 1.4.10-6 +- Autorebuild for GCC 4.3 + +* Tue Feb 12 2008 Mike McGrath 1.4-10-5 +- Rebuild for gcc43 + +* Thu Jan 10 2008 Mike McGrath 1.4.10-4 +- Fixed check_log plugin #395601 + +* Thu Dec 06 2007 Release Engineering - 1.4.10-2 +- Rebuild for deps + +* Thu Dec 06 2007 Mike McGrath 1.4.10-1 +- Upstream released new version +- Removed some patches + +* Fri Oct 26 2007 Mike McGrath 1.4.8-9 +- Fix for Bug 348731 and CVE-2007-5623 + +* Wed Aug 22 2007 Mike McGrath 1.4.8-7 +- Rebuild for BuildID +- License change + +* Fri Aug 10 2007 Mike McGrath 1.4.8-6 +- Fix for check_linux_raid - #234416 +- Fix for check_ide_disk - #251635 + +* Tue Aug 07 2007 Mike McGrath 1.4.8-2 +- Fix for check_smtp - #251049 + +* Fri Apr 13 2007 Mike McGrath 1.4.8-1 +- Upstream released new version + +* Fri Feb 23 2007 Mike McGrath 1.4.6-1 +- Upstream released new version + +* Sun Dec 17 2006 Mike McGrath 1.4.5-1 +- Upstream released new version + +* Fri Oct 27 2006 Mike McGrath 1.4.4-2 +- Enabled check_smart_ide +- Added patch for linux_raid +- Fixed permissions on check_icmp + +* Tue Oct 24 2006 Mike McGrath 1.4.4-1 +- Upstream new version +- Disabled check_ide_smart (does not compile cleanly/too lazy to fix right now) +- Added check_apt + +* Sun Aug 27 2006 Mike McGrath 1.4.3-18 +- Removed utils.pm from the base nagios-plugins package into its own package + +* Tue Aug 15 2006 Mike McGrath 1.4.3-17 +- Added requires qstat for check_game + +* Thu Aug 03 2006 Mike McGrath 1.4.3-16 +- Providing path to qstat + +* Thu Aug 03 2006 Mike McGrath 1.4.3-15 +- Fixed permissions on check_dhcp +- Added check_game +- Added check_radius +- Added patch for ntp + +* Sun Jul 23 2006 Mike McGrath 1.4.3-14 +- Patched upstream issue: 196356 + +* Sun Jul 23 2006 Mike McGrath 1.4.3-13 +- nagios-plugins-all now includes nagios-plugins-mysql + +* Thu Jun 22 2006 Mike McGrath 1.4.3-12 +- removed sensors support for sparc and sparc64 + +* Thu Jun 22 2006 Mike McGrath 1.4.3-11 +- Created a README.Fedora explaining how to install other plugins + +* Sun Jun 11 2006 Mike McGrath 1.4.3-9 +- Removed check_sensors in install section + +* Sat Jun 10 2006 Mike McGrath 1.4.3-8 +- Inserted conditional blocks for ppc exception. + +* Wed Jun 07 2006 Mike McGrath 1.4.3-7 +- Removed sensors from all plugins and added excludearch: ppc + +* Tue Jun 06 2006 Mike McGrath 1.4.3-6 +- For ntp plugins requires s/ntpc/ntpdc/ + +* Sat Jun 03 2006 Mike McGrath 1.4.3-5 +- Fixed a few syntax errors and removed an empty export + +* Fri May 19 2006 Mike McGrath 1.4.3-4 +- Now using configure macro instead of ./configure +- Added BuildRequest: perl(Net::SNMP) +- For reference, this was bugzilla.redhat.com ticket# 176374 + +* Fri May 19 2006 Mike McGrath 1.4.3-3 +- Added check_ide_smart +- Added some dependencies +- Added support for check_if* (perl-Net-SNMP now in extras) +- nagios-plugins now owns dir %%{_libdir}/nagios + +* Sat May 13 2006 Mike McGrath 1.4.3-2 +- Added a number of requires that don't get auto-detected + +* Sun May 07 2006 Mike McGrath 1.4.3-1 +- Upstream remeased 1.4.3 + +* Tue Apr 18 2006 Mike McGrath 1.4.2-9 +- Fixed a typo where nagios-plugins-all required nagios-plugins-httpd + +* Mon Mar 27 2006 Mike McGrath 1.4.2-8 +- Updated to CVS head for better MySQL support + +* Sun Mar 5 2006 Mike McGrath 1.4.2-7 +- Added a nagios-plugins-all package + +* Wed Feb 1 2006 Mike McGrath 1.4.2-6 +- Added provides for check_tcp + +* Mon Jan 30 2006 Mike McGrath 1.4.2-5 +- Created individual packages for all check_* scripts + +* Tue Dec 20 2005 Mike McGrath 1.4.2-4 +- Fedora friendly spec file + +* Mon May 23 2005 Sean Finney - cvs head +- just include the nagios plugins directory, which will automatically include + all generated plugins (which keeps the build from failing on systems that + don't have all build-dependencies for every plugin) + +* Thu Mar 04 2004 Karl DeBisschop - 1.4.0alpha1 +- extensive rewrite to facilitate processing into various distro-compatible specs + +* Thu Mar 04 2004 Karl DeBisschop - 1.4.0alpha1 +- extensive rewrite to facilitate processing into various distro-compatible specs +