Ad Widget

Collapse

using web monitoring

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zerros
    Junior Member
    • Jun 2011
    • 5

    #1

    using web monitoring

    Hi,

    Forgive me for my bad english, I'm a french people.

    I'm trying to configurer a web monitoring of a web site. On this web site, I have to:
    1 - Log in with a user / password
    2 - click on a link after login (the link is displayed on a modal window)
    3 - navigate on a menu of the profil
    4 - disconnect

    The problem is to click on the link. I can verify that a word of the modal window is present, but I don't know how to click on the link. The link looks like:
    Code:
    <a href="#" id="jid5" name="jid5" onclick="A4J.AJAX.Submit('xxxx',event,{'oncomplete':function(request,event,data){Richfaces.hideModalPanel('providerPopup')},'xxx':'xxx','xxx':{'xxxx':'xxxx'} } );return false;">Select</a>
    I can't pass this step. I hope that someone will help me

    Thanks.
  • jamied66
    Member
    • Sep 2008
    • 37

    #2
    you cannot click on a link.
    you just add another step in the web check that goes to the page the link leads you to.

    Comment

    • zerros
      Junior Member
      • Jun 2011
      • 5

      #3
      Thanks for this answer, but how can I create another step with the onclik link ?
      The href is "#".
      Code:
      onclick="A4J.AJAX.Submit('xxxx',event,{'oncomplete':function(request,event,data){Richfaces.hideModalPanel('providerPopup')},'xxx':'xxx','xxx':{'xxxx':'xxxx'} } );return false;"
      Do you have an exemple ? thanks for your help...

      Comment

      • jamied66
        Member
        • Sep 2008
        • 37

        #4
        Sorry I misunderstood.

        libcurl, what zabbix uses to execute web-based checks, can't handle pure JS events yet. If there's not a GET or POST stream that you can manipulate you'll have to take it one step further and use WebKit or something similar to execute the code within a browser engine.

        You could then capture that output as a custom zabbix check.

        Hope it helps.

        Comment

        Working...