diff options
-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 } |