I am very new to Nagios…managed to install nagios on fedora 9 and successfully setup to monitor a test window pc as per guide…
I came across nagios marco…sound simple…however i dont know where to place all this macro…
based on this example below, if u want to monitor 3 hosts, i would need to define 3 times “define host…” where do i place the “define command…”? inside window.cfg?
define host{
host_name linuxbox
address 192.168.1.2
check_command check_ping
…
}
as you defined the first host you’ll need to define the other hosts. If you have the same check on more than one host you can defin the service with more than one host.
as you defined the first host you’ll need to define the other hosts. If you have the same check on more than one host you can defin the service with more than one host.[/quote]
hi luca,
thank you for your reply however i dont really get your points…would u mind to explain a bit more?Sorry for the inconvenience caused.
if i have 5 hosts to monitor for ping server,i will define 5 hosts under “define hosts”…but where do i place “define command”? how to use macro?