From 8bea7e93c32531c9e0c00e87da45dbdad2d51ca2 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Wed, 2 Nov 2005 13:39:18 +0000 Subject: Apply patch by phil to substitute hostname into the notes_url git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@31 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- build-nagios | 3 +++ 1 file changed, 3 insertions(+) (limited to 'build-nagios') diff --git a/build-nagios b/build-nagios index 5899bf5..7185590 100755 --- a/build-nagios +++ b/build-nagios @@ -294,6 +294,9 @@ config['servers'].each_pair{ |name, server| # Handle hostextinfo config['hostgroups'][ server['_hostgroups'].first ]['_extinfo'].each_pair{ |k, v| + # substitute hostname into the notes_url + v = sprintf(v,name) if k == 'notes_url' + set_if_unset server['_extinfo'], k ,v } -- cgit v1.2.3