views:

61

answers:

2

I'm tweaking a perl script that I use to monitor sites (response times etc.) and I'm running into issues using Nagios::WebTransact.

I want to be able to post to a page on one of my sites, get a response, and use the values in that response to post to the next page. It doesn't look like Nagios::WebTransact supports this. I read it has "limited ability to respond to dynamic web pages".

Is there an alternative I can use or possibly a feature of WebTransact that I am unaware of?

+1  A: 

I am not familiar with Nagios::WebTransact, but would suggest looking into WWW::Mechanize

sberry2A
If "dynamic web pages" means JavaScript, that doesn't appear to offer a solution.
Kinopiko
... in which case `WWW::Mechanize::Firefox` or `WWW:Selenium` might be a better option
Zaid
A: 

My solution ended up being to parse the response text, which you can get using check() on the transaction. Not the solution I was hoping for but it was still workable.

stevebot