|
|
@ -45,9 +45,9 @@ if ($zpool){ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if ($what){ |
|
|
|
if ($what){ |
|
|
|
print ((defined $json->{$pool}->{$what}) ? $json->{$pool}->{$what} : 'ZBX_UNSUPORTED'); |
|
|
|
print ((defined $json->{$pool}->{$what}) ? $json->{$pool}->{$what} : 'ZBX_NOTSUPPORTED'); |
|
|
|
} elsif ($pool){ |
|
|
|
} elsif ($pool){ |
|
|
|
print ((defined $json->{$pool}) ? to_json($json->{$pool}, { pretty => $pretty }) : 'ZBX_UNSUPORTED'); |
|
|
|
print ((defined $json->{$pool}) ? to_json($json->{$pool}, { pretty => $pretty }) : 'ZBX_NOTSUPPORTED'); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
print to_json($json, { pretty => $pretty }); |
|
|
|
print to_json($json, { pretty => $pretty }); |
|
|
|
} |
|
|
|
} |
|
|
|