Ad Widget

Collapse

Units in Zabbix WebGUI

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • spetznaz
    Junior Member
    • May 2008
    • 5

    #1

    Units in Zabbix WebGUI

    Hi.

    I have a problem with units in zabbix web gui.
    I want to monitor number of accounts in one of my servers.
    I have the key configured almost OK.
    Until 1000 accounts everything was OK.
    but now insted of value "1200 accounts" i get "1.18K accounts".
    The problem i have is that K=1024.
    I was searching the web, but i couldn't find anything that could help me (probably wrong google sentence :P )
    This is not critical for me, but sure could help
  • Tenzer
    Senior Member
    • Nov 2007
    • 316

    #2
    From what I can see in the include/config.inc.php file, you just have to put "b" in the units field of the item, and then it should be using 1000 instead of 1024.

    Comment

    • spetznaz
      Junior Member
      • May 2008
      • 5

      #3
      my solution ....

      if($units=="accounts")
      {
      $s=sprintf("%d",$value);
      return "$s $units";
      }


      PS. THX for suggestion.

      Comment

      Working...