mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-22 22:56:58 -04:00
Codespell fixes
This commit is contained in:
parent
76971dea75
commit
c4fd34ed79
2 changed files with 5 additions and 5 deletions
|
|
@ -288,7 +288,7 @@ int main(int argc, char **argv) {
|
|||
unit.name = strdup(filesystem->group);
|
||||
measurements = current = add_measurement_list(NULL, unit);
|
||||
} else {
|
||||
// if this is the first element of a group, the name of the previos entry is different
|
||||
// if this is the first element of a group, the name of the previous entry is different
|
||||
if (strcmp(filesystem->group, current->unit.name) != 0) {
|
||||
// so, this must be the first element of a group
|
||||
measurement_unit unit = create_measurement_unit_from_filesystem(*filesystem, config.display_mntp);
|
||||
|
|
@ -310,7 +310,7 @@ int main(int argc, char **argv) {
|
|||
mp_add_subcheck_to_check(&overall, unit_sc);
|
||||
}
|
||||
} else {
|
||||
// Aparently no machting fs found
|
||||
// Apparently no machting fs found
|
||||
mp_subcheck none_sc = mp_subcheck_init();
|
||||
xasprintf(&none_sc.output, "No filesystems were found for the provided parameters");
|
||||
|
||||
|
|
@ -833,7 +833,7 @@ check_disk_config_wrapper process_arguments(int argc, char **argv) {
|
|||
warn_freeinodes_percent, crit_freeinodes_percent);
|
||||
}
|
||||
|
||||
// If a list of paths has not been explicitely selected, find entire
|
||||
// If a list of paths has not been explicitly selected, find entire
|
||||
// mount list and create list of paths
|
||||
if (!path_selected && !result.config.path_ignored) {
|
||||
for (struct mount_entry *me = result.config.mount_list; me; me = me->me_next) {
|
||||
|
|
|
|||
|
|
@ -39,13 +39,13 @@ like($result->{'mp_test_result'}->{'checks'}->[0]->{'state'}, "/OK/", "First sub
|
|||
like($result->{'mp_test_result'}->{'checks'}->[1]->{'state'}, "/OK/", "Second sub result is OK");
|
||||
|
||||
my $absolut_space_mp1 = $result->{'mp_test_result'}->{'checks'}->[1]->{'checks'}->[0]->{'perfdata'}->[0]->{'max'}->{'value'};
|
||||
# print("absolut space on mp1: ". $absolut_space_mp1 . "\n");
|
||||
# print("absolute space on mp1: ". $absolut_space_mp1 . "\n");
|
||||
|
||||
my $free_percent_on_mp1 = ($result->{'mp_test_result'}->{'checks'}->[1]->{'checks'}->[0]->{'perfdata'}->[0]->{'value'}->{'value'} / ($absolut_space_mp1/100));
|
||||
print("free percent on mp1: ". $free_percent_on_mp1 . "\n");
|
||||
|
||||
my $absolut_space_mp2 = $result->{'mp_test_result'}->{'checks'}->[0]->{'checks'}->[0]->{'perfdata'}->[0]->{'max'}->{'value'};
|
||||
# print("absolut space on mp2: ". $absolut_space_mp2 . "\n");
|
||||
# print("absolute space on mp2: ". $absolut_space_mp2 . "\n");
|
||||
|
||||
my $free_percent_on_mp2 = ($result->{'mp_test_result'}->{'checks'}->[0]->{'checks'}->[0]->{'perfdata'}->[0]->{'value'}->{'value'}/ ($absolut_space_mp2/100));
|
||||
print("free percent on mp2: ". $free_percent_on_mp2 . "\n");
|
||||
|
|
|
|||
Loading…
Reference in a new issue