ZABBIX Forums  
  #1  
Old 17-11-2017, 18:27
MondaySam MondaySam is offline
Junior Member
 
Join Date: Nov 2017
Posts: 9
Question Add Web-Scenario-Trigger to Template

Hey everyone,

I'm feeling really stupid ATM. I just want to add a trigger to one of my templates that should give a High-Problem if the template's Web Scenario fails at any point.

I am using the following expression (as by documentation)

{Template Name:web.test.error[Scenario].strlen()}>0 and {Template Name:web.test.fail[Scenario].min()}>0

However, I always receive the error "Host "Template Name" does not exist or you have no access to this host."


Please anyone, what am I missing?
Reply With Quote
  #2  
Old 27-11-2017, 11:12
MondaySam MondaySam is offline
Junior Member
 
Join Date: Nov 2017
Posts: 9
Default

Sorry for the shameless bump.

I know this should be basic, but I still can't figure this out.
Reply With Quote
  #3  
Old 06-12-2017, 15:01
MondaySam MondaySam is offline
Junior Member
 
Join Date: Nov 2017
Posts: 9
Default

Someone? Anyone? ... Noone?
Reply With Quote
  #4  
Old 12-01-2018, 11:57
MondaySam MondaySam is offline
Junior Member
 
Join Date: Nov 2017
Posts: 9
Default

I am still trying to figure this stupid basic stuff out.

Can _anyone_ lend me hand?
Reply With Quote
  #5  
Old 15-01-2018, 12:27
Mechanix Mechanix is offline
Member
 
Join Date: Jan 2017
Posts: 82
Default

Well, what is the name of the template you are configuring. I doubt its called "Template Name"
Reply With Quote
  #6  
Old 15-01-2018, 13:08
MondaySam MondaySam is offline
Junior Member
 
Join Date: Nov 2017
Posts: 9
Default

No of course not. I created a new one named "Monday Basic Web Check" (Visible Name: Basic Web Check)

EDIT:

Wow. I don't know what changed. But now it works. I am not sure, but maybe I was using the Visible Name instead of the Template Name.

FML, but thanks for asking the right question, @Mechanix.

Follow-up question:

I have a web scenario with just one step. That step calls the URL and awaits a HTTP:200.

What would be the correct trigger for this situation (basically, "trigger if web scenario step fails")?

Last edited by MondaySam; 15-01-2018 at 13:18.
Reply With Quote
  #7  
Old 15-01-2018, 14:27
Mechanix Mechanix is offline
Member
 
Join Date: Jan 2017
Posts: 82
Default

You can use this trigger :

Code:
{host:web.test.error[Scenario].strlen()}>0 and {host:web.test.fail[Scenario].min()}>0
explained here: https://www.zabbix.com/documentation...nitoring/items
Be sure to replace "host" and "Scenario" to reflect your environment.
Reply With Quote
  #8  
Old 15-01-2018, 14:41
MondaySam MondaySam is offline
Junior Member
 
Join Date: Nov 2017
Posts: 9
Default

Okay, great.

That's the one I was using, but I get the message:

Quote:
Incorrect trigger function "min()" provided in expression. Invalid first parameter.

Thank you very very much @Mechanix!

Last edited by MondaySam; 15-01-2018 at 14:45.
Reply With Quote
  #9  
Old 15-01-2018, 15:03
Mechanix Mechanix is offline
Member
 
Join Date: Jan 2017
Posts: 82
Default

Try this one:

Code:
{host:web.test.error[Scenario].strlen()}>0 and {host:web.test.fail[Scenario].last()}>0
Reply With Quote
  #10  
Old 15-01-2018, 16:02
MondaySam MondaySam is offline
Junior Member
 
Join Date: Nov 2017
Posts: 9
Default

That one did the trick!

I can't thank you enough!
Reply With Quote
Reply

Tags
zabbix 3.4.2

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 14:46.