Archived community.zenoss.org | full text search
Skip navigation
1 2 Previous Next 169583 Views 17 Replies Latest reply: Nov 5, 2009 5:36 PM by sstormes RSS
sjacobs Rank: White Belt 63 posts since
Aug 26, 2009
Currently Being Moderated

Oct 20, 2009 11:15 AM

twill zenpack

Yesterday on MIRC somebody with an @ before his/her name anounced there will be a twill zenpack released.

When when when

  • sstormes Rank: White Belt 25 posts since
    Oct 30, 2007
    Currently Being Moderated
    1. Oct 20, 2009 11:32 AM (in response to sjacobs)
    Re: twill zenpack

    I have a ZenPack that should be released (hopefully) today that is

    based on twill called "Synthetic Web Transactions" that will run

    through a process of stepping through a website (fill out forms, log

    in, follow links, post data, etc...), time the length of completion,

    and graph the results to an RRD graph. If the transaction fails (post

    was not successful, login failed, etc..), it will report an error to

    the website as either a critical or error, depending on how you want

    the alert to be issued.

     

    Was that the ZenPack you are talking about?

    Sonny Stormes

  • sstormes Rank: White Belt 25 posts since
    Oct 30, 2007
    Currently Being Moderated
    3. Oct 20, 2009 2:49 PM (in response to sjacobs)
    Re: twill zenpack

    What kind of header data are you expecting to manipulate in a

    transaction? Twill simulates a browser in every way, so if you need to

    add data to your URL like:

     

    http://www.example.com/?ui=2#somekindofdatablahblah

     

    Then if you include it in your "go" statement, the simulated browser

    will post the data just like from a standard browser. The way I run

    synthetic transactions is to start at our customer portal, fill in the

    login and password information, login like a regular user, follow

    links, post some test data, search for specific data verifying

    database communications (the two ensure that the database is

    performing reads and writes), and log out.

     

    HTH

     

    Sonny

  • Matt Ray Rank: Zen Master 2,484 posts since
    Apr 5, 2008
    Currently Being Moderated
    5. Oct 20, 2009 5:03 PM (in response to sjacobs)
    Re: twill zenpack

    Here's the new ZenPack:

    Synthetic Web Transactions

     

    Thanks to Sonny Stormes!

  • sstormes Rank: White Belt 25 posts since
    Oct 30, 2007
    Currently Being Moderated
    7. Oct 20, 2009 6:22 PM (in response to sjacobs)
    Re: twill zenpack

    You can use the ZenPack with snmp monitored systems and by directly

    testing against a systems webserver name, the idea behind the

    directions was that sites that are being monitored as a part of a

    cluster or load balancer would only use the web address and not the

    direct server name.

     

    Sonny

  • sstormes Rank: White Belt 25 posts since
    Oct 30, 2007
    Currently Being Moderated
    9. Oct 20, 2009 7:04 PM (in response to sjacobs)
    Re: twill zenpack

    Try it with the zenpack unzipped first and see if the error still occurs.

  • jmp242 ZenossMaster 4,060 posts since
    Mar 7, 2007
    Currently Being Moderated
    11. Oct 21, 2009 8:29 AM (in response to sjacobs)
    Re: twill zenpack

    This is all in the documentation... I however am a bit confused... I'm

    guessing it's best practice to actually use the sort of "disembodied

    device" websites so you can monitor multiple sites on the same device.

    But when you say the website name(as the device name actually), can that

    be something like:

    www.zenoss.org/my/sub/page.htm

    and another

    www.zenoss.org/my/other/page.htm

    ?

    --

    James Pulver

    Information Technology Area Supervisor

    LEPP Computer Group

    Cornell University

     

     

     

    sjacobs wrote, On 10/21/2009 7:04 AM:

    it seems you need to manually create the websites device class and unzip the file.

    >

  • sstormes Rank: White Belt 25 posts since
    Oct 30, 2007
    Currently Being Moderated
    12. Oct 21, 2009 10:57 AM (in response to jmp242)
    Re: twill zenpack

    My thinking was that both URL's would be in the same transaction if

    you were testing a site. But I see your point in that what if you

    wanted to check different resources for the same FQDN. My best

    suggestion would be to make a local copy of the template to a website,

    and change the template to point specifically to a script (removing

    the 2nd ${dev/id} and replacing it with the specific name of the

    script under the transaction time data source). Or creating a second

    data source by copying the existing one and renaming it

    transaction_test2 and pointing it to the twill script. That way you

    could monitor both resources at the same time under the same template

    and have the option to graph together or independently.

     

    What are your thoughts? I'm always open to new ideas and suggestions

     

    Sonny

  • sstormes Rank: White Belt 25 posts since
    Oct 30, 2007
    Currently Being Moderated
    14. Oct 21, 2009 11:28 AM (in response to sjacobs)
    Re: twill zenpack

    The ZenPack will run your twill script and look for the return code

    from twill, so if it exits in any other state then 0 (like if a twill

    script fails to run) it will return failed. Make sure your URL is set

    correct and that you are not including it in your twill script as the

    transtest.py is looking for the following:

     

    transtest.py ${dev/id}

    $ZENHOME/ZenPacks/ZenPacks.synthetictransactions.SonnyStormes-1.0.egg/ZenPacks/synthetictransactions/SonnyStormes/scripts${dev/id}

     

    Where the first ${dev/id} is the URL and the second is the name and

    location of the script. The URL is fed to the plugin via the first

    ${dev/id}. I guess it could work with the URL in the twill script, but

    I am not sure of the result.

     

    In your twill script, are you running any "find" commands?

     

    Sonny

1 2 Previous Next

More Like This

  • Retrieving data ...

Legend

  • Correct Answers - 4 points
  • Helpful Answers - 2 points