[ZBXNEXT-2621] Support LLD for Web Scenario's Created: 2014 Nov 28  Updated: 2021 Jul 15

Status: Open
Project: ZABBIX FEATURE REQUESTS
Component/s: API (A), Frontend (F), Proxy (P), Server (S)
Affects Version/s: None
Fix Version/s: None

Type: Change Request Priority: Major
Reporter: Frank Assignee: Unassigned
Resolution: Unresolved Votes: 75
Labels: lld, webmonitoring
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by ZBXNEXT-3147 Add webcheck prototypes to Zabbix Closed

 Description   

It would be nice if LLD could be used for web scenario's allowing mass vhosting checks.



 Comments   
Comment by Marc [ 2014 Nov 30 ]

Just to get it right, you're talking about something similar to "Web scenario prototypes" for LLD, right?

Comment by Frank [ 2014 Dec 01 ]

Yes, I'd like to auto-detect vhosts (which I'm already doing for a "simple" item/trigger check) and automatically do webchecks on them.

Comment by Jon Beilke [ 2016 May 06 ]

Using the Zabbix API as a workaround for auto generating web scenarios for now, but would really like to see this integrated into LLD. Any updates on this feature request?

Comment by Marc [ 2016 May 06 ]

jrbeilke,
unfortunately it's not on the roadmap yet. Possibly see "(Co-)sponsoring development" for the fastest way to get it there

Comment by Evan Montgomery-Recht [ 2016 Oct 24 ]

Can you provide an example of how to add a web scenario via Zabbix API? Ideally it would be a multi-step scenario.

Basically we have a situation where we have about 60 web applications is various stages of the SDLC. We need a way to dynamically detect if a application has been deployed to one of our servers. This detection would occur based on a 'is-URL' present (or does it respond back to the right status code) in a template. If so, add application to be monitored. (Ideally we would need to be able to say, if down for at least a week, or some other defined timeframe, it's likely no longer deployed.)

Comment by Jon Beilke [ 2016 Oct 24 ]

Should be covered on the Zabbix doc site - https://www.zabbix.com/documentation/3.2/manual/api/reference/httptest/create

{
    "jsonrpc": "2.0",
    "method": "httptest.create",
    "params": {
        "name": "Homepage check",
        "hostid": "10085",
        "steps": [
            {
                "name": "Homepage",
                "url": "http://mycompany.com",
                "status_codes": 200,
                "no": 1
            },
            {
                "name": "Homepage / About",
                "url": "http://mycompany.com/about",
                "status_codes": 200,
                "no": 2
            }
        ]
    },
    "auth": "038e1d7b1735c6a5436ee9eae095879e",
    "id": 1
}

We're using Ruby as it allows us to fetch a JSON list of sites from an internal API and then add the necessary Web Scenarios to Zabbix with this zabbixapi gem - https://github.com/express42/zabbixapi

The readme for the zabbixapi gem includes an example for adding Web Scenarios (a.k.a. httptests). The steps are passed as an array to the API as part of the Web Scenario, and are ordered based on the number (no) property.

Comment by Vladimir Ulogov [ 2016 Oct 25 ]

But long-term solution for this, would be a support of the WebScenario prototypes in LLD. I am voting for this.

Comment by Eduard Muradov [ 2020 Feb 06 ]

Hey. Is there any news about this feature?

Comment by Ben Hanson [ 2021 Jul 15 ]

I can see that using web scenarios prototypes in LLD might be a bit counterintuitive, since scenarios would likely be individual to an apache/iis/etc application.  Maybe it would make more sense to have an improved HTTP agent item to do single URL checking, since that is already a prototype.

It's just so much easier to do a clean web scenario + trigger.

So is there a way to make an HTTP agent item that behaves like a single step web scenario?

Comment by Slash [ 2021 Jul 15 ]

LLD web scenario can be very useful when you need to monitor several websites on a reverse proxy cluster or even a single http server. You can also monitor several endpoints of a specific application.

Currently we have to create a userparameter with LLD to perform this action.

Generated at Wed Apr 24 01:20:49 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.