PDA

View Full Version : Discovery of hosts with multiple IPs?


graeme
18-08-2008, 18:58
Hi all,

I'm trying to get Zabbix's discovery features tweaked to add my servers automagically. I've mostly got it working (detects servers running the zabbix agent and adds them to monitoring, with the right OS and services monitoring), but I've run into a snag:

When it scans a subnet, if a host is listening on multiple IPs, it doesn't seem to be smart enough to figure out that it's actually the same host, and starts monitoring them multiple times. I figured that since they're all running the active agent, it could just talk to the agent and the agent could tell it they're actually the same host, but that doesn't seem to be happening.

Is there a way to configure auto-discovery to take into account hosts with multiple IPs, and only create one host entry for them? I searched through the forums and the docs and couldn't see anything off hand, but if there's something obvious I'm missing, I'd love a pointer to it. ;)

Thanks!

vinny
19-08-2008, 11:47
To filter this, the only way i see is adding a discovery check to detect snmp hostname maybe ?
to be tested :)

vinny

graeme
19-08-2008, 18:44
Hmm.. not too keen on installing snmpd on all my servers if they're already running the Zabbix agent, seems like overkill. Can't the agent already return the hostname?

Regardless, if I had a probe for the hostname, how would I filter based on that to group the IPs together?

graeme
21-08-2008, 19:15
Anyone? This seems like it should be something easy, but I'm starting to get the impression it wasn't actually planned for.

i0x71
10-06-2011, 17:34
Well its been a while since last post, has anyone figured it out yet ?
I am using version 1.8.5

toddblake
21-07-2011, 19:57
I did it via setting the "Device uniqueness criteria" dropdown to 'Zabbix agent "system.hostname"' and including that particular metric in my list of items to check upon discovery. Only caveat is that it requires an agent but that or snmp are the only sure-fire way.