What data source provides for integers only?

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

Moderators: Developers, Moderators

Post Reply
leearcher
Posts: 8
Joined: Tue Oct 06, 2009 10:11 am

What data source provides for integers only?

Post by leearcher »

I am trying to monitor the IAX channel usage in Asterisk via Cacti and I can't find any data source type that will just display the current setting of the snmp query. Doing an snmpwalk for the relevant OID returns an integer value, which is the number of IAX channels currently in use. However Cacti is reporting current figures of X.XX. I have tried both Gauge and Absolute data source types and neither is giving me the actual figure.

All I want is for it report the current value as whatever the OID reports not some sort of average/difference. Is there an option for that or do I need to create some sort of custom rrd config?

Many thaks.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) Use GAUGE as the DS type.
2) you're going to need to use the 'make per 5 minutes' CDEF. By default, rrdtool displays the data over a 5 minute / 300 second window which is why you're seeing numbers smaller than the raw snmpwalk.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

I feat that the OP addresses the "usual" consolidation issue. See 1st link of my sig, RRDTool chapter, Consolidation
Reinhard
leearcher
Posts: 8
Joined: Tue Oct 06, 2009 10:11 am

Post by leearcher »

Hmm still not that obvious. I've used exact numbers but it's still different figures to the snmpwalk. I had a look at the docs but I've missed something cos I made some changes and it still didn't work.

Thanks
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Possibly you're experiencing the following: http://docs.cacti.net/manual:087:8_rrdt ... lues_shown
leearcher
Posts: 8
Joined: Tue Oct 06, 2009 10:11 am

Post by leearcher »

Quite possibly. Is there anyway of turning it off and just displaying the raw figure at the time of polling?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Possibly, but thats a better question suited for the rrdtool mailing list. I wasn't even aware rrdtool did that until a few months ago when a user posted that diagram...
leearcher
Posts: 8
Joined: Tue Oct 06, 2009 10:11 am

Post by leearcher »

I think I'll stick with running the exact number option on the snmpwalk and using realtime to get active stats as required.

Thanks
Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests