3.3 eventgenerator.pl - the web-based event generator

The script eventgenerator.pl allows users to manually generate events to be added to the log. The web page (Fig. 4) consists of a simple form with drop-down menus to allow users to identify themselves, to select a severity level, and to have notification of the event sent to someone by email. A small JavaScript routine changes the icon to the right of the event level selector to match the chosen severity. A text box is provided to enter the event description. Buttons allow the user to either submit the event or issue a SYNC command to notabene.pl.

Event generator web page

Figure 4: Event generator web page

Technically, since all events generated by this script come from the web server itself, eventgenerator.pl inserts the name of the computer displaying the web page into the location for the machine name. In order to allow as much space as possible for the event description, the user�s name is inserted into the location for the sub-process, as it is not otherwise being used.


Previous Page   Title Page   Next page