Take data with SNMP OID

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

Moderators: Developers, Moderators

Post Reply
oscar.sanabria
Cacti User
Posts: 53
Joined: Tue Apr 04, 2006 3:45 pm
Location: Colombia
Contact:

Take data with SNMP OID

Post by oscar.sanabria »

Hi.

I am taking datas from SNMP OID Generic; the mib is : 1.3.6.1.4.1.4981.1.10.1.6.1

When i try to see my graphs that dont have datas, but if i see my log:

07/05/2006 12:11:29 PM - CMDPHP: Poller[0] Host[241] DS[3598] SNMP: v1: x.x.x.x, dsname: snmp_oid, oid: .1.3.6.1.4.1.4981.1.10.1.6.1,
output: 902



My debug Mode:

RDTool Command:

/usr/local/rrdtool-1.2.12/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="CMTS Bga -DS 0/0 - CM DS" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="CM DS" \
--slope-mode \
DEF:a="/usr/local/apache2/htdocs/cacti/rra/cmts_bga_snmp_oid_3598.rrd":snmp_oid:AVERAGE \
AREA:a#FFAB00:"CM DS" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n"

RRDTool Says:

OK


My Data Source Debug Mode:

Data Source Debug

/usr/local/rrdtool-1.2.12/bin/rrdtool create \
/usr/local/apache2/htdocs/cacti/rra/cmts_bga_snmp_oid_3598.rrd \
--step 300 \
DS:snmp_oid:GAUGE:600:0:10000 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MIN:0.5:1:600 \
RRA:MIN:0.5:6:700 \
RRA:MIN:0.5:24:775 \
RRA:MIN:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
RRA:LAST:0.5:1:600 \
RRA:LAST:0.5:6:700 \
RRA:LAST:0.5:24:775 \
RRA:LAST:0.5:288:797 \



Anybody can say me what should be my problem?

Thanks a lot

My grpah:
Attachments
graph_image.jpg
graph_image.jpg (18.1 KiB) Viewed 2967 times
Giorgio
Posts: 21
Joined: Wed Jun 21, 2006 3:28 am

Post by Giorgio »

Maybe you have max value smaller than the Output.

Giorgio
danbeck
Posts: 30
Joined: Tue Jun 20, 2006 12:08 pm
Location: Huntsville, Alabama
Contact:

Post by danbeck »

Oscar,

From your rrdtool output, it just looks like you haven't waited long enough for data to accumulate in order to be able to show anything significant. Are you still having this problem?
-Daniel

[url=http://dealnews.com/developers/cacti/memcached.html]memcached Template[/url] - Version 1.0

[url=http://dealnews.com/developers/]dealnews.com/developers[/url] - Useful scripts and Cacti templates.
[url=http://dealnews.com/]dealnews.com[/url] - How to go broke saving money.
oscar.sanabria
Cacti User
Posts: 53
Joined: Tue Apr 04, 2006 3:45 pm
Location: Colombia
Contact:

Fixed problem

Post by oscar.sanabria »

i needed change o quit the select for "Maximum Value
Use Per-Data Source Value (Ignore this Value) " , and next change the 100 by 10000 into data template.

Now i have the follow graph:

Thanks a lot.
Attachments
DS_CM.jpg
DS_CM.jpg (397.3 KiB) Viewed 2887 times
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests