Ad Widget

Collapse

Monitoring Web Apps

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bobrivers
    Senior Member
    • Feb 2007
    • 115

    #1

    Monitoring Web Apps

    Hi,

    As stated into the roadmap, in the 1.4 version we will be able to monitor web apps. Is it already possible to do it with 1.3.2?

    I'm not asking about "old" way (scripts), well at least I'm specting something were I can type an url (www.mysite.com.br/somepage.html), including authentication (as descibed into the roadmap).

    If yes, were I can find some "how to".

    TIA,

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

    #2
    This functionality is ready and will be released in 1.3.3.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • bbrendon
      Senior Member
      • Sep 2005
      • 870

      #3
      Performing a full transaction like keynote would be really cool.
      Unofficial Zabbix Expert
      Blog, Corporate Site

      Comment

      • bobrivers
        Senior Member
        • Feb 2007
        • 115

        #4
        Using 1.3.3

        Hi, nice work. I was anxious.

        Well, I read the manual and I think that I was able to build a scenario with the required steps. But, it seems to be not working...

        First I created a scenario called "test": application = test, name = testName with update interval of 5 secs. I select Firefox for linux and lynx (since I'm using RHEL AS 4).

        I didn't created any variables. Then I added just one step: name = home, url = www.zabbix.com. No post, no required strings.

        After saving it, in monitoring > web it shows me the scenario that I have created and it status is ok, but if I click over its name, the speed and response time are empty.

        I tried to fill all the other fields. I tried to change the url (using http://www.zabbix.com/), but nothing worked...

        It looks like that it isn't updated...

        Am I missing something? Is it necessary to start something, like some kind of cron job...

        TIA

        Bob

        Comment

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

          #5
          Did you compiled ZABBIXserver with option --with-libcurl? This is required for WEB monitoring!
          Alexei Vladishev
          Creator of Zabbix, Product manager
          New York | Tokyo | Riga
          My Twitter

          Comment

          • bobrivers
            Senior Member
            • Feb 2007
            • 115

            #6
            libcurl version

            Hi, yes. I compiled zabbix with "--with-libcurl". But, I didn't paid to much attention and only after you said, I looked into config.log and I was able to see that zabbix requires version 7.15.1 or newer.

            The default version for RHEL4 is 7.12.x...

            Right now I trying to update my curl. In fact I was able to do it to the 7.16.1 version. I am able to run it by command line, and when compiling zabbix it didn't complain about it:

            configure:8517: checking for curl-config
            configure:8535: found /usr/local/bin/curl-config
            configure:8547: result: /usr/local/bin/curl-config
            configure:8557: checking for the version of libcurl
            configure:8564: result: 7.16.1
            configure:8571: checking for libcurl >= version 7.15.1
            configure:8584: result: yes
            configure:8625: checking whether libcurl is usable
            configure:8663: gcc -o conftest -g -O2 -I/usr/local/include conftest.c -L/usr/local/lib -lcurl -L/usr/kerberos/lib -lidn -lssl -lcrypto -ldl -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lz -lresolv -lnsl >&5
            configure:8669: $? = 0
            configure:8672: test -z || test ! -s conftest.err
            configure:8675: $? = 0
            configure:8678: test -s conftest
            configure:8681: $? = 0
            configure:8699: result: yes
            configure:8712: checking for curl_free
            configure:8769: gcc -o conftest -g -O2 -I/usr/local/include conftest.c -lresolv -lnsl -L/usr/local/lib -lcurl -L/usr/kerberos/lib -lidn -lssl -lcrypto -ldl -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lz >&5
            configure:8775: $? = 0
            configure:8778: test -z || test ! -s conftest.err
            configure:8781: $? = 0
            configure:8784: test -s conftest
            configure:8787: $? = 0
            configure:8799: result: yes

            But, when I try to start the server, I receive the following error message:

            zabbix_server: error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory

            Rigth now I'm "googling" the web in order to see if I get some help. Do you have any advice? Maybe a curl downgrade for 1.3.4?

            TIA

            Bob

            Comment

            • bobrivers
              Senior Member
              • Feb 2007
              • 115

              #7
              It's working...

              It's working... A simple
              PHP Code:
              export LD_LIBRARY_PATH=/usr/local/lib 
              resolved the problem.

              Now I have another problem, but I will open another topic. I think it's better...

              Comment

              • TarkanVeKurdu
                Junior Member
                • Mar 2007
                • 1

                #8
                bobrivers I have the same issue. zabbix 1.3.3 is installed centos 4 . I have reinstalled curl and updated to latest version. also recompiled zabbix. All is ok when I check with ldd :


                [root@monitor zabbix]# ldd /usr/bin/zabbix_server
                libmysqlclient.so.14 => /usr/lib/mysql/libmysqlclient.so.14 (0xb7eab000)
                libz.so.1 => /usr/lib/libz.so.1 (0xb7e9a000)
                libcrypt.so.1 => /lib/libcrypt.so.1 (0xb7e6c000)
                libnsl.so.1 => /lib/libnsl.so.1 (0xb7e56000)
                libm.so.6 => /lib/tls/libm.so.6 (0xb7e33000)
                libssl.so.4 => /lib/libssl.so.4 (0xb7dff000)
                libcrypto.so.4 => /lib/libcrypto.so.4 (0xb7d16000)
                libcurl.so.4 => /lib/libcurl.so.4 (0xb7ce0000)
                libiksemel.so.3 => /usr/lib/libiksemel.so.3 (0xb7cd5000)
                libresolv.so.2 => /lib/libresolv.so.2 (0xb7cc2000)
                libc.so.6 => /lib/tls/libc.so.6 (0xb7b97000)
                /lib/ld-linux.so.2 (0xb7fe9000)
                libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0xb7b83000)
                libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0xb7b1d000)
                libcom_err.so.2 => /lib/libcom_err.so.2 (0xb7b1a000)
                libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0xb7af9000)
                libdl.so.2 => /lib/libdl.so.2 (0xb7af5000)
                libidn.so.11 => /usr/lib/libidn.so.11 (0xb7ac5000)
                libgnutls.so.11 => /usr/lib/libgnutls.so.11 (0xb7a55000)
                libgcrypt.so.11 => /usr/lib/libgcrypt.so.11 (0xb7a0b000)
                libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0xb7a07000)
                [root@monitor zabbix]#



                But somehow I cant get a result on web performance monitors. What could be the problem ?

                My monitor properties are :

                Application : Web
                Name : Test_WEB
                Update_Interval : 30
                Agent : Mozilla
                Status : Active
                Variables : empty
                STEPS :

                Name : CNN
                URL : http://www.cnn.com
                Post: Empty
                Timeout : 15
                Result :empty


                It gives result :

                Step Speed Response time Response code Status
                CNN - - - OK


                What could be the problem here ?

                Regards

                Comment

                • bobrivers
                  Senior Member
                  • Feb 2007
                  • 115

                  #9
                  hints

                  Hi,

                  That was the simptons (no data, just an OK) when curl was not working properly.

                  Did you checked to see if curl is working? Try to run "curl www.cnn.com" and see if you get some kind of response.

                  If yes, then try to recompile the zabbix agent and server. Before recompiling it, make sure to run a "make clean" and a "make distclean" in order do have everything cleaned.

                  After that you compiled it again, check the "config.log". Verify if it has an ok for curl tests (take a look at my previous messages). You must have a yes for the tests results.

                  If you do not get a result, try to erase the scenario and create a new one. And use a low refresh rate (so you will not wait to much).

                  These were the steps that I did.

                  Regards,

                  Bob
                  Last edited by bobrivers; 04-03-2007, 03:11.

                  Comment

                  • maxence
                    Junior Member
                    • Mar 2007
                    • 5

                    #10
                    Curl version

                    Hello,


                    For information with Zabbix beta 1.3.3.

                    I'was getting issue with curl-7.16 on CentOS 4.
                    (the error was visible in the config.log).

                    It's working now with curl-7.15, I'm using the Fedora 5 package.
                    If you need them : http://centos.ate.info/zabbix/




                    Cheers
                    Last edited by maxence; 07-03-2007, 11:52.

                    Comment

                    Working...