[monitoring-plugins] check_netdns.pl: Prototyping functions

Jan Wagner git at monitoring-plugins.org
Sun Oct 4 20:40:10 CEST 2015


 Module: monitoring-plugins
 Branch: master
 Commit: 5ca1bff80cf86c290a0803f3cf37aee9bd57d41f
 Author: Jan Wagner <waja at cyconet.org>
   Date: Sun Oct  4 19:50:18 2015 +0200
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=5ca1bff

check_netdns.pl: Prototyping functions

---

 plugins-scripts/check_netdns.pl | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/plugins-scripts/check_netdns.pl b/plugins-scripts/check_netdns.pl
index af1456b..8c63108 100755
--- a/plugins-scripts/check_netdns.pl
+++ b/plugins-scripts/check_netdns.pl
@@ -32,6 +32,9 @@ use lib "$FindBin::Bin";
 use utils;
 
 my $PROGNAME = "check_netdns";
+sub print_help ();
+sub print_version();
+sub print_usage ();
 
 $ENV{'PATH'}='@TRUSTED_PATH@';
 $ENV{'BASH_ENV'}=''; 
@@ -43,7 +46,7 @@ GetOptions("V" => $opt_V,         "version" => $opt_V,
 					 "t=i" => $opt_t,       "timeout=i" => $opt_t,
 					 "s=s" => $opt_s,       "server=s" => $opt_s,
 					 "H=s" => $opt_H,       "hostname=s" => $opt_H);
-                           
+
 # -h means display verbose help screen
 if($opt_h){ print_help(); exit 0; }
 



More information about the Commits mailing list