|| Print ||
|Nagios Community News|
|Saturday, 11 July 2009 12:48|
When you are one of a few System Administrators in a large enterprise, new hosts are added that you may not hear about. I created a Perl script that uses the “dig” command to:
When you initially run the script you will receive a listing of ALL hosts found in DNS, unless you modify the exclude search filters in the Perl script. However, once it is added to the host configuration file, the host will not be rediscovered in subsequent passes.
The Perl script was created quickly, so there is a whole lot of room for System Administrators to modify the script. The script is covered under the GNU license, so we ask that you share with the Nagios community any methods to improve the script.
Here is a link to the ZIP file. Nagios: Dynamically discover hosts on a domain and add them to a Nagios hosts file. The files are placed in a folder, then zipped so you do not have to worry about trying to find them once you open the package.