PDA

View Full Version : Alert Host condition, not working or useless?


Valerie
28-02-2006, 22:40
Hi,

Just realised that even though we use combine the 2 following conditions in Alert configuration: Trigger Host = "HAL"
Trigger value = "ON"
the specified receiver will receive all alerts for VALUE="ON", not only those for the it's host.

This is bad, has we want to notice specified user only when their specific machine raise a trigger/alert.

I am using version 1.1 beta 5, is this solved in new version? Is their a workaround or something I am missing in alert configuration?

Thanks

Alexei
01-03-2006, 09:02
Are you sure you receive all notifications regardless of host name? It is the only action defined?

Valerie
01-03-2006, 15:29
Hi Alexei,

I am pretty sure the user received all email, for all triggers from all host...At least, i am 100% sure he did not only receive email regarding the host specified in the action configuration.
Plus, this is a sample email I received.

Components: Processor load is high on wd2016472: ON

---
Trigger value = "ON"
Host = "aquila"



This email comes from the action with only the 2 conditions listed...


Maybe this has something to do with this bug :
When i add a Host trigger condition, and then select it with the checkbox and click on "delete selected", it does not disapear from the Conditions list...

Valerie
03-03-2006, 15:42
We've got a test machine on wich run Zabbix 1.1Beta6. I tried the same conditions as explained above and it seems to have the exact same behavior.
The action sent is :

Basics: wd2019339 is unreachable: ON
---------------
Conditions
Host = "aquila"
Trigger value = "ON"


I believe actions with host="someHost" should only be sent when THAT host raise a trigger right? But that is not the case nor in 1.1b5 or 1.1b6

Any help or approval/denied on this case would be greatly appreciated.

maglarr99
03-03-2006, 22:47
I am getting the same here. I setup an action so my IT Manager only get an email on our switches and no matter what trigger fires, he gets an email, not just for the switches.

rares
07-03-2006, 16:23
Maybe this is the problem(in actions.c)

@@ -422,6 +422,7 @@ static int check_action_condition(DB_TRI
result = DBselect(sql);
for(i=0;i<DBnum_rows(result);i++)
{
+ ret = FAIL;
if(condition->operator == CONDITION_OPERATOR_EQUAL)
{
if(atoi(condition->value) == atoi(DBget_field(result,i,0)))

Probably you should wait for someone that look for more then 10 minutes to the zabbix code to advice.

take care

Valerie
09-03-2006, 16:10
Alexei,
Is there a fix for this comming? Should I configure the action, one per trigger instead of using Maccros?