summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugins/NagiosGen.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed several bugs with last commit. Sorry, I'm a doofus.Chris St. Pierre2011-05-061-11/+10
|
* Rewrote NagiosGen config to use NagiosGen/config.xml, whichChris St. Pierre2011-05-061-88/+89
| | | | | | | | | | | | understands <Group> and <Client> tags, rather than the client-specific Properties/NagiosGen.xml and the group-specific but limited NagiosGen/parents.xml. Includes schema and bcfg2-lint updates necessary. Wrote conversion tool, nagiosgen-convert.py, which converts everything but the <default/> tag in the old NagiosGen.xml, which cannot be reasonably converted to StructFile format. Also removed a _lot_ of string modification in NagiosGen.py, which should make it a fair bit faster.
* Plugins: Add full PY3K compatibilitySol Jerome2011-04-261-2/+4
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Plugins: PY3K + PEP8 fixesSol Jerome2011-04-061-26/+27
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* NagiosGen: Dependency support (from Stéphane Graber <stgraber@ubuntu.com>)Narayan Desai2011-01-031-1/+36
| | | | | | | | | | | | | | | | | | | | | | From the patch description: As we have several hundred machines in Bcfg2 at work and are using NagiosGen to generate our Nagios configuration, the dependency tree was quite a mess. The following patch adds support for a 'parents.xml' file in the NagiosGen directory. This one contains a basic dependency tree like this: <Depends> <Depend name='something' on='something-else'> </Depends> The plugin will then use this file to add 'parents' tag to nagiosgen.cfg when possible. It's being added when generating nagiosgen.cfg instead of when generating the individual host entries for two reasons: - To avoid having to wait for a run of bcfg2 on all machines when changing parents.xml - To also support dynamic parents for manually added entries in NagiosGen (example: network equipement).
* NagiosGen: Allow default configuration via PropertiesTim Laszlo2010-07-161-5/+10
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5974 ce84e21b-d406-0410-9b95-82705330c041
* Updated files to match PEP 257 Fabian Affolter2010-06-091-4/+5
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5904 ce84e21b-d406-0410-9b95-82705330c041
* POSIX: Remove support for old-style posix entriesSol Jerome2009-11-191-5/+11
| | | | | | | | | | | This commit forces the user to specify <Path> entries on the server side while still maintaining compatibility with old clients via the POSIXCompat plugin. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5582 ce84e21b-d406-0410-9b95-82705330c041
* Pylint/PEP 8 Code cleanupsSol Jerome2009-10-071-15/+20
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5477 ce84e21b-d406-0410-9b95-82705330c041
* NagiosGen: Make properties use completely optionalNarayan Desai2009-07-241-2/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5384 ce84e21b-d406-0410-9b95-82705330c041
* NagiosGen: Add support for properties driven monitoring configurations ↵Narayan Desai2009-07-231-6/+16
| | | | | | (Patch from Nico Halpern) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5379 ce84e21b-d406-0410-9b95-82705330c041
* This patch is stage 1 of the plugin capabilities reworkNarayan Desai2009-01-051-2/+4
| | | | | | | | - define new plugin base classes - switch Plugin.__name__ => Plugin.name git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5004 ce84e21b-d406-0410-9b95-82705330c041
* Update NagiosGen to 0.9.6 interfaceSol Jerome2008-10-101-3/+5
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4937 ce84e21b-d406-0410-9b95-82705330c041
* NagiosGen minor updates (based on pylint suggestions)Narayan Desai2008-10-081-10/+13
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4929 ce84e21b-d406-0410-9b95-82705330c041
* Initial import of NagioGenNarayan Desai2008-10-081-0/+78
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4928 ce84e21b-d406-0410-9b95-82705330c041