Merge pull request #2048 from UrBnW/syno

Synology wording
This commit is contained in:
qgarnier 2020-06-10 08:47:26 +02:00 committed by GitHub
commit b57a90f820
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -38,13 +38,13 @@ sub load {
sub check {
my ($self) = @_;
$self->{output}->output_add(long_msg => "Checking system status");
$self->{output}->output_add(long_msg => "Checking system partition status");
$self->{components}->{system} = {name => 'system', total => 0, skip => 0};
return if ($self->check_filter(section => 'system'));
$self->{components}->{system}->{total}++;
my $result = $self->{snmp}->map_instance(mapping => $mapping, results => $self->{results}->{$mapping->{synoSystemsystemStatus}->{oid}}, instance => '0');
$self->{output}->output_add(long_msg => sprintf("system status is %s.",
$self->{output}->output_add(long_msg => sprintf("system partition status is %s.",
$result->{synoSystemsystemStatus}));
my $exit = $self->get_severity(label => 'default', section => 'system', value => $result->{synoSystemsystemStatus});
if (!$self->{output}->is_status(value => $exit, compare => 'ok', litteral => 1)) {
@ -53,4 +53,4 @@ sub check {
}
}
1;
1;