aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2010-01-18 17:27:22 +0000
committerPetter Reinholdtsen <pere@hungry.com>2010-01-18 17:27:22 +0000
commit552bd3e017ba3a635ef99f98b4a312c183d41ab6 (patch)
treee48747e038c98d76e2fe7ef5049a361f3288ea64
parent09482b684dc46ac03614c07a993a9d7832e2e0da (diff)
downloadsitesummary-552bd3e017ba3a635ef99f98b4a312c183d41ab6.tar.gz
sitesummary-552bd3e017ba3a635ef99f98b4a312c183d41ab6.tar.bz2
sitesummary-552bd3e017ba3a635ef99f98b4a312c183d41ab6.tar.xz
Make it possible to preseed the nagios server for the nrpe configuration.
-rw-r--r--debian/sitesummary-client.postinst4
-rw-r--r--debian/sitesummary-client.templates5
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.
+