diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2006-10-12 13:58:43 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2006-10-12 13:58:43 +0000 |
commit | bd9a612f6c18fcc9b17e5abf58def18b19521d82 (patch) | |
tree | c4bb4e93ccbca424b2bd7aeb2a6ad799bc3e3791 /NPTest.pm | |
parent | cff53455ffc4d4df7214f8d671b3dca7ca26f51d (diff) | |
download | monitoring-plugins-bd9a612f6c18fcc9b17e5abf58def18b19521d82.tar.gz |
Fixed output from -e in check_disk (Andreas Behal)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1490 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'NPTest.pm')
-rw-r--r-- | NPTest.pm | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -603,6 +603,13 @@ sub perf_output { | |||
603 | return $1 || ""; | 603 | return $1 || ""; |
604 | } | 604 | } |
605 | 605 | ||
606 | sub only_output { | ||
607 | my $self = shift; | ||
608 | $_ = $self->{output}; | ||
609 | /(.*?)\|/; | ||
610 | return $1 || ""; | ||
611 | } | ||
612 | |||
606 | sub testCmd { | 613 | sub testCmd { |
607 | my $class = shift; | 614 | my $class = shift; |
608 | my $command = shift or die "No command passed to testCmd"; | 615 | my $command = shift or die "No command passed to testCmd"; |