exclude range/ip, discovery

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
alakond
Posts: 6
Joined: Tue Aug 09, 2011 10:51 pm

exclude range/ip, discovery

Post by alakond »

hi!
How can I exclude IP from the search Discovery?

For example, I have Subnet (s) to scan: 172.17.0.0/16,
and I appear:

Image

You can exclude ip / range? Host is already added to another ip (192.168.x.y)
alakond
Posts: 6
Joined: Tue Aug 09, 2011 10:51 pm

Re: exclude range/ip, discovery

Post by alakond »

up
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: exclude range/ip, discovery

Post by gandalf »

I'm not a frequent user of that plugin. But to my knowledge, this would be a new feature which seems to be interesting. Of course, you may implement that and post a patch ...
R.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: exclude range/ip, discovery

Post by TheWitness »

Are you saying that you wish to ignore hosts that have already been discovered on a subnet with an identical sysName?

TheWitness
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?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: exclude range/ip, discovery

Post by TheWitness »

Please check the latest SVN. I believe it corrects this issue.
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?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: exclude range/ip, discovery

Post by gandalf »

TheWitness wrote:Are you saying that you wish to ignore hosts that have already been discovered on a subnet with an identical sysName?

TheWitness
I understood it as a request for excluding certain IP subranges from being scanned. E.g. we used quite large class B private nets with a specific IP address policy. So the address ranges is "nearly unused" and it would speed up things excluding those unused areas
R.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: exclude range/ip, discovery

Post by TheWitness »

It's more like if, say for example, you have hsrp enabled for a router, don't add three devices to the device list for that single subnet. Or if the router is sitting on multiple subnets, don't add it again and again.

That's been incorporated into the latest code.

TheWitness
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?
alakond
Posts: 6
Joined: Tue Aug 09, 2011 10:51 pm

Re: exclude range/ip, discovery

Post by alakond »

Network Discovery v 1.3

For example: WS-9

WS-9 config:

Code: Select all

 ip address 192.168.168.137 255.255.0.0
 ip address 172.17.7.254 255.255.255.0
 ip address 172.17.9.254 255.255.255.0

 network 172.17.7.0 0.0.0.255 area 1
 network 172.17.9.0 0.0.0.255 area 1
Image

Image

How do I hide (except IP) addresses do not need me?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: exclude range/ip, discovery

Post by TheWitness »

I'm pretty sure this was fixed already in the latest release. Remove all of the entries and see if you can repeat that.
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?
alakond
Posts: 6
Joined: Tue Aug 09, 2011 10:51 pm

Re: exclude range/ip, discovery

Post by alakond »

I removed all known hosts of Discovery (Console -> Utilities -> Clear Discovery Results), but after a while, the situation is repeated.
I can tell you do something to help to diagnose this problem?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: exclude range/ip, discovery

Post by TheWitness »

It uses regex to find common hosts. I don't read regex. So, the findhosts.php will need a minor change. What it is yet, I don't know.

You can search for 'isDuplicateHost' in that file and noodle with the code. If you can fix it, I'll get it into the latest code.
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?
alakond
Posts: 6
Joined: Tue Aug 09, 2011 10:51 pm

Re: exclude range/ip, discovery

Post by alakond »

please give a URL to the actual version plugin.

Apparently, we are talking about different versions :)

Very Thanks.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: exclude range/ip, discovery

Post by TheWitness »

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 1 guest