TECHZEN Zenoss User Community ARCHIVE  

confused on ip address vs hostname

Subject: confused on ip address vs hostname
Author: [Not Specified]
Posted: 2016-05-13 08:25

I've asked this question before and didn't get an answer but maybe I ddin't ask it correctly. Can zenoss monitor by hostname instead of an ip address If I have a device called phone414.mydomain.com and it's ip address changes periodically can zenoss monitor it without manually updating the ip address in zenoss when it changes It seems simple but I haven't observed that it works that way.



Subject: IP VS hostname
Author: [Not Specified]
Posted: 2016-05-26 09:13

Yes, Zenoss allows you to do that.

When you add a new device you will be asked either for a Name or IP. You can use either one, but if using hostname you will rely on DNS

If you create a monitoring template and use the "command" type data source to run a local script, you can then define if you want to use a hostname vs IP like this:

/usr/local/zenoss/libexec/myzenossscritpspath/check_http ${device/manageIp} -> for IP

or

/usr/local/zenoss/libexec/myzenossscritpspath/check_http ${dev/id} --> For hostname

Cheer,

-Juan



Subject: If you discover devices on a
Author: [Not Specified]
Posted: 2016-05-26 09:32

If you discover devices on a network will it do a reverse lookup to find the name or are you stuck with ip's in that case Are you saying that the devices have to be entered manually for hostname to work



Subject: You can add the device using
Author: Jay Stanley
Posted: 2016-05-31 09:06

You can add the device using dns to resolve the IP. But the IP will not change if DNS changes without additional work being done (Like a trigger for example)



Subject: ip address vs hostname
Author: Larry Ouellette
Posted: 2016-06-30 10:40

I'm still confused. If I add zenoss.com using the hostname only, it resolves to IP address 107.21.104.61

but that can, and will, change. We want to ping an AWS hostname, and know that the IP address will change randomly without warning. When that happens, the host will be considered DOWN! and our Systems Admintration support will get alerted. Since Zenoss always resolves an IP address when you add a device, how do you get it to ingore it



Subject: I think you're out of luck.
Author: [Not Specified]
Posted: 2016-06-30 11:37

I think you're out of luck. Zenoss works with ip address only.



< Previous
Zenoss-discovered Networks do not appear in list (4.2.5)
  Next
Interface Trigger
>