2011-09-01 Sancho Lerena <slerena@artica.es>

* unix/plugins/grep_log,
        shellscript/linux/plugins/grep_log: Restored previous code because
        it needs to start searching on the last position known. First time
        plugin starts, seek to the final position to avoid fire old events
        detected in the log. Plugin only gives new events once starts to work




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4873 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
slerena 2011-09-01 12:59:21 +00:00
parent 1584e73f59
commit 2d34bfcd69
3 changed files with 12 additions and 4 deletions

View File

@ -1,3 +1,11 @@
2011-09-01 Sancho Lerena <slerena@artica.es>
* unix/plugins/grep_log,
shellscript/linux/plugins/grep_log: Restored previous code because
it needs to start searching on the last position known. First time
plugin starts, seek to the final position to avoid fire old events
detected in the log. Plugin only gives new events once starts to work
2011-08-31 Juan Manuel Ramon Vigo <juanmanuel.ramon@artica.es>
* unix/plugins/grep_log

View File

@ -168,8 +168,8 @@ sub parse_log () {
open(LOGFILE, $Log_file) || error_msg("Error opening file $Log_file: " .
$!);
# Go to starting position
seek(LOGFILE, 0, 0);
# Go to starting position.
seek(LOGFILE, $Idx_pos, 0);
print (stdout "<module>\n");
print (stdout "<name><![CDATA[" . $Module_name . "]]></name>\n");

View File

@ -168,8 +168,8 @@ sub parse_log () {
open(LOGFILE, $Log_file) || error_msg("Error opening file $Log_file: " .
$!);
# Go to starting position
seek(LOGFILE, 0, 0);
# Go to starting position.
seek(LOGFILE, $Idx_pos, 0);
print (stdout "<module>\n");
print (stdout "<name><![CDATA[" . $Module_name . "]]></name>\n");