Ad Widget

Collapse

items units questions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ANDros
    Junior Member
    • Nov 2020
    • 8

    #1

    items units questions

    I created some items on zabbix that get the values in MB from a bash script, I created the items setting as units M (Megabytes). Consulting the data on the graphs, I see that when the value received exceeds 1000 MB, zabbix converts the value marking it as 1.0 KM instead of 1GB.
    How do I correct this problem ?

    My version of zabbix server/agent is 6.0.12

    Thanks in advance for your support​
    Last edited by ANDros; 05-12-2022, 17:21.
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1781

    #2
    Set item units to B and add preprocessing rule with custom multiplier of 1048576.

    Markku

    Comment

    • ANDros
      Junior Member
      • Nov 2020
      • 8

      #3
      I reported the output of my script in bytes, changed all the items with units B and set the custom multiplier in pre-processing to 1024.

      Now zabbix calculates the values correctly

      Thank you.​

      Comment

      • cyber
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Dec 2006
        • 4807

        #4
        If you send "bytes" and your unit is also B, then you should not need any preprocessing there... Just saying.

        Comment

        Working...