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:
parent
21fc24c548
commit
b2c9b7320d
|
@ -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>
|
2010-02-22 Pablo de la Concepción <pablo.concepcion@artica.es>
|
||||||
|
|
||||||
* lib/PandoraFMS/Core.pm: Updated documentation, fixed wrong parameters
|
* lib/PandoraFMS/Core.pm: Updated documentation, fixed wrong parameters
|
||||||
|
|
|
@ -391,9 +391,14 @@ sub process_module_data ($$$$$$$$$) {
|
||||||
logger($pa_config, "Invalid timestamp '$timestamp' from module '$module_name' agent '$agent_name'.", 3);
|
logger($pa_config, "Invalid timestamp '$timestamp' from module '$module_name' agent '$agent_name'.", 3);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
my $utimestamp;
|
||||||
my $utimestamp = timelocal($6, $5, $4, $3, $2 - 1, $1 - 1900);
|
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 $value = get_tag_value ($data, 'data', '');
|
||||||
my $dataObject = get_module_data($data, $agent_name, $module_name, $module_type);
|
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);
|
my $extraMacros = get_macros_for_data($data, $agent_name, $module_name, $module_type);
|
||||||
|
|
Loading…
Reference in New Issue