Discovery plugin truncating hostnames

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
jakbeatz
Posts: 49
Joined: Thu Aug 10, 2006 4:56 pm

Discovery plugin truncating hostnames

Post by jakbeatz »

Per the thread found here: http://forums.cacti.net/viewtopic.php?f ... 57#p214657

My hostnames contain periods, like 'device.location.domain.tld'. When the discovery plugin discovers my devices, it truncates the hostname to just 'device', which is non-descript because I have about 40 devices called device. Having them all called the same thing makes it hard to identify which of the 40 I actually want to look at.

Any workaround?
jakbeatz
Posts: 49
Joined: Thu Aug 10, 2006 4:56 pm

Re: Discovery plugin truncating hostnames

Post by jakbeatz »

I hacked a fix for this myself, but it would be great if someone could sanitize this and make it part of the release version of the plugin. I have do doubt that my hack has broken some sort of compatibility somewhere.

http://forums.cacti.net/viewtopic.php?f ... 61#p216861
beenpricked
Posts: 6
Joined: Tue Sep 20, 2011 5:35 pm

Re: Discovery plugin truncating hostnames

Post by beenpricked »

jakbeatz wrote:I hacked a fix for this myself, but it would be great if someone could sanitize this and make it part of the release version of the plugin. I have do doubt that my hack has broken some sort of compatibility somewhere.

http://forums.cacti.net/viewtopic.php?f ... 61#p216861
How has the hack treated you so far? I agree, kind of risky assuming it is something that would make sense to be included sooner than later. I have been reading some reviews of programmers online and it seems that the one's who know how to handle this kind of situation the best are the best reviews. Do you guys ever see those reviews, the ones on angie's list?
Last edited by beenpricked on Tue Oct 11, 2011 4:04 pm, edited 1 time in total.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Discovery plugin truncating hostnames

Post by gandalf »

Based on the latest conversions with the OP, we discussed the discovery/autom8 interaction. Currently, we are thinking about integrating both. So the requested feature (use "long" dns names vs. using hostnames) should be available as a configuration option in the resulting plugin.
The fix resolves the issue for the OP bit drops a feature that was recently implemented. A patch that I would accept should present a configuration option to choose between both ways
R.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Discovery plugin truncating hostnames

Post by TheWitness »

I did fix this in the latest SVN. However, what Gandalf states is accurate.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests