Ad Widget

Collapse

Displaying a value in an Item

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jamesh130
    Junior Member
    • Sep 2017
    • 19

    #1

    Displaying a value in an Item

    I've created an item which captures a a numerical number from the hosts.

    As an example 12345

    When the item is shown within zabbix it get converted into 123.45

    How do I stop it converting so it displays it as the original numerical number?

    Thanks
  • allexpetrov
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2017
    • 361

    #2
    In which version you've spotted the issue? Describe more precise please, as well as attach Item config.

    Regards,
    Alex!

    Comment

    • jamesh130
      Junior Member
      • Sep 2017
      • 19

      #3
      Hi Alex.

      Thanks for replying.

      This is Zabbix version 3.2.

      I've got a userparameter which does an mysql query which counts the number of auth_users so it will return a numeric value 10123.

      When I run a zabbix_get command from the zabbix server CLI it returns the correct numerical value 10123.

      I've setup an item on the host to pull the numerical value into Zabbix server (see attachment).

      When I view the result in Zabbix it comes up as 10.1 K (see attachment).
      Attached Files

      Comment

      • kaspars.mednis
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Oct 2017
        • 349

        #4
        Hi !

        Where exactly it is converted to 123.45 ? in last, min , max values on your screenshot ?
        there is a suffix K, indicating that this is thousands, so 40.5K is approximately 40500 units

        its a way zabbix displays large values

        regards,
        Kaspars

        Comment

        • jamesh130
          Junior Member
          • Sep 2017
          • 19

          #5
          Thanks Alex for replying,

          Is there any way I can get zabbix to display the large values in their original format?

          Since its a counts of the number of authenticated users in our database I would like it to display the actual result rather than an approximation

          When I run the zabbix_get command on the Zabbix server CLI it does return the actual value.

          zabbix_get -s 10.99.0.10 -k mysql.query
          12466

          Comment

          • kaspars.mednis
            Senior Member
            Zabbix Certified Trainer
            Zabbix Certified SpecialistZabbix Certified Professional
            • Oct 2017
            • 349

            #6
            look here...



            Regards,
            kaspars

            Comment

            • jamesh130
              Junior Member
              • Sep 2017
              • 19

              #7
              Thanks Kaspars,

              I'll give that a go :-)

              Comment

              • jamesh130
                Junior Member
                • Sep 2017
                • 19

                #8
                Thank you Kaspars ,

                Adding the 'as' value to the func.ini.php file has worked. its now displaying the whole number (see screenshot).
                Attached Files

                Comment

                Working...