PDA

View Full Version : Disk percent item key


Jurz
16-01-2005, 15:55
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
16-01-2005, 21:04
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.

jbuberel
06-07-2005, 17:02
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.

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.

riegersteve
07-07-2005, 05:49
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