PDA

View Full Version : About zabbix net.if.in [linux]


dennis_cao
23-06-2008, 12:07
i create an items as
Key: net.if.in[eth0,bytes]
Type of information: float
Units bps
Custom multiplier : 8
Store value: delta(speed peer second)

triggers as
{D1XN:net.if.in[eth0,bytes].delta(0)}>40000000

but in the overview.php it is gray and the zabbix_server.log logged
15338:20080623:174012 Expression [{500500000012206}>40000000] cannot be evaluated [Unable to get value for functionid [500500000012206]]
and i also try the
update functions set lastvalue=0 where lastvalue is null;
it is no effect
why?:confused:
i used centos5.1 32bit zabbix1.5.3

flunschi
23-06-2008, 17:44
Hi,

triggers as
{D1XN:net.if.in[eth0,bytes].delta(0)}>40000000


As far as I know, delta(N) means max - min of the values of the last N seconds. Hence, I suppose, delta(0) does not make sense. (At least at my Zabbix 1.4.5 installation is always fails.)

Furthermore, you already store data as bps. Hence, I suppose you want to trigger, if some threshold for bps is exceeded. Therefore, "last(0)" instead of "delta(0)" might be the correct one.

dennis_cao
24-06-2008, 03:25
thanks i will try it
i think last(0) and delta(0) just means status

dennis_cao
24-06-2008, 03:40
i used last(0) now
all is ok
but why delta(0) is not useful

flunschi
24-06-2008, 10:43
Hi,

I am assuming that there is no special handling of delta(N) when N=0. As far as I have seen, the definition of delta is delta(N) = max(N) - min(N).

I am not sure, whether max(0) returns an error or just the last received value.

Let's assume the second one. Then, max(0) = min(0) leading to delta(0) = max(0) - min(0) = 0 in all cases.

As already stated above, this is just true, if there is no special handling of delta(N) for N=0.

snailgame
27-06-2008, 04:25
i did this trigger

{D1XN:net.if.in[eth0,bytes].delta(1)}>40000000
but it is gray there is no data get

flunschi
27-06-2008, 21:36
i did this trigger

{D1XN:net.if.in[eth0,bytes].delta(1)}>40000000
but it is gray there is no data get

Is there any data for your item net.if.in[eth0,bytes]?