Ad Widget

Collapse

web.page.regexp = ZBX_NOTSUPPORTED?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bytesize
    Member
    • Aug 2005
    • 71

    #1

    web.page.regexp = ZBX_NOTSUPPORTED?

    Hi,

    I'm trying to use web.page.regexp but its being report as Not Supported by the agent which is v1.1.2. This is the section in my agent log:

    Code:
    004515:20061027:133123 In check_security()
    004515:20061027:133123 Connection from [192.168.0.1]. Allowed servers [192.168.0.1]
    004515:20061027:133123 Before read()
    004515:20061027:133123 After read() 2 [57]
    004515:20061027:133123 Got line:web.page.regexp[[url]www.google.com[/url], index.html, 80, Web, 2,]
    004515:20061027:133123 Sending back:ZBX_NOTSUPPORTED
    ...and this is what I have defined as the item:

    Description: Apache Response
    Type: Zabbix Agent
    Key: web.page.regexp[www.google.com, index.html, 80, Web, 2,]
    Type: Text

    Can anyone help me get this working? Thanks!

    John
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Please re-try without spaces.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • bytesize
      Member
      • Aug 2005
      • 71

      #3
      Hi - thanks for the fast response! Unfortunately its still happening...

      Code:
      005030:20061027:140506 Got line:web.page.regexp[www.google.com,index.html,80,Web,2,]
      005030:20061027:140506 Sending back:ZBX_NOTSUPPORTED
      John

      Comment

      • bytesize
        Member
        • Aug 2005
        • 71

        #4
        Aha, solved it - I removed the very last comma from the trigger and it works great now.

        I want to implement this item in a template so all my hosts check their own webserver. However all my hosts are defined using IP address rather than hostname because they dont have valid DNS entries. So, I would like to set the template item up like this:

        Code:
        web.page.regexp[192.168.0.25,index.html,80,apache_running,2]
        Is there a macro like {HOSTIP} that I can use?

        Thanks,

        John

        Comment

        • bytesize
          Member
          • Aug 2005
          • 71

          #5
          Hi,

          Does anyone have any suggestions on how to do this? I really need to get this website monitoring working!

          I need a way of specifying the IP address of a host in a template instead of the hostname.

          Thanks,

          John

          Comment

          • Alexei
            Founder, CEO
            Zabbix Certified Trainer
            Zabbix Certified SpecialistZabbix Certified Professional
            • Sep 2004
            • 5654

            #6
            It is not supported currently, however it is a very good suggestion.
            Alexei Vladishev
            Creator of Zabbix, Product manager
            New York | Tokyo | Riga
            My Twitter

            Comment

            • bytesize
              Member
              • Aug 2005
              • 71

              #7
              Hi Alexei,

              Ah, okay - I'll just have to get some DNS sorted out, although specifying 127.0.0.1 in the template hosts seems to work, as it gets the remote agent to connect to the loopback interface when testing the webserver.

              Once I get all this working, I'll post some instructions in the cookbook.

              Thanks Alexei!

              John

              Comment

              • WaJan
                Junior Member
                • Nov 2006
                • 9

                #8
                Heya
                I cant seem to get this working at all atm, mind talking me through exactly how you got this to work?

                Im using 1.1.3 atm and wanting to monitor sites on both windows and linux servers which have agents on them.

                Comment

                • WaJan
                  Junior Member
                  • Nov 2006
                  • 9

                  #9
                  Testing from console It would seem the last char is getting dropped every time, resulting in a EOF when checked =\

                  /usr/local/bin/zabbix_get -s127.0.0.1 -p10050 -k "web.page.regexp[wadns.net,monitor/default.html,80,Working,6]"
                  Workin


                  any ideas?

                  Comment

                  • WaJan
                    Junior Member
                    • Nov 2006
                    • 9

                    #10
                    shameless bump =\

                    Still cant get this working at all.

                    Comment

                    • Rudolf
                      Member
                      • Dec 2004
                      • 90

                      #11
                      Hi, I also want to monitor a page that is not in the web root. For example www.website.com/folder/page.html. I didn't figure out how to set the item. The status is always unsupported. I use Zabbix 1.1.4.
                      web.page.regexp[www.website.com,Web/login.aspx,80,changed,7]
                      Maybe it's not supported by zabbix?

                      Comment

                      • Rudolf
                        Member
                        • Dec 2004
                        • 90

                        #12
                        Hi,

                        It looks like it works if I write: web.page.regexp[www.website.com,/Web/login.aspx,80,changed,7]
                        (note the / to specify the web root). However, I can't make it work to test a SSL site on port 443. I always get EOF.

                        Comment

                        Working...