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:43Hello,
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
-
-
::
1) create an agent (see screenshots for config)
2) goto Admin->Manage reports->Graph builder
3) Select Agent from drop-downI 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 goneAgent Details:
Agent Data:
Agent Modules:
-
::
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 doneManuel.
-
-
-
-
::
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
-
::
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/