2010-02-22 Pablo de la Concepción <pablo.concepcion@artica.es>

* lib/PandoraFMS/DataServer.pm: Fixed bug #2926077 there were one
    more place where the timestamp should be checked.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2403 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
pabloconcepcion 2010-02-22 20:18:37 +00:00
parent 21fc24c548
commit b2c9b7320d
2 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2010-02-22 Pablo de la Concepción <pablo.concepcion@artica.es>
* lib/PandoraFMS/DataServer.pm: Fixed bug #2926077 there were one
more place where the timestamp should be checked.
2010-02-22 Pablo de la Concepción <pablo.concepcion@artica.es>
* lib/PandoraFMS/Core.pm: Updated documentation, fixed wrong parameters

View File

@ -391,9 +391,14 @@ sub process_module_data ($$$$$$$$$) {
logger($pa_config, "Invalid timestamp '$timestamp' from module '$module_name' agent '$agent_name'.", 3);
return;
}
my $utimestamp = timelocal($6, $5, $4, $3, $2 - 1, $1 - 1900);
my $utimestamp;
eval {
$utimestamp = timelocal($6, $5, $4, $3, $2 - 1, $1 - 1900);
};
if ($@) {
logger($pa_config, "Invalid timestamp '$timestamp' from module '$module_name' agent '$agent_name'.", 3);
return;
}
#my $value = get_tag_value ($data, 'data', '');
my $dataObject = get_module_data($data, $agent_name, $module_name, $module_type);
my $extraMacros = get_macros_for_data($data, $agent_name, $module_name, $module_type);