Ad Widget

Collapse

Unit conversion - wrong graph

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hacknisty
    Junior Member
    • Mar 2015
    • 3

    #1

    Unit conversion - wrong graph

    Hi all,

    I've got a small problem monitoring windows 2008 R2 Server.

    I'm using the "\Memory\Available MBytes" performance counter to monitor available RAM.

    This performance counter reports available memory in MBytes. And i have thousands of MBytes (let's say 2150 MBytes) memory available.

    Here is a trace of what this performance counter report :
    Code:
    "03/03/2015 09:44:32.051","2152.000000"
    "03/03/2015 09:44:33.052","2152.000000"
    "03/03/2015 09:44:34.053","2152.000000"
    "03/03/2015 09:44:35.054","2152.000000"
    "03/03/2015 09:44:36.055","2152.000000"
    "03/03/2015 09:44:37.057","2152.000000"
    "03/03/2015 09:44:38.060","2152.000000"
    "03/03/2015 09:44:39.061","2152.000000"
    "03/03/2015 09:44:40.062","2152.000000"
    "03/03/2015 09:44:41.063","2152.000000"
    "03/03/2015 09:44:42.064","2152.000000"
    and here is my graph conf :

    Code:
    <graph>
                <name>Windows 2012 R2 Memory Available and Cache</name>
                <width>900</width>
                <height>200</height>
                <yaxismin>0.0000</yaxismin>
                <yaxismax>100.0000</yaxismax>
                <show_work_period>1</show_work_period>
                <show_triggers>1</show_triggers>
                <type>0</type>
                <show_legend>1</show_legend>
                <show_3d>0</show_3d>
                <percent_left>0.0000</percent_left>
                <percent_right>0.0000</percent_right>
                <ymin_type_1>0</ymin_type_1>
                <ymax_type_1>0</ymax_type_1>
                <ymin_item_1>0</ymin_item_1>
                <ymax_item_1>0</ymax_item_1>
                <graph_items>
                    <graph_item>
                        <sortorder>0</sortorder>
                        <drawtype>0</drawtype>
                        <color>FF3333</color>
                        <yaxisside>0</yaxisside>
                        <calc_fnc>2</calc_fnc>
                        <type>0</type>
                        <item>
                            <host>Template Windows 2012 R2 Server</host>
                            <key>perf_counter[&quot;\Memory\Available MBytes&quot;,300]</key>
                        </item>
                    </graph_item>
                    <graph_item>
                        <sortorder>1</sortorder>
                        <drawtype>0</drawtype>
                        <color>00C800</color>
                        <yaxisside>0</yaxisside>
                        <calc_fnc>2</calc_fnc>
                        <type>0</type>
                        <item>
                            <host>Template Windows 2012 R2 Server</host>
                            <key>perf_counter[&quot;\Memory\Cache Bytes&quot;,300]</key>
                        </item>
                    </graph_item>
                </graph_items>
            </graph>
    But it seems that zabbix convert this value in K (because it's thousands) and obviously my graph are wrong. (as you can see in the attached image value is KMBytes instead of GBytes)

    Do you have any clue on how i get around this ?
    Attached Files
  • ingus.vilnis
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2014
    • 908

    #2
    Hello and welcome to Zabbix forums!

    You should be gathering data with the base units which is Bytes.

    Code:
    perf_counter["\Memory\Available Bytes"]
    And then in item settings specify Units: B which will then convert your data automatically to KB, MB or GB.

    Hope this helps!

    Best Regards,
    Ingus

    Comment

    • hacknisty
      Junior Member
      • Mar 2015
      • 3

      #3
      [SOLVED] Unit conversion - wrong graph

      It works great.
      Thanks a lot for that tip. I should always retrieve the base unit.

      Comment

      • Johan Luna
        Junior Member
        • Mar 2019
        • 2

        #4
        Originally posted by ingus.vilnis
        Hello and welcome to Zabbix forums!

        You should be gathering data with the base units which is Bytes.

        Code:
        perf_counter["\Memory\Available Bytes"]
        And then in item settings specify Units: B which will then convert your data automatically to KB, MB or GB.

        Hope this helps!

        Best Regards,
        Ingus
        En el caso de SQL Server, el typeperf, me obliga a que lea en KB
        SQLServeratabases(tempdb)\Data File(s) Size (KB) Como podria solucionarlo?

        Comment

        Working...