diff options
-rw-r--r-- | debian/sitesummary-client.postinst | 4 | ||||
-rw-r--r-- | debian/sitesummary-client.templates | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/debian/sitesummary-client.postinst b/debian/sitesummary-client.postinst index ae1a242..0ad7cc0 100644 --- a/debian/sitesummary-client.postinst +++ b/debian/sitesummary-client.postinst @@ -88,6 +88,10 @@ if [ ! -f $config ] ; then dont_blame_nrpe=1 include=/etc/nagios/sitesummary-nrpe-commands.cfg EOF + db_get sitesummary-client/nagios-server + if [ "$RET" ] ; then + echo "allowed_hosts=$RET" >> $config + fi fi fi diff --git a/debian/sitesummary-client.templates b/debian/sitesummary-client.templates index 8247234..214759c 100644 --- a/debian/sitesummary-client.templates +++ b/debian/sitesummary-client.templates @@ -30,3 +30,8 @@ Default: false Description: Activate the Nagios NRPE config feature? This is an internal (hidden) debconf question. It should not be translated. +Template: db_get sitesummary-client/nagios-server +Type: string +Description: Host name of nagios server allowed to contact NRPE + This is an internal (hidden) debconf question. It should not be translated. + |