PDA

View Full Version : Action: Email


michaeltje
15-08-2007, 09:06
Oke.. i have the following situation

I'm monitoring my servers from behind a router.

Servers -> Switch -> (Internet) -> Router -> Zabbix

Now i have changed the dependency's as follow: Servers depends on switch, Switch on router.
so far so good, if i disconnect the link between the zabbix box and the router i get one email with a notification about my router being down. (Thats what i want)

But.. if i restore the link i get several emails about my servers and router changing to status false (Ping check), I only want 1 email about my router being Online (Thats how the dependency should work if im right..) Because when the router is online i have connection to the internet again.

Anyone got an idea how to fix this?

michaeltje
17-08-2007, 00:15
Am i the only one experiencing this?

remi
17-08-2007, 09:39
Hi,

I'm having the same issue. Are you using version 1.4.1?

This is what happens:
When a router goes down, one message is sent. When the router comes back up, Zabbix sends messges for the router and all the hosts behind it being up. I'd expect Zabbix to only send a message for the router.

Would be great if someone knows a solution for this. :-)

thanks,remi

michaeltje
17-08-2007, 10:39
Hi,

I'm having the same issue. Are you using version 1.4.1?

This is what happens:
When a router goes down, one message is sent. When the router comes back up, Zabbix sends messges for the router and all the hosts behind it being up. I'd expect Zabbix to only send a message for the router.

Would be great if someone knows a solution for this. :-)

thanks,remi
Yes im currently using version 1.4.1

Alexei
17-08-2007, 13:25
It is fixed in pre 1.4.2 code. Please feel free to download it from www.zabbix.com/developers.php.

michaeltje
17-08-2007, 15:18
It is fixed in pre 1.4.2 code. Please feel free to download it from www.zabbix.com/developers.php.
Will do, thanks for the reply!

bbrendon
17-08-2007, 18:05
Are you doing dependencies by having multiple functions in the trigger expression or by using the dependency GUI feature in the trigger configuration?

michaeltje
17-08-2007, 23:20
Are you doing dependencies by having multiple functions in the trigger expression or by using the dependency GUI feature in the trigger configuration?
its just one expression wich pings a server to check if its online. Im using the GUI

michaeltje
20-08-2007, 11:24
It is fixed in pre 1.4.2 code. Please feel free to download it from www.zabbix.com/developers.php.
Dear alexei,

I downloaded the latest pre 1.4.2 code (Revision 4616).

I have tested the following situation:

Web-server (Severity: High, Dependency: Switch)
Switch (Severity: High, Dependency: Router)
Router (Severity: High(Or disaster i tested both, didnt make sense))
Zabbix Server

When i disconnect the connection between the router and the zabbix box, zabbix will send 3 messages about the web-server,switch and the router.
If i restore the connection it only sends 1 message about the router connection being restored (How it should work).


So the issue about getting all emails when everything comes back online is fixed, but now its other way around.

Alexei
20-08-2007, 11:34
When i disconnect the connection between the router and the zabbix box, zabbix will send 3 messages about the web-server,switch and the router.
Perhaps at that moment ZABBIX didn't know that the switch is down...

michaeltje
20-08-2007, 12:07
Perhaps at that moment ZABBIX didn't know that the switch is down...
I have tried it loads of times now and it still does occur, the update interval is everywhere the same so i have no clue what to do.

I tested some other things, i rejected the ip of another webserver on the zabbix server and didnt receive a warning so thats working perfect, is there something im doing wrong?

michaeltje
20-08-2007, 21:48
Tested the following:

Blocked the ip of the router, after a couple of seconds blocked the ip of the switch and after another seconds i blocked the webserver, and i only received the warning of the router so thats working but when i block the whole ip range of the servers i get warnings from all my servers. Thats not really how it should be, so is there anything wrong in the pre-code maybe?

Alexei
20-08-2007, 22:14
You may want to check availability of the router more frequently than availability of servers behind the router.

michaeltje
20-08-2007, 22:15
You may want to check availability of the router more frequently than availability of servers behind the router.
yeah i had the same thought, so the router should be set at like 5 and the servers and switch at 10 that should fix it according to you?

I will try this tomorrow and will get back to you.

michaeltje
21-08-2007, 23:18
I have tested it a bit today, Didnt have that much time but what i have done is as follow:

Frequency Router: 10 Seconds
Frequency Switch: 60 Seconds
Frequency Webservers: 90 Seconds

And it still messaged me 3 emails about the server,switch and router being down. If i restore the connection it sends me 1.

So the frequency didnt make sense. Any idea what could be wrong?

michaeltje
23-08-2007, 11:13
Dear alexei,

Im still experiencing the same problem, i have tested this same situation over and over again.

Is this a bug in the new version? Because before it worked fine except when they came back online, now its other way around.


Edit:

i found the problem, i use simplecheck ping for the webservers, router, and switch. This to be independent from the zabbix agent, simplechecks are all checked at the same time.

