Problem with custom Data Template OID

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

Moderators: Developers, Moderators

Post Reply
pato
Posts: 17
Joined: Thu Sep 09, 2010 10:35 am

Problem with custom Data Template OID

Post by pato »

Hi
I created a new Data Template for an APC UPS.
That seems to have worked somewhat.
I created 3 Data Source Items which each a Name, Internal Data Source Name, OID and saved it.
I discovered now that each time I change the OID for one of those 3 Data Sources, it overwrites it for the other two :/
Is this a bug or did I missunderstand something in the manual?
Cacti is the latest release under Debian.

Thanks,
Pato
Attachments
apc-phasen.jpg
apc-phasen.jpg (88.18 KiB) Viewed 1630 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) others have already created snmp apc templates/scripts. unless you like reinventing the wheel, search.

2) a data template can only have one OID.

3) this should be made using an snmp data query script.
pato
Posts: 17
Joined: Thu Sep 09, 2010 10:35 am

Post by pato »

I try to get the Ampere output off all 3 phases of the UPS, something none of the supplied templates/scripts can (or at least I couldn't find one that can do that).

2) damn, in that case I need to try 3). Back to the manual.

What I try, is to get is the output of those three OID:
.1.3.6.1.4.1.318.1.1.1.9.3.3.1.6.1.1.1
.1.3.6.1.4.1.318.1.1.1.9.3.3.1.6.1.1.2
.1.3.6.1.4.1.318.1.1.1.9.3.3.1.6.1.1.3
Merged into one graphic, each as a single line.
pato
Posts: 17
Joined: Thu Sep 09, 2010 10:35 am

Post by pato »

Ok much further now :)
The graphic draws with the three lines.
Now the lines are by factor 10 to high (that's what SNMP delivers).
I added for the Graph Template under Unit Exponent Value a -1, but that didn't change the reading (deleted the assigned graph, waited some minutes and recreated it). Actually it didn't even have any influence.
Any idea? :)
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

You'll need to create a CDEF to divide the graph items by 10.

Code: Select all

cdef=CURRENT_DATA_SOURCE,10,/
pato
Posts: 17
Joined: Thu Sep 09, 2010 10:35 am

Post by pato »

A big thank you, that did it :)
I tried to export the graph including dependencies, I hope this works for somebody else too?

Please note, I'm not sure if the max and min is actually working in the graphic, but the current should be right.
It's for a Silcon DP320E and a Symmetra 80K.
Attachments
apc-phasen.jpg
apc-phasen.jpg (34.85 KiB) Viewed 1562 times
APC-Phasen.xml
(24.98 KiB) Downloaded 103 times
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest