In the scripts directory there is a console.sh script.
You can start the console application using this in
which case it will obtain the server ipaddress and port
number from the config.txt file you customised
earlier in chapter 2.
The config.txt file also contains the default
number of lines and line length for the display.
The defaults may not suit many users who have customised the line lengths of their terminal emulators. They can run it manually using the syntax below. This requires that they know the port and ip-address the alert collector server is listening on. The alert_console program is in the main installation directory of the toolkit.
alert_console [ port [ ipaddress ] \ [LINELEN=nn] [NUMLINES=nn] [BLINKOFF]] port is the port number the server is listening on ipaddress is the ip-address of the server LINELEN controls the width of the line lines NUMLINES controls how many lines will be displayed BLINKOFF will display acknowledged alerts as normal text rather than blinking text. The defaults are 9003 127.0.0.1 LINELEN=127 NUMLINES=24 |
Tip: I have my customised settings set as an alias in my .bashrc. Thats probably the best place for each user if they want to customide there own settings.
The suppled console interface is designed for a VT100 24 line screen, as such it will display a maximum of 23 outstanding alerts, and leave a line for command input. Critical alerts will be in reverse text, acknowledged alerts in blinking text (unless overidden as noted above), warning and informational alert messages will be in normal text. The console application refreshes it's display automatically every 60 seconds. |
At the console command line the following commands are available to the user.
s |
A facility is provided to run the console program to display the alerts only once, then drop back to the prompt. This may be of limited use to you but I place it in my .bashrc (after checking to ensure I'm on a tty or it upsets my batch jobs) so every time I logon I get to see if alerts are outstanding without actually having to start a full monitoring session.
syntax: alert_console port ipaddress ONCEONLY example:alert_console 9003 127.0.0.1 ONCEONLY |