Hi all,
I'm new to write templates for cacti.
I'm wondering if it is possible to multiply different values in a graph template.
E.g. I have a sensor-reading for voltage and a sensor-reading for current and want to multiply them to get the power.
Thanks for any help,
Frank
Multiply Values in Graph?
Moderators: Developers, Moderators
Re: Multiply Values in Graph?
Yes, learn how to use a cdef.
Before history, there was a paradise, now dust.
Re: Multiply Values in Graph?
Yes, Osiris is technically correct, you should look at CDEF's.
The longer version of that answer requires a bit of learning on your part which you can by looking at the interface graph templates for Bytes you'll see the items use a CDEF to convert the values. When you have multiple values in a single datasource, they will show as different DEF's on the Graph Debug (usually first data source is normally a, the second b etc)
see also the docs : https://github.com/Cacti/documentation/ ... through.md
The longer version of that answer requires a bit of learning on your part which you can by looking at the interface graph templates for Bytes you'll see the items use a CDEF to convert the values. When you have multiple values in a single datasource, they will show as different DEF's on the Graph Debug (usually first data source is normally a, the second b etc)
see also the docs : https://github.com/Cacti/documentation/ ... through.md
Cacti Developer & Release Manager
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Who is online
Users browsing this forum: No registered users and 1 guest