summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugins
diff options
context:
space:
mode:
authorSol Jerome <solj@ices.utexas.edu>2008-10-10 00:19:13 +0000
committerSol Jerome <solj@ices.utexas.edu>2008-10-10 00:19:13 +0000
commit2ff9955ad576e8e3b5d0b0891c8ee38e7ab23aa2 (patch)
treecf33bc6c82bf0688d26246b7bc8c3855321c78fc /src/lib/Server/Plugins
parent3452092321e545b6113c8965c862b76fdab951d5 (diff)
downloadbcfg2-2ff9955ad576e8e3b5d0b0891c8ee38e7ab23aa2.tar.gz
bcfg2-2ff9955ad576e8e3b5d0b0891c8ee38e7ab23aa2.tar.bz2
bcfg2-2ff9955ad576e8e3b5d0b0891c8ee38e7ab23aa2.zip
Update NagiosGen to 0.9.6 interface
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4937 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Plugins')
-rw-r--r--src/lib/Server/Plugins/NagiosGen.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/Server/Plugins/NagiosGen.py b/src/lib/Server/Plugins/NagiosGen.py
index f754fea3c..c3f03dc13 100644
--- a/src/lib/Server/Plugins/NagiosGen.py
+++ b/src/lib/Server/Plugins/NagiosGen.py
@@ -6,13 +6,15 @@ import Bcfg2.Server.Plugin
LOGGER = logging.getLogger('Bcfg2.Plugins.NagiosGen')
host_config_fmt = \
-'''define host{
+'''
+define host{
use default
host_name %s
alias %s
-address %s'''
+address %s
+'''
-class NagiosGen(Bcfg2.Server.Plugin.Plugin):
+class NagiosGen(Bcfg2.Server.Plugin.GeneratorPlugin):
'''NagiosGen is a Bcfg2 plugin that dynamically generates
Nagios configuration file based on Bcfg2 data.'''
__name__ = 'NagiosGen'