Ad Widget

Collapse

Normalized Graphs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Tys
    Junior Member
    • Oct 2005
    • 7

    #1

    Normalized Graphs

    Hello community,
    from searching the old posts, I learned that there is no way to have normalized graphs like memory[free]/memory[total]. Did anyone get a way around this?
    Regards, Tys
  • Nate Bell
    Senior Member
    • Feb 2005
    • 141

    #2
    This is a kind of clunky solution, but you could figure out where Zabbix finds the values for memory[free] and memory[total] and write a script that normalizes that data and returns it to Zabbix via a UserParameter. You could then easily graph that data.

    Nate

    Comment

    • elkor
      Senior Member
      • Jul 2005
      • 299

      #3
      As nate says.. it's a clunky solution. BUT if you don't have time to dig around you can reuse the agent's code and it doesn't have to be TOO complex.

      adding this to the agent's config and telling the server to retrieve it should do the trick for your above example:

      Code:
      UserParameter=memory[norm],  memtot=$(/path/to/zabbix_get -s127.0.0.1 -k"memory[total]"); memfree=$(/path/to/zabbix_get -s127.0.0.1 -k"memory[free]"); echo "scale=4; ${memfree%.*}/${memtot%.*}" | bc
      this is tested and works on a gentoo box running 1beta1 but should run on any unix/linux machine with zabbix_get and bc available.

      changing the value of scale as it is passed to bc will adjust the number of signifigant digits in the result.
      Last edited by elkor; 12-10-2005, 21:16.

      Comment

      • Tys
        Junior Member
        • Oct 2005
        • 7

        #4
        Thank you for the quick answers, I will go for the client-side solution. Monitoring mostly Windowshosts, I will mostly work with Autoit, already did an Acronis TrueImage Checker with that
        Regards, Tys

        Comment

        Working...