Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

Welcome to Pandora FMS Community Forums Soporte de la comunidad Error en pandora_server.error

  • Error en pandora_server.error

    Posted by jartal on April 17, 2012 at 17:47

    Hola muy buenas.

    Desde hace un tiempo estoy teniendo un error dentro de pandora_server.error.

    
    Use of uninitialized value in string ne at /usr/lib/perl5/PandoraFMS/DataServer.pm line 644.
    
    

    Este error me sale creo que cada vez que se pone en contacto con un agente, he estado revisando el error pero no veo el problema.

    Este es el fragmento del archivo DataServer.pm en el cual da el error:

    636 ##########################################################################
        637 # Update module configuration in tagente_modulo if necessary.
        638 ##########################################################################
        639 sub update_module_configuration ($$$$) {
        640        my ($pa_config, $dbh, $module, $module_conf) = @_;
        641
        642        # Update if at least one of the configuration tokens has changed
        643        foreach my $conf_token (‘min’, ‘max’, ‘descripcion’, ‘post_process’, ‘module_interval’, ‘mi        n_critical’, ‘max_critical’, ‘min_warning’, ‘max_warning’, ‘disabled’, ‘min_ff_event’, ‘extended_in        fo’, ‘unit’) {
        644                if ($module->{$conf_token} ne $module_conf->{$conf_token}) {
        645                        logger ($pa_config, “Updating configuration for module ‘” . $module->{‘nomb        re’} . “‘.”, 10);
        646                        db_do ($dbh, ‘UPDATE tagente_modulo SET unit = ?, min = ?, max = ?, descrip        cion = ?, post_process = ?, module_interval = ?, min_critical = ?, max_critical = ?, min_warning =        ?, max_warning = ?, disabled = ?, min_ff_event = ?, extended_info = ?
        647                                WHERE id_agente_modulo = ?’, $module_conf->{‘unit’}, $module_conf->        {‘min’}, $module_conf->{‘max’}, $module_conf->{‘descripcion’} eq ” ? $module->{‘descripcion’} : $m        odule_conf->{‘descripcion’},
        648                                $module_conf->{‘post_process’}, $module_conf->{‘module_interval’},        $module_conf->{‘min_critical’}, $module_conf->{‘max_critical’}, $module_conf->{‘min_warning’}, $mod        ule_conf->{‘max_warning’}, $module_conf->{‘disabled’}, $module_conf->{‘min_ff_event’}, $module_conf        ->{‘extended_info’}, $module->{‘id_agente_modulo’});
        649                        last;
        650                }

    ¿ Sabéis cual puede ser el problema?

    Un Saludo

    Nacho1988 replied 12 years, 8 months ago 2 Members · 3 Replies
  • 3 Replies
  • Nacho1988

    Member
    June 14, 2012 at 17:22
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Buenas tardes Jartal;

    ¿Que versión de servidor de pandora  y mysql tienes?

  • jartal

    Member
    June 15, 2012 at 10:24
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Tengo la version “Pandora FMS v4.0.1 – Revisión PC120408”

    Un Saludo.

    Hay otro post en donde expongo el problema aunque aun no he recibido la respuesta del porque pasa esto aunque llegue a una solución pero me gustaria solucionarlo definitivamente.

    Este es el otro post:

    http://openideas.info/smf/index.php/topic,6117.0.html

    Un Saludo, y perdón por la repetición del post 😉

  • Nacho1988

    Member
    June 18, 2012 at 15:03
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Prueba a hacer un print de los tres parametros donde te da el fallo a ver cual es que esta sin inicializar y a raiz de ello actuar en consecuencia.

    Un saludo.