Is there anyway to get around this?

michaeltje
25-08-2007, 21:59
You may want to check availability of the router more frequently than availability of servers behind the router.How should i fix this alexei?

remi
26-08-2007, 12:51
It looks like I have the same problem here... Could anyone explain how one needs to set up the dependencies with routers, switches and servers. Dependencies on services works fine.

Please let me know what information is needed.

Any help is highly appreciated :-)

Kind Regards,

Remi

bbrendon
27-08-2007, 02:37
You should be checking routers at least twice as often as servers.

say your server availability trigger is every 10 minutes (600 seconds)
Then your router check should be less. I would do about 250 seconds to make sure its fully completed in time.

There should be two ways to do dependencies. One using the trigger expression and the other using the dependency selection gui.

dependency as a trigger expression:
e.g. (This is not a great example, but should get the idea across. My availability stuff is much more complicated, which i tried to simplify)
({hostname:system.cpu.util[].nodata(600)}=1)&({router:pinger.nodata(250)}=1)

or Using the dependency selection when configuring the trigger.

I tried the dependency selection method originally, and I think there were bugs in it about 10 versions back and haven't tried it since.

bbrendon
27-08-2007, 02:47
I think the difference with the two dependencies is that

GUI-
-Easier to configure
-Trigger activates if the host is down but does not run an action unless the dependences are up.

Expression-
-Possibly more difficult to configure
-Trigger can activate only if exression is true which means the host has to be down and the router (dependency) has to be up.

bbrendon
27-08-2007, 05:35
I modified my availability triggers...

Looks pretty need. You can assign dependencies to a trigger that is assigned to a host which in turn is linked to a template. Coool!

Haven't tested if it works properly though :)

michaeltje
27-08-2007, 09:21
I modified my availability triggers...

Looks pretty need. You can assign dependencies to a trigger that is assigned to a host which in turn is linked to a template. Coool!

Haven't tested if it works properly though :)
Hey infinity,

Thanks for your help, its apreciated.
We have tested the method you stated above, tho its not really working as i expected.
We are gonna try to test it with the trigger expresions. Will keep you updated.

michaeltje
29-08-2007, 11:33
It is fixed in pre 1.4.2 code. Please feel free to download it from www.zabbix.com/developers.php.
Dear alexei,

We have tested the same situation, I have the following triggers:


#Gateway
{Gateway:icmpping.max(180)}<1

#Switch
{Switch:icmpping.max(240)}<1

#Server
{Server:icmpping.max(300)}<1

This works perfect, if the connection between the gateway and the zabbix server goes down i get one email. But if i restore the link, i get the mail from the gateway and the server (Kinda weird, it never messaged me about the server going down).

So is this a bug in the software or am i doing wrong things?

Alexei
30-08-2007, 21:03
Dear alexei,

We have tested the same situation, I have the following triggers:


#Gateway
{Gateway:icmpping.max(180)}<1

#Switch
{Switch:icmpping.max(240)}<1

#Server
{Server:icmpping.max(300)}<1

This works perfect, if the connection between the gateway and the zabbix server goes down i get one email. But if i restore the link, i get the mail from the gateway and the server (Kinda weird, it never messaged me about the server going down).

So is this a bug in the software or am i doing wrong things?
I will retest this functionality and report back soon.

michaeltje
30-08-2007, 21:04
I will retest this functionality and report back soon.That would be great, i tested it on a new hardware box now aswell, the dependency's work great when the stuff goes down, when it gets up it messages me about everything.

Thanks for ur help its really appreciated!

Alexei
30-08-2007, 21:08
Please confirm that you are using ZABBIX 1.4.2.

michaeltje
30-08-2007, 21:09
Please confirm that you are using ZABBIX 1.4.2.
yes i am using 1.4.2

michaeltje
03-09-2007, 08:10
Anything new yet alexei? ;)

Thanks in advance!

bbrendon
09-09-2007, 06:04
I'm adding dependencies to items that are associated to templates. I'll let you know if it works. I don't think it does.

Alexei
12-10-2007, 18:38
Trigger dependencies are fixed in the latest pre 1.4.2 code. I am sure it works fine now. The Manual was also be updated to descibe new functionality.

bbrendon
13-10-2007, 22:51
Trigger dependencies are fixed in the latest pre 1.4.2 code. I am sure it works fine now. The Manual was also be updated to descibe new functionality.
Don't tease me like that. Its not nice!
:D

Estimate release date on 1.4.3 final? or should i download and compile?
Also, is it php fix or a bin fix, or both?

michaelsnijder
15-10-2007, 14:55
Trigger dependencies are fixed in the latest pre 1.4.2 code. I am sure it works fine now. The Manual was also be updated to descibe new functionality.Alexei,

You did an excellent job on the dependencies, i havent found any bugs or experienced any troubles yet! If i will find some i will report it to you ;) This is an huge improvement for zabbix, thumbs up!