Oct 20, 2009 11:15 AM
twill zenpack
-
Like (0)
Yesterday on MIRC somebody with an @ before his/her name anounced there will be a twill zenpack released.
When when when
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
Yep this is the zenpack.
How does twill handles headers?
I have to add header data to get a correct response...
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
if i do this it works if i forget the -header part it gives a 404 page could not be displayed ...
so i need to be able to add a header part...
w3m \
-header "X-IS-SERVER_SOFTWARE: Apache/2.0.55 (Unix) mod_ssl/2.0.55 OpenSSL/0.9.8a" \
-header 'X-IS-GATEWAY_INTERFACE: apache API' \
-header 'X-IS-SERVER_PROTOCOL: HTTP/1.1' \
-header 'X-IS-PATH_TRANSLATED: /eserver1/webadapter/lib/INTERSHOP.enfinity' \
-header 'X-IS-SERVER_PORT: 80' \
-header 'X-IS-SESSION_ID: WbtPuhcrFqMnul3k86_IuOohlGJ6j6IFm80=' \
-header 'X-IS-PGID: .6rCahTIemtSR0QQthyWAgIr0000' \
-header 'X-IS-SERVER_PORT_SECURE: 0' \
"http://10.253.2.71:10054/servlet/Beehive/WFS/..... HTTP/1.1"
Can the zenpack run on servers that already have snmp checks and some shell script checks?
The check http zenpack need it to be turned off ....?
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
i did it from firefox and still ....
Output:
Try it with the zenpack unzipped first and see if the error still occurs.
it seems you need to manually create the websites device class and unzip the file.
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.
>
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
I have a strange something ...
When i test the twill script from the command line with twill-sh <script> it gives me an ok
When i test it from the zenpack it gives me a failed ...?
How is this possible
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
Follow Us On Twitter »
|
Latest from the Zenoss Blog » | Community | Products | Services Resources | Customers Partners | About Us | ||
Copyright © 2005-2011 Zenoss, Inc.
|
||||||||