[SOLVED] Data Template not being used properly

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

Moderators: Developers, Moderators

Post Reply
the_sphynx
Posts: 21
Joined: Wed Aug 04, 2004 4:28 pm
Location: Thornton, CO

[SOLVED] Data Template not being used properly

Post by the_sphynx »

I have created two data templates. Both get simple SNMP OIDs. I am able to get/walk both OIDs via cli:

Code: Select all

cacti # snmpget -v2c -c xxx 10.101.64.152 .1.3.6.1.4.1.318.1.1.1.2.2.5.0
SNMPv2-SMI::enterprises.318.1.1.1.2.2.5.0 = INTEGER: 3

cacti # snmpget -v2c -c xxx 10.101.64.152 .1.3.6.1.4.1.318.1.1.1.2.2.6.0
SNMPv2-SMI::enterprises.318.1.1.1.2.2.6.0 = INTEGER: 0
When I apply the graph template to the host the graph gets created but no values. After reading a few posts setting cacti to DEBUG should point me in the right direction and it kind of did:

Code: Select all

10/23/2009 02:35:07 PM - SPINE: Poller[0] Host[86] DS[1754] SNMP: v2: 10.101.64.152, dsname: apc_bad_batt, oid: .1.3.6.1.4.1.318.1.1.1.2.2.6, value: U
10/23/2009 02:35:07 PM - SPINE: Poller[0] Host[86] DS[1755] SNMP: v2: 10.101.64.152, dsname: apc_batt_num, oid: .1.3.6.1.4.1.318.1.1.1.2.2.5, value: U
As you can see the OIDs are wrong as they are missing the ending ".0".
The data sources DO show the full OID though. I have rebuilt the poller cache three times with no success.
I can provide the data templates if need it. Any help is greatly appreciated.
Last edited by the_sphynx on Fri Oct 23, 2009 4:38 pm, edited 1 time in total.
Thanks,

Bryan
the_sphynx
Posts: 21
Joined: Wed Aug 04, 2004 4:28 pm
Location: Thornton, CO

Post by the_sphynx »

I switched the host to use SNMP v1 and the graphs are receiving data now. Still don't know why v2c isn't working. I'll consider it solved but still weird.
Thanks,

Bryan
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest