Ad Widget

Collapse

Disk percent item key

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jurz
    Junior Member
    • Jan 2005
    • 11

    #1

    Disk percent item key

    Hi,

    Got problem with subj.

    Key is as follows:

    diskused[/var] / disktotal[/var]

    However the actual result that I get is
    diskused - disktotal.

    Any ideas?

    Thanks in advance.
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Are you using diskused[/var] / disktotal[/var] as a key? It must not work, because you cannot put any expressions in key definition.

    An item status having this key will immediately become Unsupported.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • jbuberel
      Junior Member
      • Jul 2005
      • 1

      #3
      But expression support for items would be nice!

      While it may indeed be the case that expressions cannot be used inside of item definitions, that would be a very, very cool feature. If they can be used in triggers, why not in items?

      That would allow for items like '% of unused disk space'.

      Consider the problem of trying to configure a graph of disk space for disks of many different sizes - the best method would be to graph the percentage value.

      Originally posted by Alexei
      Are you using diskused[/var] / disktotal[/var] as a key? It must not work, because you cannot put any expressions in key definition.

      An item status having this key will immediately become Unsupported.

      Comment

      • riegersteve
        Member
        • Oct 2004
        • 68

        #4
        the first issue i have with that is as follows

        imagine me monitoring 400 servers and about 200 cosco devices, as well as 700 printers, and about 350 other thingys. now if i were to set up my monitoring servers (which run nagios, and netdisco as well as zabbix) to do math computation on all servers hard drive space. i would fry my cpu on the spot. monitoring servers should not perfomr calculations, they should have very exact rules. if = 0 or if = 1 now
        if my /var slice is greater than 124 Mg full of data then it = 0
        if not then it = 1

        Comment

        Working...