From 44a321cb8a42d6c0ea2d96a1086a17f2134c89cc Mon Sep 17 00:00:00 2001 From: Ethan Galstad Date: Thu, 28 Feb 2002 06:42:51 +0000 Subject: Initial revision git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2 f882894a-f735-0410-b71e-b25c423dba1c --- contrib/urlize.pl | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 contrib/urlize.pl (limited to 'contrib/urlize.pl') diff --git a/contrib/urlize.pl b/contrib/urlize.pl new file mode 100644 index 00000000..8bb591f2 --- /dev/null +++ b/contrib/urlize.pl @@ -0,0 +1,16 @@ +#!/usr/bin/perl +# +# urlize.pl +# jcw, 5/12/00 +# +# A wrapper around Nagios plugins that provides a URL link in the output +# + +($#ARGV < 1) && die "Incorrect arguments"; +my $url = shift; + +chomp ($result = `@ARGV`); +print "$result\n"; + +# exit with same exit value as the child produced +exit ($? >> 8); -- cgit v1.2.3-74-g34f1