PDA

View Full Version : Trigger: trouble with tcp,port


mtuckerb
24-05-2005, 01:32
I have tried creating a trigger for an existing host, using a simple tcp,port item.
syntax =
{host:tcp,53.last(0)} = 0

I get:
[ERROR:Invalid trigger expression]

Thoughts?

johnl
25-05-2005, 11:14
try item

check_port[server_name,port_number]

then trigger

({server:check_port[port_number].last(0)}=0)&({server:check_port[port_number].delta(150)}=0)

delta part adds a delay of 150 seconds before trigger activates to allow for network glitches etc

regards
john

mtuckerb
25-05-2005, 18:24
Thanks, but that doesn't seem to work either. I used
{publish:check_port[vader,53].last(0)} = 0

I have a host named vader and a host named publish. do I need to use IPs instead?

:(

johnl
26-05-2005, 09:50
your entry should be
{publish:check_port[53].last(0)} = 0 if you want to monitor port 53 on publish and
{vader:check_port[53].last(0)} = 0 if you want to monitor port 53 on vader

regards
john

Alexei
26-05-2005, 10:02
I have tried creating a trigger for an existing host, using a simple tcp,port item.
syntax =
{host:tcp,53.last(0)} = 0

I get:
[ERROR:Invalid trigger expression]

Thoughts?Remove spaces to make it work:

{host:tcp,53.last(0)}=0

mtuckerb
26-05-2005, 20:10
Remove spaces to make it work:

{host:tcp,53.last(0)}=0

Yup, tried that too. I get
[ERROR:Invalid trigger expression. No such host (vader) or monitored parameter (tcp,53)]

mtuckerb
26-05-2005, 20:12
your entry should be
{publish:check_port[53].last(0)} = 0 if you want to monitor port 53 on publish and
{vader:check_port[53].last(0)} = 0 if you want to monitor port 53 on vader

regards
john

Thanks John,
I've tried {vader:check_port[53].last(0)} = 0 if you want to monitor port 53 on vader as well,
I get:
[ERROR:Invalid trigger expression. No such host (vader) or monitored parameter (check_port[53])]

mtuckerb
26-05-2005, 20:14
Oh Crap.
I figured it out. I was missing the check_port Item. I could have sworn that I set it up, but this is my second installation of zabbix this week, so maybe I did it on the other box. Thanks for all of your suggestions, and sorry for the d'oh.
-=Tucker

Alexei
26-05-2005, 22:10
Yup, tried that too. I get
[ERROR:Invalid trigger expression. No such host (vader) or monitored parameter (tcp,53)]
Obviously, you either have no host 'vader' or item 'tcp,53' is missing! :)