Updating OID in template

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

Moderators: Developers, Moderators

Post Reply
slackert
Posts: 6
Joined: Thu May 28, 2009 3:18 pm

Updating OID in template

Post by slackert »

Hello,

N00b problem here, I've searched the forum, the faq, the wiki, and the docs and can't seem to find an answer. I have a feeling it's something incredibly simple I'm missing....

I imported a template that contained a couple of wrong OIDs. I have already created devices, graphs, etc. that use the the template with the improper OIDs. I can update the OID in the template, that's simple. But how do I make anything that referenced the original OID pick up the new one? The old OID is still shown in the poller cache, which I have rebuilt.

An ugly workaround would be to fix the template, export it, re-import it, and recreate everything....But I'd rather not do that.

Running cacti-0.8.7d with spine 0.8.7c.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

What type of template did you import? You updated the data template which had the wrong OIDs, right? Unless its some broken/miscreated template, the OID should NOT be in the Data Source(s) for the device(s) too. Check 'em.
slackert
Posts: 6
Joined: Thu May 28, 2009 3:18 pm

Post by slackert »

This is the host template I imported:
http://forums.cacti.net/download.php?id=15910

From this thread:
http://forums.cacti.net/about27269.html

After that import, the items with the bad oids (the ones I want to modify) are under Data Templates -> [relevant template] -> Custom Data -> OID. I modify the OID there and save it, but it doesn't update any hosts using that.

Or I can go to Devices->[device]->Data Source List->[data source]->Edit Data Template which takes me to what looks like the same spot. I can update the oid and rebuild the poller cache, but the old oid is still polled.

Am I going about this the wrong way? Am I incorrect in my understanding that updating a template's oid should update all devices using that template?

Thanks for you help with this.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

I didn't import the template... But depending on how the user implemented the data template there are two things. Custom Data -> OID. If 'Use Per-Data Source Value' is checked (which is probably shouldn't be), then in Data Sources -> datasource name -> OID you can change it. Otherwise the Data Template which has the OID defined should only be the place you need to change it.

What poller are you using? I'd suggest cmd.php to start out with, then move to spine. Also spine 0.8.7d has been released on the annoucement forum. After clearing the poller cache, look in there for the data sources which use the OIDs you're interested in. Are they correct?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest