To monitor multiple windows server using nagios, define multiple hosts in the windows.cfg mentioned in the step#3. For example, your /usr/local/nagios/etc/objects/windows.cfg will looks like the following:
define host{
use windows-server
host_name remote-windows-host1
alias Remote Windows Host1
address 192.168.1.4
}
define host{
use windows-server
host_name remote-windows-host2
alias Remote Windows Host2
address 192.168.1.5
}
----===----
got it working, but it took some trial and error. Essentially just making
copies of the sample windows.cfg wasn’t working, so I had to comment out
everything in copy and start one thing at a time until I got it right.
From what I can tell, you need to keep the ‘hostgroup’ section commented
out in all but the first .cfg you make. This will set the hostgroup for
the template ‘windows-servers’, so any other host added that uses that
template will automatically be added. I got errors if I included this in
the other .cfg’s. I think multiple .cfgs, one for each server, is a better way for me to do
it, because it will keep them more organized. I support tens of small
businesses all over my area and am working to monitor them all over
the Internet. This is method just makes more sense to me. Hope this helps, Carlos! Post back with your progress!



