Ad Widget

Collapse

Problem with web scenario

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jlofshult
    Junior Member
    • Mar 2007
    • 9

    #1

    Problem with web scenario

    I'm trying to create a multi-step web scenario in version 1.3.3 that will log in to a SSL web site, but when I add any more than one step, the Zabbix server dies. This is on Solaris 10. The log file doesn't indicate any error. It just says the server is shutting down.

    Anyone have any suggestions?
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Are you just trying to access a WEB via HTTPS? No post variables?
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • jlofshult
      Junior Member
      • Mar 2007
      • 9

      #3
      The way the site works is that I need to post two variables (username and password). I should then get a session cookie back that I need to send on all subsequent requests.

      Thanks,

      Joe

      Comment

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

        #4
        Does it crash if you don't provide these variables?
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        • jlofshult
          Junior Member
          • Mar 2007
          • 9

          #5
          I'm having trouble recreating the problem. I've set up the scenario again and I must have done something a little differently, because the zabbix_server process isn't crashing. I tried this multiple times before and every time it would crash. Now that I'm trying to replicate it I can't.

          However, I noticed two of the steps of the scenario don't seem to be working. Is there someplace I can look to see what is being returned by the GET and POST requests?

          Thanks,

          Joe

          Comment

          • jlofshult
            Junior Member
            • Mar 2007
            • 9

            #6
            I've been able to recreate the problem now. The scenario I was using had 4 steps:

            1) Get the login page (just a simple GET)
            2) Attempt to login with a POST (using a username and password)
            3) Attempt to GET another page using an assigned session cookie
            4) Logout

            When I watched the traffic going back and forth, I could see the first step was successful (although for some reason Zabbix reports it fails on the first step). It then attempts the POST, which doesn't succeed for some reason (I don't get a cookie back). The 3rd and 4th steps fail since there isn't a cookie. However, the Zabbix server didn't crash.

            When I remove the first step (getting the login page), and the scenario starts with the POST, the zabbix_server crashes immediately. The only thing in the zabbix_server.log file is

            8624:20070321:122513 Starting zabbix_server. ZABBIX 1.3.3.
            8625:20070321:122513 server #1 started [Poller. SNMP:OFF]
            8626:20070321:122513 server #2 started [Poller. SNMP:OFF]
            8627:20070321:122513 server #3 started [Poller. SNMP:OFF]
            8629:20070321:122513 server #5 started [Poller. SNMP:OFF]
            8630:20070321:122513 server #6 started [Poller. SNMP:OFF]
            8628:20070321:122513 server #4 started [Poller. SNMP:OFF]
            8631:20070321:122513 server #7 started [Trapper]
            8632:20070321:122513 server #8 started [Trapper]
            8633:20070321:122513 server #9 started [Trapper]
            8637:20070321:122514 server #10 started [Trapper]
            8640:20070321:122514 server #13 started [Alerter]
            8638:20070321:122514 server #11 started [Trapper]
            8639:20070321:122514 server #12 started [ICMP pinger]
            8646:20070321:122514 server #15 started [Timer]
            8644:20070321:122514 server #14 started [Housekeeper]
            8644:20070321:122514 Executing housekeeper
            8647:20070321:122514 server #16 started [Poller for unreachable hosts. SNMP:OF
            F]
            8651:20070321:122514 server #17 started [Node watcher. Node ID:0]
            8652:20070321:122514 server #18 started [HTTP Poller]
            8653:20070321:122514 server #19 started [HTTP Poller]
            8624:20070321:122515 server #0 started [Watchdog]
            8658:20070321:122515 server #21 started [HTTP Poller]
            8659:20070321:122515 server #22 started [HTTP Poller]
            8657:20070321:122515 server #20 started [HTTP Poller]
            8624:20070321:122516 One child process died. Exiting ...
            8624:20070321:122518 ZABBIX Server stopped

            Thanks,

            Joe

            Comment

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

              #7
              Thanks for the additional information.
              Alexei Vladishev
              Creator of Zabbix, Product manager
              New York | Tokyo | Riga
              My Twitter

              Comment

              • lcondado
                Member
                • May 2006
                • 37

                #8
                jlofshult:

                ¿ Could you please, provide to me a little procedure to compile the Zabbix Server 1.4 on Solaris 10 ?

                I am facing some truble compiling Jabber, which needs the libidn library, when i try to compile this library, i get the next error:

                make all-recursive
                make[1]: Entering directory `/herramientas/software/libidn-0.6.8'
                Making all in gl
                make[2]: Entering directory `/herramientas/software/libidn-0.6.8/gl'
                make all-am
                make[3]: Entering directory `/herramientas/software/libidn-0.6.8/gl'
                /bin/bash ../libtool --tag=CC --mode=link gcc -g -O2 -o libgnu.la dummy.lo error.lo getopt.lo getopt1.lo
                false cru .libs/libgnu.a .libs/dummy.o .libs/error.o .libs/getopt.o .libs/getopt1.o
                make[3]: *** [libgnu.la] Error 1
                make[3]: Leaving directory `/herramientas/software/libidn-0.6.8/gl'
                make[2]: *** [all] Error 2
                make[2]: Leaving directory `/herramientas/software/libidn-0.6.8/gl'
                make[1]: *** [all-recursive] Error 1
                make[1]: Leaving directory `/herramientas/software/libidn-0.6.8'
                make: *** [all] Error 2

                Thanks
                Last edited by lcondado; 02-06-2007, 00:39.

                Comment

                • lucman
                  Junior Member
                  • Oct 2010
                  • 8

                  #9
                  Web Scenario

                  Hi, ppl,
                  I'm new in Zabbix.
                  I would like to monitor a website (made in Java-ZK).
                  How can i do a step that make login in a site?
                  I tried follow what is writen in manual, but doest not work, I mean dont do login.
                  Any help? Pls

                  Comment

                  Working...