diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2005-12-15 17:06:55 (GMT) |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2005-12-15 17:06:55 (GMT) |
commit | 71ce143ab1cac10b974084a21653b71bee68fe55 (patch) | |
tree | 2d7f757c122e6caef0297173ee55d8a2048dc1cf /NPTest.pm | |
parent | e03d87d8aef6701e7245b98800e67b64319bf7b2 (diff) | |
download | monitoring-plugins-71ce143ab1cac10b974084a21653b71bee68fe55.tar.gz |
Display errors with slave queries correctly. Added extra tests for slaves
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1299 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'NPTest.pm')
-rw-r--r-- | NPTest.pm | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -46,6 +46,8 @@ default via the C<use NPTest;> statement. | |||
46 | 46 | ||
47 | =item getTestParameter( "ENV_VARIABLE", $brief_description, $default ) | 47 | =item getTestParameter( "ENV_VARIABLE", $brief_description, $default ) |
48 | 48 | ||
49 | $default is optional. | ||
50 | |||
49 | This function allows the test harness | 51 | This function allows the test harness |
50 | developer to interactively request test parameter information from the | 52 | developer to interactively request test parameter information from the |
51 | user. The user can accept the developer's default value or reply "none" | 53 | user. The user can accept the developer's default value or reply "none" |
@@ -302,7 +304,7 @@ sub getTestParameter | |||
302 | { | 304 | { |
303 | my( $param, $envvar, $default, $brief, $scoped ); | 305 | my( $param, $envvar, $default, $brief, $scoped ); |
304 | my $new_style; | 306 | my $new_style; |
305 | if (scalar @_ == 3) { | 307 | if (scalar @_ <= 3) { |
306 | ($param, $brief, $default) = @_; | 308 | ($param, $brief, $default) = @_; |
307 | $envvar = $param; | 309 | $envvar = $param; |
308 | $new_style = 1; | 310 | $new_style = 1; |