Synology wording

This commit is contained in:
UrBnW 2020-06-09 22:11:02 +02:00
parent 1cac1c05fd
commit 2ef4ca94c5
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;