Hosts file - help
Chaudhry, Zaeem
zaeem.chaudhry at fmr.com
Tue Mar 14 22:44:21 CET 2006
Hello,
Can I use an IP address instead of a DNS name for hosts in my
/usr/local/nagios/etc/servers/hosts.cfg file? Is this the only place
where I can define hosts to be monitored by Nagios? I can ping the host
below but cannot monitor it even when I use a fully qualified DNS name
for this host.
Currently, my host file looks like this:
define host {
use host-template
host_name 192.168.0.2
alias 192.168.0.2
address 192.168.0.2
}
define service {
use service-http
host_name 192.168.0.2
}
I have also tried:
define host {
use host-template
host_name dns.fmr.com
alias dns.fmr.com
address dns.fmr.com
}
define service {
use service-http
host_name dns.fmr.com
}
Do you see any config problems?
Thanks,
Zaeem.
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list