Code

Fixed output from -e in check_disk (Andreas Behal)
[nagiosplug.git] / NPTest.pm
index 1372d1423042bcaf0357f77367679cd6ccf08aad..432f3968cec95bd351f43ed4e990067b1e6e0fce 100644 (file)
--- a/NPTest.pm
+++ b/NPTest.pm
@@ -603,6 +603,13 @@ sub perf_output {
        return $1 || "";
 }
 
+sub only_output {
+       my $self = shift;
+       $_ = $self->{output};
+       /(.*?)\|/;
+       return $1 || "";
+}
+
 sub testCmd {
        my $class = shift;
        my $command = shift or die "No command passed to testCmd";