Skip to content
Snippets Groups Projects
Commit ae26be25 authored by Tomáš Plesník's avatar Tomáš Plesník
Browse files

zmena upozornovaci hlasky

parent 4b0bed78
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/perl
#
# WardenClientReceive.pm
#
# Copyright (C) 2011-2015 Cesnet z.s.p.o
#
# Use of this source is governed by a BSD-style license, see LICENSE file.
################################################################################
# DO NOT USE THIS MODULE!!!
#
# THIS MODULE IS INTENDED ONLY FOR THE WARDEN CLIENT 2.2 UPDATED
# FROM WARDEN CLIENT 2.1!!!
################################################################################
package WardenClientReceive;
use strict;
use warnings;
our $VERSION = "2.2";
#-------------------------------------------------------------------------------
# getNewEvents - get new events from warden server greater than last received ID
#-------------------------------------------------------------------------------
sub getNewEvents
{
my $warden_path = shift;
my $requested_type = shift;
use lib $warden_path;
use WardenClient;
return WardenClient::getNewEvents($requested_type);
} # End of getNewEvents
1;
#!/usr/bin/perl
#
# WardenClientSend.pm
#
# Copyright (C) 2011-2015 Cesnet z.s.p.o
#
# Use of this source is governed by a BSD-style license, see LICENSE file.
################################################################################
# DO NOT USE THIS MODULE!!!
#
# THIS MODULE IS INTENDED ONLY FOR THE WARDEN CLIENT 2.2 UPDATED
# FROM WARDEN CLIENT 2.1!!!
################################################################################
package WardenClientSend;
use strict;
use warnings;
our $VERSION = "2.2";
#-------------------------------------------------------------------------------
# saveNewEvent - send new event from detection scripts to warden server
#-------------------------------------------------------------------------------
sub saveNewEvent
{
my $warden_path = shift;
my $event_ref = shift;
use lib $warden_path;
use WardenClient;
return WardenClient::saveNewEvent($event_ref);
} # End of saveNewEvent
1;
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