Skip to content
Snippets Groups Projects
Commit 339fbb23 authored by Pavel Kácha's avatar Pavel Kácha
Browse files

Soucasti jmena id souboru je nyni i typ pozadovane zpravy (nebo any) (#1132)

parent a1d3538c
No related branches found
No related tags found
No related merge requests found
...@@ -159,6 +159,21 @@ D. Update (Update of previously installed the Warden client package) ...@@ -159,6 +159,21 @@ D. Update (Update of previously installed the Warden client package)
Note: You must be root for running this script. Note: You must be root for running this script.
6. Note that unlike version 2.1, in 2.2 the name of the file in which id of
the last received message is stored have changed. Previously, name was
"CALLER_NAME.id" (where CALLER_NAME is the name of calling script),
whereas now name contains name of requested message type
"CALLER_NAME-TYPE.id".
Should you want to continue downloading events where previous version
left off, you will have to rename the file by hand.
For example, where name of the file was "./var/example-receiver.pl.id"
and downloaded type was "portscan", new name should be
"./var/example-receiver.pl-portscan.id". If caller passes undef as
requested type to receive all types, new name should be
"./var/example-receiver.pl-any.id"
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
E. Uninstallation E. Uninstallation
......
...@@ -40,7 +40,7 @@ sub getNewEvents ...@@ -40,7 +40,7 @@ sub getNewEvents
# set name of ID file for each client aplication # set name of ID file for each client aplication
my $caller_name = $FindBin::Script; my $caller_name = $FindBin::Script;
my $id_file = $vardir . $caller_name . ".id"; my $id_file = $vardir . $caller_name . "-". ($requested_type || "any") . ".id";
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# get last ID from ID file (if exist) or # get last ID from ID file (if exist) or
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment