Pandora FMS Community

7.0NG.744 (P) 200303 on Ubuntu bionic - hash- or arrayref expected running discovery

elhtmlnoexiste · 5 abr 2020, 11:09 · 3 mensajes · 56 visitas

  1. Inicio del debate

    Hi there Is there anyone experiencing this issue? When running a discovery task (Discovery.NetScan) It ends up in a second with no new agents detected showing 100% completed. On pandora_server.log there's an error with DiscoveryServer.pm: 2020-04-05 06:56:31 Base: ******** [V1] [E] '********': hash- or arrayref expected (not a simple scalar, use allow_nonref to allow this) at /usr/lib/perl5/PandoraFMS/DiscoveryServer.pm line 1026. 2020-04-05 06:56:31 Base: ******** [V1] Pandora FMS Server ' ********' unhandled error. Seems that the issue has something to do with this block of code in particular with the encode_json($stats) ########################################################################## # Update recon task status. ########################################################################## sub PandoraFMS::Recon::Base::update_progress ($$) {     my ($self, $progress) = @_;     my $stats = {};     if (defined($self->{'summary'}) && $self->{'summary'} ne '') {         $stats->{'summary'} = $self->{'summary'};     }     $stats->{'step'} = $self->{'step'};     $stats->{'c_network_name'} = $self->{'c_network_name'};     $stats->{'c_network_percent'} = $self->{'c_network_percent'};     # Store progress, last contact and overall status.     db_do ($self->{'dbh'}, 'UPDATE trecon_task SET utimestamp = ?, status = ?, summary = ? WHERE id_rt = ?',         time (), $progress, encode_json($stats), $self->{'task_id'}); } Any idea on how to fix the code or why is this happening? Perl version is 5.26.1-6ubuntu0.3 BR EH

  2. Facing this same issue.  Currently running Pandora FMS v7.0NG.737 - Build 200513 - MR 30 on Ubuntu 18.04.4 LTS.  Running Perl v5.26.1. All attempts to run a Discovery scan result in this in the logs and nothing discovered: 2020-06-21 22:34:21 ProducerConsumerServer: MyNMS [V10] Starting recon task for net 192.168.1.0/24. 2020-06-21 22:34:21 DiscoveryServer: MyNMS [V10] Generating event '[Discovery] Execution summary' for agent ID 0 module ID 0. 2020-06-21 22:34:21 Base: MyNMS [V1] [E] 'MyNMS': hash- or arrayref expected (not a simple scalar, use allow_nonref to allow this) at /usr/lib/perl5/PandoraFMS/DiscoveryServer.pm line 1025. 2020-06-21 22:34:21 Base: MyNMS [V1] Pandora FMS Server 'MyNMS' unhandled error. 2020-06-21 22:34:21 ProducerConsumerServer: MyNMS [V10] Cannot execute Discovery task: MyNET hash- or arrayref expected (not a simple scalar, use allow_nonref to allow this) at /usr/lib/perl5/PandoraFMS/DiscoveryServer.pm line 1025. I don't know if this is an issue with the perl version, the database or something else.  Can someone please suggest what further steps I should take to properly troubleshoot this error? Thanks for your time!

  3. Good morning Currently Pandora FMS is in version 746 MR 38, we recommend you to update console, server and MR and check again the failure. In case the error persists after the update, comment again and we will see what could be failing. Greetings Diego

Entra en tu cuenta para publicar.