Ad Widget

Collapse

Set max value in graph using macro

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Konisz
    Junior Member
    • Nov 2023
    • 3

    #1

    Set max value in graph using macro

    Hello,
    We use version 6.4 of zabbix. One of the dashboards shows disks of one of the servers. Among other things, there are graphs showing disk space occupied over time. Is it possible to set the max value of X axis using a macro that stores the total disk space value?

    When i paste my macro: {?last(/192.168.4.44/vfs.fs.dependent.size[D:,total])} i got "Invalid parameter "Left Y/Max": a number is expected."

    Is it because i can't use macros here or maybe the problem is with the output data (100 GB)


    Best regards.
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2

    {?EXPRESSION} → Trigger event names
    → Trigger-based notifications and commands
    → Problem update notifications and commands
    → Map element labels3
    → Map shape labels3
    → Link labels in maps3
    → Graph names5
    See expression macros.
    Supported since 5.2.0.

    Does not say here "in widget parameters"...
    Same here https://www.zabbix.com/documentation...ets/graph#axes
    Does not say, you can use macros of any kind here...

    Comment

    • Konisz
      Junior Member
      • Nov 2023
      • 3

      #3
      Thank you for your reply. At this point, I guess the only way to indicate what the maximum capacity of the disk is is to use the another dataset with "total disk space" value
      Click image for larger version

Name:	image.png
Views:	342
Size:	8.4 KB
ID:	474951​​

      Comment

      Working...