Presentation is loading. Please wait.

Presentation is loading. Please wait.

Monitoring Web Sites With Openview Operations Utilizing Perl within Openview.

Similar presentations


Presentation on theme: "Monitoring Web Sites With Openview Operations Utilizing Perl within Openview."— Presentation transcript:

1 Monitoring Web Sites With Openview Operations Utilizing Perl within Openview

2 The Reasons Behind Our In House Development Some of our web sites were becoming unresponsive, but all necessary services were running. Some of our web sites were becoming unresponsive, but all necessary services were running. No need to purchase another product from an outside vendor. No need to purchase another product from an outside vendor. Simple to implement. Simple to implement. Large amount of expandability. Large amount of expandability.

3 Getting Started With Perl OVOW And Perl 5.6.1 (If you upgraded your perl install to 5.8.7, even better) OVOW And Perl 5.6.1 (If you upgraded your perl install to 5.8.7, even better) You will need to add some Perl modules to your current Perl installation. You will need to add some Perl modules to your current Perl installation. The extra modules will allow you to retrieve Webpage content. The extra modules will allow you to retrieve Webpage content. http://search.cpan.org/dist/libwww-perl/lib/LWP.pm http://search.cpan.org/dist/libwww-perl/lib/LWP.pm http://search.cpan.org/dist/libwww-perl/lib/LWP.pm http://search.cpan.org/~gaas/URI-1.35/URI.pm http://search.cpan.org/~gaas/URI-1.35/URI.pm http://search.cpan.org/~gaas/URI-1.35/URI.pm http://www.cpan.org/modules/by- module/HTML/HTML-Parser-2.25.tar.gz http://www.cpan.org/modules/by- module/HTML/HTML-Parser-2.25.tar.gz http://www.cpan.org/modules/by- module/HTML/HTML-Parser-2.25.tar.gz http://www.cpan.org/modules/by- module/HTML/HTML-Parser-2.25.tar.gz If you are using Perl 5.6.1 you must use HTML Parser 2.25, if you are using 5.8.7 you can use the latest version of HTML Parser just fine. If you are using Perl 5.6.1 you must use HTML Parser 2.25, if you are using 5.8.7 you can use the latest version of HTML Parser just fine.

4 Where To Put The Modules In a standard OVOW installation… In a standard OVOW installation… C:\Program Files\HP OpenView\Installed Packages\{790C06B4-844E-11D2-972B- 080009EF8C2A}\lib\perl C:\Program Files\HP OpenView\Installed Packages\{790C06B4-844E-11D2-972B- 080009EF8C2A}\lib\perl

5 What To Look For… Perl Pattern Matching Perl Pattern Matching Make sure your WebPages contain the information you expect them to. Make sure your WebPages contain the information you expect them to. http://webdevelopment.developersnetwork.com/ Articles.asp?Article=143 http://webdevelopment.developersnetwork.com/ Articles.asp?Article=143 http://webdevelopment.developersnetwork.com/ Articles.asp?Article=143 http://webdevelopment.developersnetwork.com/ Articles.asp?Article=143 You can even get http request header information and status codes. You can even get http request header information and status codes. http://www.w3.org/Protocols/rfc2616/rfc2616- sec10.html http://www.w3.org/Protocols/rfc2616/rfc2616- sec10.html http://www.w3.org/Protocols/rfc2616/rfc2616- sec10.html http://www.w3.org/Protocols/rfc2616/rfc2616- sec10.html http://search.cpan.org/~gaas/libwww-perl- 5.800/lib/LWP.pm http://search.cpan.org/~gaas/libwww-perl- 5.800/lib/LWP.pm http://search.cpan.org/~gaas/libwww-perl- 5.800/lib/LWP.pm http://search.cpan.org/~gaas/libwww-perl- 5.800/lib/LWP.pm

6 Sample Output HTTP HEADERS: Connection: close Date: Wed, 05 Apr 2006 15:40:42 GMT Server: Microsoft-IIS/6.0 Content-Type: text/html; charset=UTF-8 Client-Date: Wed, 05 Apr 2006 15:40:42 GMT Client-Peer: 140.106.224.210:80 Client-Response-Num: 1 Link: ; /="/"; rel="stylesheet"; type="text/css" Set-Cookie: CFID=66578;domain=.sinclair.edu;expires=Fri, 28-Mar-2036 15:40:42 GM T;path=/ Set-Cookie: CFTOKEN=88266879;domain=.sinclair.edu;expire s=Fri, 28-Mar-2036 15:40 :42 GMT;path=/ Title: Sinclair Community College Response Status: 200 OK Response Time: 0.0964939594268799 Response Time: 0.127905130386353 Response Time: 0.0744428634643555 Pattern Matching: JRUN Error Found!

7 Forwarding The Information On To OVOW Use OPCMSG in a standalone Perl Script. Use OPCMSG in a standalone Perl Script. Or ConsoleMessage->Send() From within an Openview Policy (Measurement Threshold or Scheduled Task). Or ConsoleMessage->Send() From within an Openview Policy (Measurement Threshold or Scheduled Task).

8 OVOW Scheduled Task Policy

9 The Possibilities Are Endless Be Creative. What we have shown you today is only the framework for you to start with. Be Creative. What we have shown you today is only the framework for you to start with. Sample Code Handout. Sample Code Handout.


Download ppt "Monitoring Web Sites With Openview Operations Utilizing Perl within Openview."

Similar presentations


Ads by Google