Chapter 23. Pre-Written VB Target Scripts

Table of Contents

DB
DiskFreeCheck
DiskFree
DNS
FTP
HTTP
HTTPS
IMAP
NNTP
Ping
POP3
Process
Proxy
Service
SMTP

Pre-written scripts are provided in VB Script and Perl Script. Scripts that test or measure common services are present in both languages. The more specialized scripts are present only in Perl Script.

The VB-Scripts will make use of an ActiveX component (ProbeTest.dll Object). This component will be installed with Net-Probe. If you need to use the VB-Scripts on a remote box then not only must NetProbe-Remote (NetProbe-Remote.pl or NetProbe-Remote-Service) be installed on the box, but also the ProbeTest.dll object. You can copy this object from the Net-Probe computer, to the new computer if desired. Once copied, go to command prompt and type:

regsvr32 ProbeTest.dll

in the directory containing the dll. You should get a message saying the component has been installed.

The Perl scipts do not require the ProbeTest.dll object but most do require Perl components. These components are all available from www.cpan.org. The use of the these components should make it simple to extend a Perl Script to do custom tasks required for your network.

Below lists all pre-written scripts. The primary modules required are listed (These modules may require other modules). Not all tests can be automatically setup for you by the Workspace Wizard. The Workspace Wizard will attempt to run a script if the only required input parameter is Host (and optionally Timeout) are set as input parameters. The first output argument will also need to be tagged as 'alarm, and 'state'. The wizard will then run the script filling in host and timeout and expect a reply of zero from the first return argument. If these two conditions are met then the alarm will be added. Not all of the pre-written scripts can conform to the standard. Below, the yes or no, found next to 'Workspace Wizard' implies if the wizard can add the host automatically.

In general, if a script does not take an in arg of 'Host' then the script can only test something on a local computer (i.e. the computer that is running the script). To run the test on a remote host, NetProbe-Remote will be required.

DB

Description Test connectivity to a DataBase. If the system has an ODBC Drive for the DB then this test can be used. Create a table in the DB called PerfTest with one field called TestField. The table should contain at least one record. Usually this statement will make the table:

CREATE TABLE PerfTest (TestField INTEGER DEFAULT 0, PRIMARY KEY(TestField));

INSERT INTO PerfTest VALUES (10);

The test will create a connection, then read all TestFields in the PerfTest table. The time taken to perform these tasks is measured and returned.
Operating Systems Subject to DB's ODBC Driver limitations.
Requirements ODBC Driver for Database.
Scope Unlimited (within abilities of ODBC Driver)
Workspace Wizard No
In Args
0<Host>
1Driver*
2Database
3Username
4Password
5Option
Out Args
0Alarm status (0-OK,1-Critical,2-Warning)
1Text status and failure reason
2Time Taken
Alarm Usage Yes
Graph Usage The response time can be graphed.

Copyright (c) Warren Flemmer 2006www.net-probe.com