2009.07.29
RHCE Flash Cards Released
2008.01.11
Website Design Updated. This is a work in progress...
2008.01.11
RHCE Study Guide Removed due to a potential copyright issue
2007.12.03
RHCE Study Guide Released
nagios-config-build is a group of shell scripts that generate Nagios configuration files from a list of hostnames. It automatically resolves IP addresses from DNS, and provides a quick way to manage a large number of hosts without having to set up a complicated system.
nagios-config-build.tgz (16.88 KiB)
2009-12-11 release 0.0.1-1
See the Freshmeat project page.
Tested with Nagios v2 and v3
How to generate nagios config files from a list of hostnames. This is useful to get a simple configuration working on any number of hosts (tested up to 1000), when they all have similar attributes. To get different options for contacts, services, etc., the scripts can be copied and run in a different directory.
Input: *.dat files Output: output/hosts.cfg, and output/hostgroups.cfg
1) Place files containing hostnames, one per line with a .dat extension, in the current directory.
2) Run ./nagios-config-build.sh
3) Copy files from output directory to the proper location on the nagios server.
/usr/local/nagios/etc or /usr/local/nagios/etc/hosts or /usr/local/nagios/etc/objects
Please feel free to use the comment option of the blog post for questions, or comments.
nagios-config-build-0.0.1-1.tgz (15.16 KiB)
2009-12-11 release 0.0.1-1