Nagios::Plugin::JUNOS: Renamed add_checks() to set_checks().
The former will be used for a different purpose later.
This commit is contained in:
parent
121c2fbe64
commit
39111edfe3
|
@ -126,7 +126,7 @@ foreach my $arg (@args) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$plugin->configure();
|
$plugin->configure();
|
||||||
$plugin->add_checks($valid_checks, 'chassis_environment', @ARGV);
|
$plugin->set_checks($valid_checks, 'chassis_environment', @ARGV);
|
||||||
$junos = $plugin->connect();
|
$junos = $plugin->connect();
|
||||||
|
|
||||||
foreach my $check ($plugin->get_checks()) {
|
foreach my $check ($plugin->get_checks()) {
|
||||||
|
|
|
@ -184,7 +184,7 @@ sub _add_single_check
|
||||||
push @{$self->{'conf'}->{'checks'}}, \%c;
|
push @{$self->{'conf'}->{'checks'}}, \%c;
|
||||||
}
|
}
|
||||||
|
|
||||||
sub add_checks
|
sub set_checks
|
||||||
{
|
{
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my $valid_checks = shift;
|
my $valid_checks = shift;
|
||||||
|
|
Loading…
Reference in a new issue