Welcome to Pandora FMS Community!

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

  • All module graphs empty

    Posted by Itszech on February 19, 2020 at 23:36

    Hi all,

    Noticed that when I view a module’s graph it is blank. It is also showing “Error: No available data to show” when I go to view the current data. I queried the database and the data is there, just will not display in the console.

    I did notice in my servers logs I am getting the following error:
    Warning! The server does not have access to the API, this can trigger problems in the generation of reports and graphs.

    I performed the API check in the console and it returned OK. Any help troubleshooting this issue would be appreciated.

    My version is: v7.0NG.743 – Build PC200129 – MR 30 running on Windows 10

    aeleus replied 2 years, 12 months ago 5 Members · 19 Replies
  • 19 Replies
  • diego-m

    Moderator
    February 20, 2020 at 14:29
    500 Karma points
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello itszech,

    I see that you are in version 743 with MR 30, this is a bit outdated, version 743 corresponds to MR 35, so you should update this last one. I leave you a link to the documentation where you can see how to update the database.

    https://pandorafms.com/docs/index.php?title=Pandora:Documentation_en:Anexo_Upgrade#Version_7.0NG_.28_Rolling_Release_.29

    Greetings
    Diego

  • Itszech

    Member
    February 20, 2020 at 17:55
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello itszech,

    I see that you are in version 743 with MR 30, this is a bit outdated, version 743 corresponds to MR 35, so you should update this last one. I leave you a link to the documentation where you can see how to update the database.

    https://pandorafms.com/docs/index.php?title=Pandora:Documentation_en:Anexo_Upgrade#Version_7.0NG_.28_Rolling_Release_.29

    Greetings
    Diego

    Hi Diego,

    Thanks for the reply. As per your recommendation I’ve ran the scripts to update my database from MR30 to MR35. I however am still facing the issue of graphs appearing blank.

    Cheers,
    Zech

  • diego-m

    Moderator
    February 21, 2020 at 15:28
    500 Karma points
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello Itszech,

    Check your a API configuration in the Setup of the console and in the pandora_server.conf And send us images of it, to check that is not a configuration problem.

    Greetings Diego

  • Itszech

    Member
    February 21, 2020 at 17:02
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    See bellow:

    I performed the API test again with the console user and password in the conf file and it was successful.

    Cheers,
    Zech

  • diego-m

    Moderator
    February 24, 2020 at 13:48
    500 Karma points
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello Itszech,

    Try typing a “*” in the section of the IP list with API access. This will allow any IP to access using username and password.

    Greetings
    Diego

  • Itszech

    Member
    February 24, 2020 at 16:57
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hey,

    Tried setting the IP list with API access field to * but no luck.
    Here’s a screenshot of the error in the logs:

    Cheers,
    Zech

  • diego-m

    Moderator
    February 24, 2020 at 17:58
    500 Karma points
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello Itszech,

    I just realized a probable error in the .conf file, you have put your user password is 1234, but the user that is created for the API has its own randomly generated password, so the most likely is that it does not match and that is the reason why it does not allow you access.

    My advice is to try to change the password of your internal API user to “1234” as you have in the .conf or to change both in the .conf and in the console the password for a more secure one.

    Greetings
    Diego

  • Itszech

    Member
    February 24, 2020 at 22:59
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hey,

    I gave that a try and got the same error. I also tried creating a new API user.
    This issue seemed to have started after updating from 742 to the 742 fix Perl version.

    Cheers,
    Zech

  • diego-m

    Moderator
    February 25, 2020 at 13:27
    500 Karma points
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello,

    This is strange, try to configure in the .conf of the server the Admin user of the console, maybe the error is for some permissions, let’s check that the error does not happen the same with a user with Pandora Administrator.

    I can assure you that it is not an update problem, it could be something of configuration that is missing to change or a bug that could happen with your concrete configuration.

    Greetings
    Diego

  • Itszech

    Member
    February 27, 2020 at 16:51
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Tried using a user with full admin rights but still the same issue.

    Cheers,
    Zech

  • pm2tekom-pl

    Member
    March 2, 2020 at 16:11
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I’ve installed completly new version of PandoraFMS on fresh Windows2019Server system and still have the same problem! Now I’m sure that this is the new version of Pandora problem. In logs I have:
    “Warning! The server does not have access to the API, this can trigger problems in the generation of reports and graphs”
    and 
    “curl: (6) Could not resolve host: ‘http”
    Looks like Pandora can’t submit curl requests properly (?)

  • diego-m

    Moderator
    March 2, 2020 at 17:58
    500 Karma points
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello,

    You can check the history of the module you are using in the graph, several people have mentioned the same problem, it may be a bug in the windows system but we are still testing it.

    Thanks for your patience
    Diego

  • diego-m

    Moderator
    March 6, 2020 at 12:50
    500 Karma points
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello,

    It seems that the agent that monitors the server data is suffering some bug that causes it to save the history data with timestamp 0. This causes that the data is not reflected neither in the console history nor in the graphs.

    Fortunately, as I mentioned before, this only happens in the agent modules that are automatically created with the installation of Pandora FMS. If you create another agent or other modules in this same agent, you will see how the graphs work correctly.

    This bug has already been reported and I hope it will be solved in the next versions

    Thank you for your patience.
    Diego

  • pm2tekom-pl

    Member
    March 6, 2020 at 22:03
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    In the new version (744) everything works fine. Thanks for your support, Diego

  • Itszech

    Member
    March 9, 2020 at 21:40
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    I just updated to 744 as well. Graphs work as they should now! Great work on the quick resolution of this issue.

    Cheers,
    Zech

  • aitor

    Member
    August 31, 2020 at 16:53
    5 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello:

    I have the same problem.

    I am at version 748 with MR 40.

    I follow your instructions. The api pass is the same in the console and pandora_server.conf file.
    When I start the pandora_server service I don’t see any api error. Before the changes I see the api error message.
    But when I go to grafs tab in the agent, I can’t see any graphs.

    But I can see graphs if I click in the graph icon next to the module data in the agent.

    This does not happen in version 742.

    Beest regards.

  • aitor

    Member
    September 8, 2020 at 12:11
    5 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello:

    I have been checking the logs, and each time I generate graphs, (SNMP, network, or agent type modules) I can see these errors in the log:

    [08-Sep-2020 10:06:45 Europe/Madrid] PHP Warning: Illegal string offset ‘module’ in /var/www/html/pandora_console/include/functions_graph.php on line 1290
    [08-Sep-2020 10:06:45 Europe/Madrid] PHP Warning: Illegal string offset ‘server’ in /var/www/html/pandora_console/include/functions_graph.php on line 1289
    [08-Sep-2020 10:06:45 Europe/Madrid] PHP Warning: Illegal string offset ‘module’ in /var/www/html/pandora_console/include/functions_graph.php on line 1290
    [08-Sep-2020 10:06:45 Europe/Madrid] PHP Warning: Illegal string offset ‘server’ in /var/www/html/pandora_console/include/functions_graph.php on line 1289
    [08-Sep-2020 10:06:45 Europe/Madrid] PHP Warning: Illegal string offset ‘module’ in /var/www/html/pandora_console/include/functions_graph.php on line 1290
    [08-Sep-2020 10:06:45 Europe/Madrid] PHP Warning: preg_match() expects parameter 2 to be string, array given in /var/www/html/pandora_console/include/functions_reporting.php on line 12254
    [08-Sep-2020 10:06:45 Europe/Madrid] PHP Warning: preg_match() expects parameter 2 to be string, array given in /var/www/html/pandora_console/include/functions_reporting.php on line 12262
    [08-Sep-2020 10:06:45 Europe/Madrid] PHP Warning: preg_match() expects parameter 2 to be string, array given in /var/www/html/pandora_console/include/functions_reporting.php on line 12270
    [08-Sep-2020 10:06:45 Europe/Madrid] PHP Warning: preg_match() expects parameter 2 to be string, array given in /var/www/html/pandora_console/include/functions_reporting.php on line 12278
    [08-Sep-2020 10:06:45 Europe/Madrid] PHP Warning: preg_match() expects parameter 2 to be string, array given in /var/www/html/pandora_console/include/functions_reporting.php on line 12286
    [08-Sep-2020 10:06:45 Europe/Madrid] PHP Warning: preg_match() expects parameter 2 to be string, array given in /var/www/html/pandora_console/include/functions_reporting.php on line 12294
    [08-Sep-2020 10:06:45 Europe/Madrid] PHP Warning: preg_match() expects parameter 2 to be string, array given in /var/www/html/pandora_console/include/functions_reporting.php on line 12254
    [08-Sep-2020 10:06:45 Europe/Madrid] PHP Warning: preg_match() expects parameter 2 to be string, array given in /var/www/html/pandora_console/include/functions_reporting.php on line 12262
    [08-Sep-2020 10:06:45 Europe/Madrid] PHP Warning: preg_match() expects parameter 2 to be string, array given in /var/www/html/pandora_console/include/functions_reporting.php on line 12270
    [08-Sep-2020 10:06:45 Europe/Madrid] PHP Warning: preg_match() expects parameter 2 to be string, array given in /var/www/html/pandora_console/include/functions_reporting.php on line 12278
    [08-Sep-2020 10:06:45 Europe/Madrid] PHP Warning: preg_match() expects parameter 2 to be string, array given in /var/www/html/pandora_console/include/functions_reporting.php on line 12286
    [08-Sep-2020 10:06:45 Europe/Madrid] PHP Warning: preg_match() expects parameter 2 to be string, array given in /var/www/html/pandora_console/include/functions_reporting.php on line 12294
    [08-Sep-2020 10:06:45 Europe/Madrid] PHP Warning: preg_match() expects parameter 2 to be string, array given in /var/www/html/pandora_console/include/functions_reporting.php on line 12254
    [08-Sep-2020 10:06:45 Europe/Madrid] PHP Warning: preg_match() expects parameter 2 to be string, array given in /var/www/html/pandora_console/include/functions_reporting.php on line 12262
    [08-Sep-2020 10:06:45 Europe/Madrid] PHP Warning: preg_match() expects parameter 2 to be string, array given in /var/www/html/pandora_console/include/functions_reporting.php on line 12270
    [08-Sep-2020 10:06:45 Europe/Madrid] PHP Warning: preg_match() expects parameter 2 to be string, array given in /var/www/html/pandora_console/include/functions_reporting.php on line 12278
    [08-Sep-2020 10:06:45 Europe/Madrid] PHP Warning: preg_match() expects parameter 2 to be string, array given in /var/www/html/pandora_console/include/functions_reporting.php on line 12286
    [08-Sep-2020 10:06:45 Europe/Madrid] PHP Warning: preg_match() expects parameter 2 to be string, array given in /var/www/html/pandora_console/include/functions_reporting.php on line 12294
    [08-Sep-2020 10:06:45 Europe/Madrid] PHP Warning: preg_match() expects parameter 2 to be string, array given in /var/www/html/pandora_console/include/functions_reporting.php on line 12254
    [08-Sep-2020 10:06:45 Europe/Madrid] PHP Warning: preg_match() expects parameter 2 to be string, array given in /var/www/html/pandora_console/include/functions_reporting.php on line 12262
    [08-Sep-2020 10:06:45 Europe/Madrid] PHP Warning: preg_match() expects parameter 2 to be string, array given in /var/www/html/pandora_console/include/functions_reporting.php on line 12270
    [08-Sep-2020 10:06:45 Europe/Madrid] PHP Warning: preg_match() expects parameter 2 to be string, array given in /var/www/html/pandora_console/include/functions_reporting.php on line 12278
    [08-Sep-2020 10:06:45 Europe/Madrid] PHP Warning: preg_match() expects parameter 2 to be string, array given in /var/www/html/pandora_console/include/functions_reporting.php on line 12286
    [08-Sep-2020 10:06:45 Europe/Madrid] PHP Warning: preg_match() expects parameter 2 to be string, array given in /var/www/html/pandora_console/include/functions_reporting.php on line 12294
    [08-Sep-2020 10:06:45 Europe/Madrid] PHP Warning: preg_match() expects parameter 2 to be string, array given in /var/www/html/pandora_console/include/functions_reporting.php on line 12254
    [08-Sep-2020 10:06:45 Europe/Madrid] PHP Warning: preg_match() expects parameter 2 to be string, array given in /var/www/html/pandora_console/include/functions_reporting.php on line 12262
    [08-Sep-2020 10:06:45 Europe/Madrid] PHP Warning: preg_match() expects parameter 2 to be string, array given in /var/www/html/pandora_console/include/functions_reporting.php on line 12270
    [08-Sep-2020 10:06:45 Europe/Madrid] PHP Warning: preg_match() expects parameter 2 to be string, array given in /var/www/html/pandora_console/include/functions_reporting.php on line 12278
    [08-Sep-2020 10:06:45 Europe/Madrid] PHP Warning: preg_match() expects parameter 2 to be string, array given in /var/www/html/pandora_console/include/functions_reporting.php on line 12286
    [08-Sep-2020 10:06:45 Europe/Madrid] PHP Warning: preg_match() expects parameter 2 to be string, array given in /var/www/html/pandora_console/include/functions_reporting.php on line 12294
    [08-Sep-2020 10:06:45 Europe/Madrid] PHP Warning: Illegal string offset ‘module’ in /var/www/html/pandora_console/include/functions_graph.php on line 1510
    [08-Sep-2020 10:06:45 Europe/Madrid] PHP Warning: Illegal string offset ‘module’ in /var/www/html/pandora_console/include/functions_graph.php on line 1510
    [08-Sep-2020 10:06:45 Europe/Madrid] PHP Warning: Illegal string offset ‘module’ in /var/www/html/pandora_console/include/functions_graph.php on line 1510
    [08-Sep-2020 10:06:45 Europe/Madrid] PHP Warning: Illegal string offset ‘module’ in /var/www/html/pandora_console/include/functions_graph.php on line 1510
    [08-Sep-2020 10:06:45 Europe/Madrid] PHP Warning: Illegal string offset ‘module’ in /var/www/html/pandora_console/include/functions_graph.php on line 1510
    [08-Sep-2020 10:06:50 Europe/Madrid] PHP Warning: Illegal string offset ‘server’ in /var/www/html/pandora_console/include/functions_graph.php on line 1289
    [08-Sep-2020 10:06:50 Europe/Madrid] PHP Warning: Illegal string offset ‘module’ in /var/www/html/pandora_console/include/functions_graph.php on line 1290
    [08-Sep-2020 10:06:50 Europe/Madrid] PHP Warning: Illegal string offset ‘server’ in /var/www/html/pandora_console/include/functions_graph.php on line 1289
    [08-Sep-2020 10:06:50 Europe/Madrid] PHP Warning: Illegal string offset ‘module’ in /var/www/html/pandora_console/include/functions_graph.php on line 1290
    [08-Sep-2020 10:06:50 Europe/Madrid] PHP Warning: preg_match() expects parameter 2 to be string, array given in /var/www/html/pandora_console/include/functions_reporting.php on line 12254
    [08-Sep-2020 10:06:50 Europe/Madrid] PHP Warning: preg_match() expects parameter 2 to be string, array given in /var/www/html/pandora_console/include/functions_reporting.php on line 12262
    [08-Sep-2020 10:06:50 Europe/Madrid] PHP Warning: preg_match() expects parameter 2 to be string, array given in /var/www/html/pandora_console/include/functions_reporting.php on line 12270
    [08-Sep-2020 10:06:50 Europe/Madrid] PHP Warning: preg_match() expects parameter 2 to be string, array given in /var/www/html/pandora_console/include/functions_reporting.php on line 12278
    [08-Sep-2020 10:06:50 Europe/Madrid] PHP Warning: preg_match() expects parameter 2 to be string, array given in /var/www/html/pandora_console/include/functions_reporting.php on line 12286
    [08-Sep-2020 10:06:50 Europe/Madrid] PHP Warning: preg_match() expects parameter 2 to be string, array given in /var/www/html/pandora_console/include/functions_reporting.php on line 12294
    [08-Sep-2020 10:06:50 Europe/Madrid] PHP Warning: preg_match() expects parameter 2 to be string, array given in /var/www/html/pandora_console/include/functions_reporting.php on line 12254
    [08-Sep-2020 10:06:50 Europe/Madrid] PHP Warning: preg_match() expects parameter 2 to be string, array given in /var/www/html/pandora_console/include/functions_reporting.php on line 12262
    [08-Sep-2020 10:06:50 Europe/Madrid] PHP Warning: preg_match() expects parameter 2 to be string, array given in /var/www/html/pandora_console/include/functions_reporting.php on line 12270
    [08-Sep-2020 10:06:50 Europe/Madrid] PHP Warning: preg_match() expects parameter 2 to be string, array given in /var/www/html/pandora_console/include/functions_reporting.php on line 12278
    [08-Sep-2020 10:06:50 Europe/Madrid] PHP Warning: preg_match() expects parameter 2 to be string, array given in /var/www/html/pandora_console/include/functions_reporting.php on line 12286
    [08-Sep-2020 10:06:50 Europe/Madrid] PHP Warning: preg_match() expects parameter 2 to be string, array given in /var/www/html/pandora_console/include/functions_reporting.php on line 12294
    [08-Sep-2020 10:06:50 Europe/Madrid] PHP Warning: Illegal string offset ‘module’ in /var/www/html/pandora_console/include/functions_graph.php on line 1510
    [08-Sep-2020 10:06:50 Europe/Madrid] PHP Warning: Illegal string offset ‘module’ in /var/www/html/pandora_console/include/functions_graph.php on line 1510

    Can someone help me?

    Best regards.

  • aeleus

    Member
    March 23, 2021 at 18:15
    409 Karma points
    Community rank: tentacle-rookie Tentacle rookie
    Like it
    Up
    0
    Down
    Drop it
    ::

    Any updates to this problem? I just got hit with the same issue. Everything was working fine under version 750. I updated (with yum) to 752 and applied the MR’s (45).

    Now, clicking the graph icon gives me a blank page and the module icons don’t work – neither does the Graphs view.

    I get this in the pandora_server.log:

    [V1] Warning! The server does not have access to the API, this can trigger problems in the generation of reports and graphs.

    I checked pandora_server.conf to make sure the console_api_pass matches what is configured in Setup through the UI.

    I see the API checker under Admin tools, but I have no idea how to use that.

    Any thoughts?

  • aeleus

    Member
    March 28, 2021 at 18:25
    409 Karma points
    Community rank: tentacle-rookie Tentacle rookie
    Like it
    Up
    0
    Down
    Drop it
    ::

    Updated to recently-released Build 210326 using the web UI: all is working normally again.