ZABBIX Forums  
  #1  
Old 11-04-2012, 09:09
mcmyst mcmyst is offline
Member
 
Join Date: Feb 2012
Location: France
Posts: 69
Default Host flapping up/down

Hello,

I have a trigger on some important host which is like that :
Code:
{HOSTA:icmpping[,2,25,68,200].last(#1)}=0 & {HOSTA:icmpping[,2,25,68,200].last(#2)}=0
I have set a SMS alert linked to this trigger.
When a host is flapping UP/DOWN (mostly during spanning-tree topology change) this trigger fire up 4 or 5 times. So the problem is that we receive lot of SMS for these hosts.

We need to have an alert when the 2 last attempt of ping failed, but once the trigger has fired up, I would like to not fire up again during a certain period.

Do you have a solution ?

Thank you
Reply With Quote
  #2  
Old 11-04-2012, 11:49
JBo JBo is offline
Senior Member
 
Join Date: Jan 2011
Location: Paris, France
Posts: 308
Default

Hi,

You may use hysteresis to have different conditions on trigger up and down.
Something like:
({TRIGGER.VALUE}=0&{HOSTA:icmpping[,2,25,68,200].max(#2)}=0)|
({TRIGGER.VALUE}=1&{HOSTA:icmpping[,2,25,68,200].min(#10)}=1)

(I have replaced your two calls to last() by a single max() that does the same thing)

It will fire as soon as you have 2 pings that fail but will not reset until 10 pings are OK.

Hope this helps
JBo
Reply With Quote
  #3  
Old 11-04-2012, 12:05
mcmyst mcmyst is offline
Member
 
Join Date: Feb 2012
Location: France
Posts: 69
Default

Exactly what I need !
I will check it this afternoon.

Thank you
Reply With Quote
  #4  
Old 12-04-2012, 14:28
mcmyst mcmyst is offline
Member
 
Join Date: Feb 2012
Location: France
Posts: 69
Default

I tried this trigger :
Code:
({TRIGGER.VALUE}=0&{HOSTA:icmpping[,2,25,68,200].max(#2)}=0)
| 
({TRIGGER.VALUE}=1&{HOSTA:icmpping[,2,25,68,200].min(#10)}=1)
but something is wrong:
The host "HOSTA" is being checked every 30 seconds by a icmpping simple check. When I block (with iptables) icmp ping from zabbix server to HOSTA, the trigger fire up when 2 pings fails. ==> OK

I keep blocking the ping, but the trigger change from state PROBLEM to OK and OK to PROBLEM every 30 seconds. ==> NOT OK

Can I had something to this trigger to resolve this issue ?

Thank you
Reply With Quote
  #5  
Old 12-04-2012, 17:17
JBo JBo is offline
Senior Member
 
Join Date: Jan 2011
Location: Paris, France
Posts: 308
Default

Hi,

Sorry, I made a mistake on second part of the trigger.
I have tested the formula below, it works:
Code:
({TRIGGER.VALUE}=0&{test:icmpping[,2,25,68,200].max(#2)}=0)
|
({TRIGGER.VALUE}=1&{test:icmpping[,2,25,68,200].count(#10,0,"eq")}>0)
Regards,
JBo
Reply With Quote
  #6  
Old 13-04-2012, 16:39
mcmyst mcmyst is offline
Member
 
Join Date: Feb 2012
Location: France
Posts: 69
Default

Thank you JBo, I just tried and its working !
Reply With Quote
  #7  
Old 17-04-2012, 08:42
Zaniwoop Zaniwoop is offline
Senior Member
 
Join Date: Jan 2010
Location: Johannesburg, South Africa
Posts: 202
Send a message via MSN to Zaniwoop
Default

host flapping?
Attached Images
 
Reply With Quote
  #8  
Old 08-05-2012, 23:20
xibbaz xibbaz is offline
Member
Zabbix Certified Specialist
 
Join Date: Jun 2009
Posts: 73
Default

Quote:
Originally Posted by JBo View Post
Hi,

Sorry, I made a mistake on second part of the trigger.
I have tested the formula below, it works:
Code:
({TRIGGER.VALUE}=0&{test:icmpping[,2,25,68,200].max(#2)}=0)
|
({TRIGGER.VALUE}=1&{test:icmpping[,2,25,68,200].count(#10,0,"eq")}>0)
Regards,
JBo
I had this problem of 2 flapping internet modems caused by the VRRP router sitting between them.

This has solved it and I can at last create reliable dependencies on them.

Thank you, thank you, thank you!
Reply With Quote
  #9  
Old 26-10-2012, 09:20
rubendob rubendob is offline
Junior Member
 
Join Date: Apr 2012
Posts: 23
Default What does mean?

Hi

thanks by the formula, nice.

Can somebody explain to us what does mean the final sentence of the trigger?

Code:
count(#10,0,"eq")}>0)
¿¿¿¿¿?????

Thanks
Reply With Quote
  #10  
Old 26-10-2012, 09:47
Zaniwoop Zaniwoop is offline
Senior Member
 
Join Date: Jan 2010
Location: Johannesburg, South Africa
Posts: 202
Send a message via MSN to Zaniwoop
Default

count(#10,0,"eq"): How many of the last 10 values were equal to 0.

....}>0): If this is number is greater than 0.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:04.