Hi Dieter Did you try the HTTPmonitor ? We used it to check a squid proxy.
Server" cauvery.noid.in" is running Squid bound to a service ip address on port 8080. On Device cauvery we added and bound a new template (monitor_url). This template has a Datasource HttpMonitor The template is defined as follow: Code: Host Name : proxy06-master.noid.in (this is the ip used by Squid) IP Address : (empty - otherwise the datasource will use cauvery IP) Port : 8080 Url : http://www.google.co.in Regular Expression : google This template resolve to the following command: Code: /usr/local/zenoss/common/libexec/check_http -H proxy06-master.noid.in.sopra -p 8080 -t 60 -u http://www.google.co.in -f follow -r google Which in turn provides the following result: Code: HTTP OK HTTP/1.0 200 OK - 0.240 second response time |time=0.239638s;;;0.000000 size=7041B;;;0 Now if I look for the regular expression "googl1" I get: Code: HTTP CRITICAL - pattern not found And this will raise an event in zenoss associated to the server cauvery. Now in your case, if you have multiple web servers running on the same device, you could create one DataSource for each web server. Code: Host Name : web_server1.dns IP Address : (empty - otherwise the datasource will use cauvery IP) Port : 80 Url : /app1 Regular Expression : my expression -- Host Name : web_server2.dns IP Address : (empty - otherwise the datasource will use cauvery IP) Port : 81 Url : /app2 Regular Expression : my second expression This will connect to each web server, download one page and check for a regular expression in each page. If the web server is not running, the page doesn't exists or the the expression is not found : it will raise an alert. -- Florian Deckert SopraGroup - France -------------------- m2f -------------------- Read this topic online here: http://forums.zenoss.com/viewtopic.php?p=37601#37601 -------------------- m2f -------------------- _______________________________________________ zenoss-users mailing list [email protected] http://lists.zenoss.org/mailman/listinfo/zenoss-users
