> From: Edwin Zoeller [mailto:edwin.zoel...@ama-assn.org] > Sent: Thursday, 20 January 2011 7:28 AM > > I was wondering if someone out there can help me with this. I am trying to > monitoring a website to which I login with a username/password then from > there as that user access another site that I am allowed to see from my > login name. If someone has done this I would very much appreciate the help. > Also, what is the proper syntax for searching for a string that would appear > only as an error. Example, all is good but if the phrase "Denied" appears on > the web page, I want to report that as an error.
The standard check_http plugin supports the ability to send username and password (assuming the site uses a browser-authentication). From there you can do either string or regular-expression matching. If the site doesn't use browser-authentication, then I'd recommend the perl module WWW::Mechanize to fill in forms and browse through a website. We use this module for a number of our site monitoring. It's very robust (if you take the time to use the module properly) and very easy to use. Stuart ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null