PDA

View Full Version : Take an action through a trigger


nascimento.rp
20-09-2005, 20:30
Hi ALL,

I'm a newbie in Zabbix and I have a doubt. :D

It's possible to take an action through the result of a trigger. By example, I check the connection port with the Oracle by check_port[ip,port], if the trigger return 1, can I run a script based on it?

Thanks :cool:

Nascimento

James Wells
20-09-2005, 20:53
Greetings,

Yes and no. Yes, you can have use a script to make certain things happen, however, until beta1, you are fairly limited on what you can actually pass to the script as arguments. Scripts are a type of media setting in Zabbix. When you create a trigger, you can associate an action to it, the common ones are email a user / group of users or execute an external script. IIRC, there is only a single argument that you can pass in alpha12 (hostname), and that argment gets passed at the end of the command line.

nascimento.rp
20-09-2005, 22:49
JW,

Thanks! I think that I'll achieve what I need.

:D

Thanks and regards,
Nascimento

Balaji Krishnamoorthy
02-04-2007, 17:19
Nascimento

Can you help me on this if it worked for you.

I have several hosts and when a trigger is on I like to active the external script only on the host which triggered it.

I am on zabbix 1.1.7 .

Thx
Balaji.k