Ad Widget

Collapse

Calculate the power consumption from a usv with zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rrr
    Senior Member
    • Sep 2007
    • 100

    #1

    Calculate the power consumption from a usv with zabbix

    How could I calculate the power consumption with zabbix from a watt-value of a apc usv?

    I want an item which shows me the kw-usage per hour and a item which shows me the amount of money which I pay for these kw-usage.

    Which formulas I must set in the zabbix items?
  • nelsonab
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2006
    • 1233

    #2
    There is no easy way to do that as formulas don't work yet.

    There is another way around it however, but it requires some effort. You'll first need to figure out the ItemID for the Item you want to convert. Then using a shell script which is called by Zabbix as a user defined entry to query the MySQL database for the latest entry of this item and calculate the amperage or watt/hr number needed. Because this script is being called as a custom item it will then be put back in the database.

    I'm sorry if this is too high level but I don't have a Zabbix server in front of me to write up some examples with. :-(
    RHCE, author of zbxapi
    Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
    Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

    Comment

    Working...