diff options
author | Peter Palfrader <peter@palfrader.org> | 2005-11-02 13:39:18 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2005-11-02 13:39:18 +0000 |
commit | 8bea7e93c32531c9e0c00e87da45dbdad2d51ca2 (patch) | |
tree | dc2e1cd2ccb58285312402f1866043c8e36f01a4 | |
parent | 7e390470d930006083d5fe2a8fc28e1487f4d91e (diff) |
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
-rwxr-xr-x | build-nagios | 3 |
1 files changed, 3 insertions, 0 deletions
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 } |