diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-03-13 00:48:00 +0100 |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-03-13 00:48:00 +0100 |
commit | 54a099ed6d4ae57835095083aa825462eb03f369 (patch) | |
tree | cf7af5c49f0c8ebc5574b0efc1af3871f1717357 /NPTest.pm | |
parent | 89df16e7503539c2b0da7e95375b470559bb94ec (diff) | |
parent | 02acc76edc5c646af90a6168df61c711aa3d11d6 (diff) | |
download | monitoring-plugins-54a099ed6d4ae57835095083aa825462eb03f369.tar.gz |
Merge branch 'master' into refactor/check_tcp
Diffstat (limited to 'NPTest.pm')
-rw-r--r-- | NPTest.pm | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -15,6 +15,8 @@ use warnings; | |||
15 | use Cwd; | 15 | use Cwd; |
16 | use File::Basename; | 16 | use File::Basename; |
17 | 17 | ||
18 | use JSON; | ||
19 | |||
18 | use IO::File; | 20 | use IO::File; |
19 | use Data::Dumper; | 21 | use Data::Dumper; |
20 | 22 | ||
@@ -617,6 +619,8 @@ sub testCmd { | |||
617 | chomp $output; | 619 | chomp $output; |
618 | $object->output($output); | 620 | $object->output($output); |
619 | 621 | ||
622 | eval { $object->{'mp_test_result'} = decode_json($output) }; | ||
623 | |||
620 | alarm(0); | 624 | alarm(0); |
621 | 625 | ||
622 | my ($pkg, $file, $line) = caller(0); | 626 | my ($pkg, $file, $line) = caller(0); |