2010-06-01 Ramon Novoa <rnovoa@artica.es>

* lib/PandoraFMS/SNMPServer.pm: Set default values to avoid warnings.
          Fixes bug #3009858.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2829 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
Ramon Novoa 2010-06-01 12:20:10 +00:00
parent 5d324367a6
commit 2579c0aecd
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2010-06-01 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/SNMPServer.pm: Set default values to avoid warnings.
Fixes bug #3009858.
2010-05-31 Sergio Martin <sergio.martin@artica.es>
* util/pandora_manage.pl: Fixed the help and the

View File

@ -129,8 +129,8 @@ sub pandora_snmptrapd {
next if ($line !~ m/\[\*\*\]/);
logger($pa_config, "Reading trap '$line'", 10);
my ($date, $time, $source, $oid,
$type, $type_desc, $value, $data) = split(/\[\*\*\]/, $line);
my ($date, $time, $source, $oid, $type, $type_desc, $value, $data) = ('', '', '', '', '', '', '', '');
($date, $time, $source, $oid, $type, $type_desc, $value, $data) = split(/\[\*\*\]/, $line);
my $timestamp = $date . ' ' . $time;
$value = limpia_cadena ($value);