Bulk add of hosts to nagios

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
teknoratti
Posts: 7
Joined: Fri Apr 29, 2011 9:17 am

Bulk add of hosts to nagios

Post 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,
Locked