Page 1 of 1

Bulk add of hosts to nagios

Posted: Thu Jan 12, 2012 12:30 pm
by teknoratti
Looking for a tool to import hosts in bulk to a .cfg for monitoring.

right now for example, we have windows clients we want to monitor but I have to add the hosts manually into a windows.cfg file

Ex:

define host{
use windows-workstation ; Inherit default values from a template
host_name winserver ; The name we're giving to this host
alias My Windows Server ; A longer name associated with the host
address 10.101.1.195 ; IP address of the host
}

Right now all I do is copy and paste, then change the ip address to reflect the individual hosts.

eventually I want to do the same for printers and other devices which we have in our environment.

Thanks,