From: Jim A. <ji...@ji...> - 2010-06-29 14:21:20
|
On 29 June 2010 06:40, Network Operation Center FMC Luxemburg <NO...@eu...> wrote: > Hi everybody, > > I'm looking for a way to check out the mapping between a hostname and IP > address. > > Example: IP 192.168.0.1 exists and if the hostname foo.mylan.com is not > associated with this IP, I would have an alarm. > > Indeed the script below returns no alarm : > > define host { > use unix-server > host_name foo.mylan.com > display_name foo > address 192.168.0.1 > check_command check_http > } > > define service { > use local-service > host_name foo.mylan.com > service_description HTTP local > check_command check_http > } If you are referring to name/address resolution by DNS, then does the check_dns plugin do what you want? |