Ad Widget

Collapse

Graphing values from file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • happie
    Junior Member
    • Dec 2017
    • 1

    #1

    Graphing values from file

    I'm trying to graph values from a file which I grabbed from an external XML source. The file is refreshed every 60 seconds and contains power usage for connected appliances, currently in format: "<appliance name>",<wattage>

    for example:

    "My NAS",53
    "PC",220
    "Living Room",343

    Ideally I'd like for Zabbix to automatically create graphs for every line it finds in this file with the appliance name as title, and update these graphs every 60 seconds.

    I've been trying to create an item for this but can't figure out how this is supposed to work yet.

    I've created a simple batch containing a grep/awk statement file that accepts the appliance_name as parameter, which can be run to grab the current value for a specific appliance. Not sure if this is required, or if Zabbix can retrieve the values from the file itself.

    Can anyone help me get this functioning?
Working...