PDA

View Full Version : Min function problems.


burtininkai
12-04-2010, 09:45
Hi,

Created triggers

{UCB_Windows_servers:icmpping.min(300)}=0
{UCB_Windows_servers:icmpping.min(#5)}=0

pinging host every 1 minute.

If host's ping fails getting trigger up, but min function is not working, it's triggered after first fail, is it my problem, or zabbix?

Version of zabbix 1.8.2
Everithing worked with version 1.8.0.

burtininkai
12-04-2010, 10:19
Fcuk, checked with other trigger seems like all is ok. but then why ping trigger is not working?

alixen
12-04-2010, 10:30
Hi,


{UCB_Windows_servers:icmpping.min(300)}=0
{UCB_Windows_servers:icmpping.min(#5)}=0

pinging host every 1 minute.

If host's ping fails getting trigger up, but min function is not working, it's triggered after first fail, is it my problem, or zabbix?


With min function, trigger will be up as soon as one ping fails.
If you want that triggers goes up only if 5 successive ping fail, you should use max function.

Regards,
Alixen

burtininkai
12-04-2010, 10:45
Hi,



With min function, trigger will be up as soon as one ping fails.
If you want that triggers goes up only if 5 successive ping fail, you should use max function.

Regards,
Alixen

Ok, will test this in few minutes, but why min is working ok for agent item service[]?

burtininkai
12-04-2010, 10:57
Seems like everithing works ok. Thank You

Can You please explain me when to use min and when max?

Are these expressions correct?

{Router_simple_check:icmppingsec.max(#15)}>50
{Router_simple_check:icmppingloss.max(#15)}>1

alixen
12-04-2010, 12:17
Seems like everithing works ok. Thank You

Can You please explain me when to use min and when max?


It depends on what you want to check.
In your case with icmpping, if you use:
{UCB_Windows_servers:icmpping.min(#5)}=0
Your trigger goes up as soon as a single value is 0 and stays up until you get 5 successive 1.
With:
{UCB_Windows_servers:icmpping.max(#5)}=0
Your trigger goes up when you get 5 successive 0 and goes down as soon as you get a single 1.


Are these expressions correct?

{Router_simple_check:icmppingsec.max(#15)}>50
{Router_simple_check:icmppingloss.max(#15)}>1

If you want to check if ANY value in last 15 ones is above threshold, they are correct.
If you want to check if ALL values in last 15 ones are above threshold, they are NOT correct.

Regards,
Alixen

burtininkai
12-04-2010, 12:33
Seems to be almost clear.


If you want to check if ANY value in last 15 ones is above threshold, they are correct.
If you want to check if ALL values in last 15 ones are above threshold, they are NOT correct.


So how could I check ALL values?

alixen
12-04-2010, 15:55
Seems to be almost clear.



So how could I check ALL values?

Replace max by min.

Regards,
Alixen

burtininkai
29-04-2010, 07:31
Thanx, all is working now ;)