Pandora FMS Community

No agent view in console (blank screen)

tombaja · 1 nov 2017, 0:23 · 7 mensajes · 61 visitas

  1. Inicio del debate

    Hi. Installed the lates version of PandoraFMS console and server v7.ONG.714 Build PC171025-MR7. After a Recon task I can see a list of agents, but agent view is without any information, just a blank screen. There is a New Pandora Console Update alert informing about a new version 171030, but yum update doesn't anything. Where do i het this update? What is wrong with the missing agent view. Any help is appreciated. Thanks.

  2. Don't have an absolute resolution for this. Trying to see if I can fix the issue. But I've noticed when tailing the pandora_console.log that I receive the following error whenever I click for more details of an agent: [31-Oct-2017 23:01:04 Europe/Brussels] PHP Fatal error: Call to undefined function get_ux_transactions() in /var/www/html/pandora_console/operation/agentes/ver_agente.php on line 1047


    Don't have an absolute resolution for this. Trying to see if I can fix the issue. But I've noticed when tailing the pandora_console.log that I receive the following error whenever I click for more details of an agent: [31-Oct-2017 23:01:04 Europe/Brussels] PHP Fatal error:  Call to undefined function get_ux_transactions() in /var/www/html/pandora_console/operation/agentes/ver_agente.php on line 1047

    Well I was able to fix it but it's rather a workaround. Try to edit the following file (depending on where your pandora_console web directory is, it could be in a different location than the one I specify, if you can't find it just issue the command find / -name ver_agente.php Commands to be executed 1) Via the terminal, switch to root user (su -)  2) Edit the file /var/www/html/pandora_console/operation/agentes/ver_agente.php 3) Look for this piece of code:

    /* UX Console */
    enterprise_include_once('/include/functions_ux_console.php');
    $active_ux = get_ux_transactions($id_agente);
    if(!empty($active_ux)){
            $ux_console_tab = enterprise_hook('ux_console_tab');
            if ($ux_console_tab == -1)
                    $ux_console_tab = "";
    }
    
    1. Change it so that the whole block is commented out so it looks like this:
    /* UX Console
    enterprise_include_once('/include/functions_ux_console.php');
    $active_ux = get_ux_transactions($id_agente);
    if(!empty($active_ux)){
            $ux_console_tab = enterprise_hook('ux_console_tab');
            if ($ux_console_tab == -1)
                    $ux_console_tab = "";
    }
    */
    
    1. Save the file, naturally. Try again afterwards, you should be able to get some client details now. The problem is that I was unable to find an include named "functions_ux_console.php" and therefore the function is unable to be called upon. Not sure if anyone can give more insights, but the best I could do for now.
  3. Don't have an absolute resolution for this. Trying to see if I can fix the issue. But I've noticed when tailing the pandora_console.log that I receive the following error whenever I click for more details of an agent: [31-Oct-2017 23:01:04 Europe/Brussels] PHP Fatal error:  Call to undefined function get_ux_transactions() in /var/www/html/pandora_console/operation/agentes/ver_agente.php on line 1047


    Don't have an absolute resolution for this. Trying to see if I can fix the issue. But I've noticed when tailing the pandora_console.log that I receive the following error whenever I click for more details of an agent: [31-Oct-2017 23:01:04 Europe/Brussels] PHP Fatal error:  Call to undefined function get_ux_transactions() in /var/www/html/pandora_console/operation/agentes/ver_agente.php on line 1047

    Well I was able to fix it but it's rather a workaround. Try to edit the following file (depending on where your pandora_console web directory is, it could be in a different location than the one I specify, if you can't find it just issue the command find / -name ver_agente.php Commands to be executed 1) Via the terminal, switch to root user (su -)  2) Edit the file /var/www/html/pandora_console/operation/agentes/ver_agente.php 3) Look for this piece of code:

    /* UX Console */
    enterprise_include_once('/include/functions_ux_console.php');
    $active_ux = get_ux_transactions($id_agente);
    if(!empty($active_ux)){
            $ux_console_tab = enterprise_hook('ux_console_tab');
            if ($ux_console_tab == -1)
                    $ux_console_tab = "";
    }
    
    1. Change it so that the whole block is commented out so it looks like this:
    /* UX Console
    enterprise_include_once('/include/functions_ux_console.php');
    $active_ux = get_ux_transactions($id_agente);
    if(!empty($active_ux)){
            $ux_console_tab = enterprise_hook('ux_console_tab');
            if ($ux_console_tab == -1)
                    $ux_console_tab = "";
    }
    */
    
    1. Save the file, naturally. Try again afterwards, you should be able to get some client details now. The problem is that I was unable to find an include named "functions_ux_console.php" and therefore the function is unable to be called upon. Not sure if anyone can give more insights, but the best I could do for now.

    Herazio, thank you very much, your patch is working just fine. I hope, somebody from Artica is also reading these posts. How can they expect that somebody purchases their Enterprise version if they deliver a buggy community version, which shares the same code. Very good done!

  4. Hi all, We have detected the error that hides the information of the agents. We created a ticket for the team of developers to solve it, as soon as possible. Best regards, vic.

  5. Hi again, The correct way to solve the problem is: Modifying the file:

    */pandora_console/operation/agentes/ver_agente.php
    

    Edit 1047 line:

    $active_ux = get_ux_transactions($id_agente);
    

    Changing it by:

    $active_ux = enterprise_hook('get_ux_transactions', array($id_agente));
    

    Then we restart the apache server. The bug will be solved in a short time. Thanks for reporting. Best regards, vic.

  6. Hi again, The correct way to solve the problem is: Modifying the file:

    */pandora_console/operation/agentes/ver_agente.php
    

    Edit 1047 line:

    $active_ux = get_ux_transactions($id_agente);
    

    Changing it by:

    $active_ux = enterprise_hook('get_ux_transactions', array($id_agente));
    

    Then we restart the apache server. The bug will be solved in a short time. Thanks for reporting. Best regards, vic.

    I appreciate you fast response. Thanks.

  7. Hallo vic, you are my hero! It works! Thx for fast reply. Uschi

Entra en tu cuenta para publicar.