Cut sysmbols from SNMP query return.

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
code
Posts: 1
Joined: Mon Apr 25, 2005 8:00 am

Cut sysmbols from SNMP query return.

Post by code »

Hi all!

I have one task, that I've found diffucult to complete.
I want to draw some important statistics from Lotus Domino. I need to do a SNMP query, but return is in a string format: IMAP.Sessions.Inbound.Active = 60. This is a simple SNMP query (not indexed).
How can I remove "IMAP.Sessions.Inbound.Active = " from query retun and convert it in integer?

Thanks in advance.
ajeskey
Cacti User
Posts: 93
Joined: Mon Mar 28, 2005 4:31 pm
Location: Boston, MA

Post by ajeskey »

You may want to follow along with this thread

http://forums.cacti.net/viewtopic.php?p=30079#30079

I am working on the same thing.
- Aaron Jeskey
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

If it's not a data query, then a simple script is best. If it's just a string without Alpha characters, PHP will automatically convert to integer/double depending on the strings data representation.

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 0 guests