Ad Widget

Collapse

Web monitoring shopping cart

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Zabbixtrainee
    Junior Member
    • Mar 2016
    • 20

    #1

    Web monitoring shopping cart

    Hi, I've read that it is possible to check whether the adding products/checkout works with zabbix 3.0 web monitoring.

    I have used webpage inspector to see what the site uses in order to add products in shopping cart and tried using cURL to see what's happening.
    I managed to dig out that shopping cart information is stored within cookies.

    So, I need Zabbix to "push" the "add shopping cart button", but I have come to a dead end with this one.
    This is what the HTML code for the button looks like.
    <a onclick="getElementById('page_dimmer').style.displ ay='';getElementById('ostoskoriin_popup').style.di splay='block';Stato.NotifyOnce('ostoskori',['Action=Add','RowId=tuotelistausBA2']);" href="javascript://">Lisää ostoskoriin</a>
    (ostoskori=shopping cart)

    And here are the cookies it uses,

    Neta.5jby59WvQ.UserId = NjNhOWYwZWE3YmI5ODA1MDc5NmI2NDllODU0ODE4NDU6SmhsSl hRVXds

    StatoSession0 = 1itklcngyzjfe145iftl9he1tn
    I don't know which one to use in Zabbix. I have tried both in the log in phase but I get error message saying:
    "Error: error in step variables "{Neta.5jby59WvQ.UserId}=regex:name="Neta.5jby59Wv Q.UserId" value="([0-9aA-zZ]{56})"": cannot extract the value of "{Neta.5jby59WvQ.UserId}" from response"
    or with StatoSession0 I get:
    Error: error in step variables "{StatoSession0}=regex:name="StatoSession0" value="([0-9a-z]{26})"": cannot extract the value of "{Neta.5jby59WvQ.UserId}" from response

    Any clues, ideas, HELP?

    Cheers!
Working...