summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 268ad0a)
raw | patch | inline | side by side (parent: 268ad0a)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Mon, 19 Dec 2005 09:25:19 +0000 (09:25 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Mon, 19 Dec 2005 09:25:19 +0000 (09:25 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1301 f882894a-f735-0410-b71e-b25c423dba1c
NPTest.pm | patch | blob | history |
diff --git a/NPTest.pm b/NPTest.pm
index 7ecf74399779bf31aa16215bedb36517f638db21..e321623bff12fe0bebae610f277d5e50a157217f 100644 (file)
--- a/NPTest.pm
+++ b/NPTest.pm
user. The user can accept the developer's default value or reply "none"
which will then be returned as "" for the test to skip if appropriate.
+If a parameter needs to be entered and the test is run without a tty
+attached (such as a cronjob), this routine will die causing the test to
+fail.
+
Responses are stored in an external, file-based
cache so subsequent test runs will use these values. The user is able
to change the values by amending the values in the file /var/tmp/NPTest.pm,
return $default;
}
+ die "Need to manually enter test parameter $param" unless (-t STDERR);
+
my $userResponse = "";
while ( $userResponse eq "" )