2011-12-13 Ramon Novoa <rnovoa@artica.es>
* DEBIAN/control, DEBIAN/make_deb_package.sh, pandora_server.spec, lib/PandoraFMS/Config.pm, lib/PandoraFMS/Core.pm: Updated version strings. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5252 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
9aaf58de26
commit
b58d8925ea
|
@ -1,3 +1,11 @@
|
|||
2011-12-13 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* DEBIAN/control,
|
||||
DEBIAN/make_deb_package.sh,
|
||||
pandora_server.spec,
|
||||
lib/PandoraFMS/Config.pm,
|
||||
lib/PandoraFMS/Core.pm: Updated version strings.
|
||||
|
||||
2011-12-12 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* lib/PandoraFMS/Tools.pm
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
package: pandorafms-server
|
||||
Version: 4.0
|
||||
Version: final
|
||||
Architecture: all
|
||||
Priority: optional
|
||||
Section: admin
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
pandora_version="4.0"
|
||||
pandora_version="final"
|
||||
|
||||
package_cpan=0
|
||||
package_pandora=1
|
||||
|
|
|
@ -41,8 +41,8 @@ our @EXPORT = qw(
|
|||
);
|
||||
|
||||
# version: Defines actual version of Pandora Server for this module only
|
||||
my $pandora_version = "4.0";
|
||||
my $pandora_build = "110923";
|
||||
my $pandora_version = "final";
|
||||
my $pandora_build = "111213";
|
||||
our $VERSION = $pandora_version." ".$pandora_build;
|
||||
|
||||
# Setup hash
|
||||
|
|
|
@ -661,6 +661,7 @@ sub pandora_execute_alert ($$$$$$$$;$) {
|
|||
|
||||
# Check the action threshold (template_action_threshold takes precedence over action_threshold)
|
||||
my $threshold = 0;
|
||||
$action->{'last_execution'} = 0 unless defined ($action->{'last_execution'});
|
||||
$threshold = $action->{'action_threshold'} if (defined ($action->{'action_threshold'}) && $action->{'action_threshold'} > 0);
|
||||
$threshold = $action->{'module_action_threshold'} if (defined ($action->{'module_action_threshold'}) && $action->{'module_action_threshold'} > 0);
|
||||
if (time () >= ($action->{'last_execution'} + $threshold)) {
|
||||
|
@ -1774,7 +1775,10 @@ sub subst_alert_macros ($$) {
|
|||
my $macro_regexp = join('|', grep { defined $macros->{$_} } keys %{$macros});
|
||||
|
||||
# Macro data may contain HTML entities
|
||||
$string =~ s/($macro_regexp)/decode_entities($macros->{$1})/ige;
|
||||
{
|
||||
no warnings;
|
||||
$string =~ s/($macro_regexp)/decode_entities($macros->{$1})/ige;
|
||||
}
|
||||
|
||||
return $string;
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# Pandora FMS Server
|
||||
#
|
||||
%define name pandorafms_server
|
||||
%define version 4.0
|
||||
%define version final
|
||||
%define release 1
|
||||
|
||||
Summary: Pandora FMS Server
|
||||
|
|
Loading…
Reference in New Issue