Unix Log Scanner
PURPOSE
This plugin monitor will check a text file on a unix system and alert on it depending on the regular expression matched.
DESCRIPTION
This plugin monitor will check a text file on a unix system and alert on it depending on the regular expression matched. You can define the number of lines to be checked, and it will not recheck the previous lines.
REQUIREMENTS
Monitoring station
Uptime Version 5.0 and higher
Dependencies: Perl, up.time agent 5.0 and higher
INSTALLATION
Windows
Install the downloaded plug-in monitor using loadpluginmonitor.exe
On the command line, run loadpluginmonitor.exe (found in the scripts directory), providing the absolute path to the downloaded plug-in monitor.
e.g.: loadpluginmonitor c:Program Filesuptime softwareuptime4scriptslogscanwindows.zip or
scriptsloadpluginmonitor c:logscanwindows.zip
Running loadpluginmonitor unarchives the plug-in monitor contents to the appropriate up.time /script and /xml directories (and if applicable, /agent and /lib directories), and will add the plug-in monitor to the up.time interface (specifically, the Advanced Monitors section of the Add Service Monitor page).
UNIX
Install the downloaded plug-in monitor using loadpluginmonitor
On the command line, run loadpluginmonitor (found in the /scripts directory), providing the absolute path to the downloaded plug-in monitor.
e.g.: loadpluginmonitor/usr/local/uptime4/scripts/logscanunix.zip
or /scripts/loadpluginmonitor/user/local/scripts/logscanunix.zip
Running loadpluginmonitor unarchives the plug-in monitor contents into the appropriate up.time /script and /xml directories (and if applicable, /agent and /lib directories), and will add the plug-in monitor to the up.time interface (specifically, the Advanced Monitors section of the Add Service Monitor page).
CONFIGURING THE MONITOR IN UP.TIME
The following configuration settings need to be set when creating a service instance based on this plug-in monitor:
Script Name – The name of script to run
Port – the port that the up.time agent is running on
Log file – The full path to the log file you want to check
Facility – the facility of the log message
Level – The error level of the log
Number Of Lines – the number of lines to check
Number of occurrences of string found
Output – The output of the last line found