Welcome to Pandora FMS Community!

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

Welcome to Pandora FMS Community Forums Community support [SOLVED] Reporting – json_encode error

  • [SOLVED] Reporting – json_encode error

    Posted by xvalentinex on September 21, 2008 at 19:43

    Hello,

    I can’t seem to make any of the custom reporting features work in Pandora.

    I was using 2.0b1 and svn.

    For instance whether in map builder or custom graph, if I select an agent. I don’t get the “Get Info” button, and the Modules dropdown either disappears or is unselectable.

    I have installed on CentOS 5.2, and I have completed all dependancies listed on the wiki.

    xvalentinex replied 16 years, 5 months ago 2 Members · 8 Replies
  • 8 Replies
  • manu

    Member
    September 22, 2008 at 01:34
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    What’s the exactly cycle you do?

  • xvalentinex

    Member
    September 22, 2008 at 16:05
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    1) create an agent (see screenshots for config)
    2) goto Admin->Manage reports->Graph builder
    3) Select Agent from drop-down

    I don’t have a “Get Info” button at any time, like the wiki says I should
    The drop-down to select the module to graph is gone

    Agent Details:

    Agent Data:

    Agent Modules:

  • manu

    Member
    September 23, 2008 at 01:16
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    The documentation is a bit old, so if you’re looking at the 2.0 Beta documentation it’s still the 1.3.1 one, we’re working on it as fast as possible.
    In the 2.0 there’s no “Get info” button. When you select the agent the “module” box is refreshed and you should see the modules, aren’t you seeing them?

    I’m downloading the 2.0 Beta1 vmware image to test this, alright?
    I will update you when I’m done

    Manuel.

  • manu

    Member
    September 23, 2008 at 01:39
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    It’s working fine for me in the vmware image with the 2.0 beta.
    What version are you using?

  • xvalentinex

    Member
    September 23, 2008 at 02:20
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Thank you for the replies

    That is correct, after picking the agent the module select dropdown just dissapears.

    I am using CentOS 5.2. I get the results with 2.0b1 and svn.

  • manu

    Member
    September 23, 2008 at 02:29
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Would you provide us a screenshot? That’s weird!

    These are my screenshots:
    As you can see, firstly I have nothing, then I select and agent and I’m able to see its modules in the box underneath

  • xvalentinex

    Member
    September 23, 2008 at 10:32
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Sure here is the screenshot. I am silly for not checking the apache logs until now. Here is the error I get.

    PHP Fatal error: Call to undefined function json_encode() in /var/www/pandora_console_2.0b1/operation/agentes/ver_agente.php on line 41, referer: http://123.456.789.123/pandora/index.php?sec=greporting&sec2=godmode/reporting/graph_builder

  • xvalentinex

    Member
    September 23, 2008 at 12:58
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Good news! It was that my php version was 5.1.6, and json_encode function is only for php 5.2 or greater.

    It should probably be added to the dependancy documentation that you need php 5.2 or greater.

    For anyone with CentOS or RHEL you can use the following repository to upgrade.
    http://www.jasonlitka.com/yum-repository/