Which snmp data source type is needed?

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

Moderators: Developers, Moderators

Post Reply
User avatar
Frodoger
Cacti User
Posts: 94
Joined: Wed Jun 30, 2004 9:28 am
Location: Germany, Frankfurt am Main
Contact:

Which snmp data source type is needed?

Post by Frodoger »

Hello,

i want to collect data from my Microsoft SQL Server:
snmpwalk shows for physical Page reads:

Code: Select all

snmpwalk -v2c 172.xxx.xxx.xxx -c xxxxxxx .1.3.6.1.4.1.311.1.4.1.1.2.1.4
SNMPv2-SMI::enterprises.311.1.4.1.1.2.1.4.11.82.90.45.90.45.83.81.76.45.48.49 = Counter32: 1767025336
What is the correct snmp Data Source Type for that?
All i get with my tests is an 0 in the graphs.
Can i use the standard Generic SNMP OID templates for values like that?

I use cacti 8.6j under debian linux
The poller is cactid.


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

Post by BSOD2600 »

Looks like the correct one would be a counter. Of course this depends on how you want the data displayed, too. Counter shows change over time, where as Gauge will keep showing the same value.
User avatar
Frodoger
Cacti User
Posts: 94
Joined: Wed Jun 30, 2004 9:28 am
Location: Germany, Frankfurt am Main
Contact:

Post by Frodoger »

i have used gauge and counter in 2 seperate datasources.
after them i have used both data sources in a generic oid graph.
but both graphs shows only 0.

i have checked and both rrd where updated.



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

Post by BSOD2600 »

Follow this guide http://docs.cacti.net/node/283 why you're getting zero.

Are you sure cacti is collecting data which has been incremented?
User avatar
Frodoger
Cacti User
Posts: 94
Joined: Wed Jun 30, 2004 9:28 am
Location: Germany, Frankfurt am Main
Contact:

Post by Frodoger »

thanx BSOD2600.

What did you mean? I think i dont understand the question.

i have give .1.3.6.1.4.1.311.1.4.1.1.2.1.4 as OID to the datasource.
A test with getif and these OID from my pc works
A test with snmpwalk from the cacti host works also.

The datasource debug says:

Code: Select all

/usr/bin/rrdtool create \
/usr/share/cacti/rra/xxxxxxxx_snmp_oid_2082.rrd \
--step 300  \
DS:snmp_oid:COUNTER:600:0:1000000000000 \
RRA:AVERAGE:0.5:1:25920 \
RRA:AVERAGE:0.5:24:2250 \
RRA:AVERAGE:0.5:6:9000 \
RRA:AVERAGE:0.5:288:797 \
RRA:MIN:0.5:1:25920 \
RRA:MIN:0.5:24:2250 \
RRA:MIN:0.5:6:9000 \
RRA:MIN:0.5:288:797 \
RRA:MAX:0.5:1:25920 \
RRA:MAX:0.5:24:2250 \
RRA:MAX:0.5:6:9000 \
RRA:MAX:0.5:288:797 \
RRA:LAST:0.5:1:25920 \
RRA:LAST:0.5:6:9000 \
RRA:LAST:0.5:24:2250 \
RRA:LAST:0.5:288:797 \
The debug from the graph says:

Code: Select all

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="xxxxxxxx - page reads counter" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
DEF:a="/usr/share/cacti/rra/xxxxxxxx_snmp_oid_2082.rrd:snmp_oid:LAST \
DEF:b="/usr/share/cacti/rra/xxxxxxxx_snmp_oid_2082.rrd":snmp_oid:AVERAGE \
AREA:a#35962B:""  \
GPRINT:a:LAST:"Current\:%8.2lf %s"  \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:b:MAX:"Maximum\:%8.2lf %s\n" 

RRDTool Says:

OK
And yes i will check and use the tutorial again.
User avatar
Frodoger
Cacti User
Posts: 94
Joined: Wed Jun 30, 2004 9:28 am
Location: Germany, Frankfurt am Main
Contact:

Post by Frodoger »

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

Post by BSOD2600 »

So since you apparently followed that guide, what data is cacti returning each polling cycle for that snmp query?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests