Get zero result

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

Moderators: Developers, Moderators

Post Reply
xitrumsg
Posts: 4
Joined: Fri Sep 14, 2007 6:41 am

Get zero result

Post by xitrumsg »

Hello All,
I write a perl script to get concurent calls from CiscoGW as following:

#!/usr/bin/perl
@lists = `snmpwalk -Ov -v 2c -c hcm_snmp_string 10.84.10.29 1.3.6.1.4.1.9.9.63.1.3.2.1.25`;
$calls = @lists/2;
print $calls;

I run the script by command line and see the result I need, then I use cacti ( 0.86j) to graph the result but nothing come out.

Any body can help me.

Million thanks.
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Didn't I already recommend what to do on this?

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?
xitrumsg
Posts: 4
Joined: Fri Sep 14, 2007 6:41 am

Post by xitrumsg »

I'm searching your comment.

Many thanks if you can point me where.

:oops:
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

The method you have chosen is not practical. You should use the snmp data input method and define the OID directly in the Data Template. Then you can create a Graph Template from the Data Template. Once that is done, you associate the Graph Template with one to many hosts.

The trick to the division is to create a CDEF that divides the result by 2 for all graph elements and or gprints.

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?
xitrumsg
Posts: 4
Joined: Fri Sep 14, 2007 6:41 am

Post by xitrumsg »

Thanks for your respone.

I'll try.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests