Ad Widget

Collapse

Required pattern was not found on....

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Welcome_to_the_jungle
    Member
    • May 2019
    • 56

    #1

    Required pattern was not found on....

    Hello!
    Guys need help. Making a web scenario, and i have a problem with "Required string".
    I set up everything as in the instructions but I got an error "Required pattern "live" was not found on. "my web site""

    I am attaching a screenshot settings. (Screenshot 1)
    I have the web page vlc-player (Screenshot 2), where I am monitoring the line "live". If playback stopped, then "life" will be disappear, then will be alarm and etc...
    The problem is that zabbix doesnt see this line, i mean "live" (Screenshot 3).
    Website charset =UTF-8.
    I also apply config file the zabbix agent.
    How can i fix it?

    Zabbix 5.4.3
    Zabbix-agent 2 v5.4.9


    thanks for the help =)
    Attached Files
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    Just a wild guess, but maybe you should not check for 401 return code...

    Comment

    • Welcome_to_the_jungle
      Member
      • May 2019
      • 56

      #3
      Originally posted by cyber
      Just a wild guess, but maybe you should not check for 401 return code...
      its doesnt matter, 401 or 200, if i choose code 200, i receive message


      "response code "401" did not match any of the required status codes "200""

      Comment

      • cyber
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Dec 2006
        • 4807

        #4
        401 is "Unauthorized". I guess you are not getting any page at all to search for "string"...

        Comment

        • Welcome_to_the_jungle
          Member
          • May 2019
          • 56

          #5
          Originally posted by cyber
          401 is "Unauthorized". I guess you are not getting any page at all to search for "string"...
          thanks for your advice, now i see my fault, but can you explain to me how to set up password authentication?
          I have autherazation page (screenshot1)
          I'm set up Scenario page(screenshot2), where i declare a variable {password} and make value my real password? right?
          My service havent login, just password, it is web interface vlc-palyer.
          Well, on the step 1 in "Post field" in the field "name" I enter what? Name of botton on the web site? Or something else?
          In the field "value" name of viriable? (Screenshot3)


          Thank you very much for your help, best regards.





          Attached Files

          Comment

          • cyber
            Senior Member
            Zabbix Certified SpecialistZabbix Certified Professional
            • Dec 2006
            • 4807

            #6
            I don't know that vlc thing, but I guess you need to enter password under "authentication" tab. Probably selecting basic auth or something...

            Comment

            • Welcome_to_the_jungle
              Member
              • May 2019
              • 56

              #7
              Originally posted by cyber
              I don't know that vlc thing, but I guess you need to enter password under "authentication" tab. Probably selecting basic auth or something...
              i tryed it, unfortunately it didn't help

              Comment

              Working...