Cacti 1.2.4 Search Exact Device

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
pradeeps
Posts: 36
Joined: Tue Apr 23, 2019 7:56 am

Cacti 1.2.4 Search Exact Device

Post by pradeeps »

Hello Folks,
I recently migrated cacti from 0.8.8.h to 1.2.4 and in a bit of learning curve to understand the features. In cacti 0.8.8.h I used to search devices through exact IP address in a search field using quotes. However looks like the newer version doesnt like it.
Here is the link I use to search exact IP address/device
Capture.JPG
Capture.JPG (19.45 KiB) Viewed 1080 times
On new cacti with its supported link but using quotes.
new-cacti.JPG
new-cacti.JPG (21.18 KiB) Viewed 1080 times
Any idea what am I missing?
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Cacti 1.2.4 Search Exact Device

Post by TheWitness »

It's a regex, so you need to escape the periods.
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?
pradeeps
Posts: 36
Joined: Tue Apr 23, 2019 7:56 am

Re: Cacti 1.2.4 Search Exact Device

Post by pradeeps »

Any example on how to do that? Sorry I am not an expert in regex.
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Cacti 1.2.4 Search Exact Device

Post by Osiris »

"192\.168\.1\.1"
Before history, there was a paradise, now dust.
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Cacti 1.2.4 Search Exact Device

Post by Osiris »

You can also do:

(hosta|hostb|hostc|...)
Before history, there was a paradise, now dust.
pradeeps
Posts: 36
Joined: Tue Apr 23, 2019 7:56 am

Re: Cacti 1.2.4 Search Exact Device

Post by pradeeps »

It takes the regex literally as a string.
Capture4.JPG
Capture4.JPG (20.01 KiB) Viewed 781 times

Code: Select all

http://cacti/cacti/graph_view.php?action=preview&host_id=0&rows=-1&columns=-1&graph_template_id=-1&thumbnails=true&rfilter=%22192\.168\.1\.1%22
Capture3.JPG
Capture3.JPG (41.09 KiB) Viewed 781 times
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests