From 39111edfe36ab974fc2202532571c614130a7675 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Tue, 3 Jan 2012 07:58:05 +0100 Subject: [PATCH] Nagios::Plugin::JUNOS: Renamed add_checks() to set_checks(). The former will be used for a different purpose later. --- check_junos.pl | 2 +- perl/lib/Nagios/Plugin/JUNOS.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/check_junos.pl b/check_junos.pl index 1e6d1f9..38c5ad2 100755 --- a/check_junos.pl +++ b/check_junos.pl @@ -126,7 +126,7 @@ foreach my $arg (@args) { } $plugin->configure(); -$plugin->add_checks($valid_checks, 'chassis_environment', @ARGV); +$plugin->set_checks($valid_checks, 'chassis_environment', @ARGV); $junos = $plugin->connect(); foreach my $check ($plugin->get_checks()) { diff --git a/perl/lib/Nagios/Plugin/JUNOS.pm b/perl/lib/Nagios/Plugin/JUNOS.pm index a62e323..19ed761 100644 --- a/perl/lib/Nagios/Plugin/JUNOS.pm +++ b/perl/lib/Nagios/Plugin/JUNOS.pm @@ -184,7 +184,7 @@ sub _add_single_check push @{$self->{'conf'}->{'checks'}}, \%c; } -sub add_checks +sub set_checks { my $self = shift; my $valid_checks = shift;