Pandora FMS Community

Found a bug on the Visual Console!

mbonal · 9 oct 2008, 13:42 · 22 mensajes · 110 visitas

  1. Inicio del debate

    IF you create a top map and then go to a linked map and then click on a server you created the link goes to agent detail whith a blank screen. The reason being is the java script calls for : Top Map original link: sec=visualc&sec2=operation/visual_console/render_view&pure=0&id=1 then goes to index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=&tab=data when it should call for something like this index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=1

  2. One more bug on the visual console when you create a map. If you try to create a module map, the modules are hidden. I believe they are there, but I cannot view them. I know this is a beta, but just trying to help.

  3. I found this. Is it normall? I mean string MODULE and near this. I can't choose module that I need Regards

  4. I'll take a look to it next week :) What browser are you using?

  5. Only FIREFOX v 3.0 During installation I have only on error ( problem with gettext, and I think it didn't installed on my server), but I don't think problem in this? Thanks!

  6. Hi again, I think that the code you're using is a bit old. The bug can be caused by the PHP configuration, which looks like it's not handling short tags good "<?=". Take a look at your php.ini file, and add this line to it. short_open_tag = On Afterwards, restart your web server and try it again. This is fixed in the latest version, but updating may be a little difficult or unstable...

  7. Now only Loading... in this field, and all. I was waiting aroud 5 minutes, and same.

  8. short_open_tag = On was already on in my php.ini file, so this workaround is no workaround. Like I said before the code is hiding the fields in the modules map builder. Also, you java script is still not linking the maps correctly as I stated on the top of this post.

  9. How do you upload a screen shot so I can show you what I am talking about??TIA!

  10. You can upload the image to a site like imageshack.us and Insert a link to that image, or using the "Attachments" box, just below when inserting comments.

  11. I tried the attachment way and it gave me an error that I am unable to do so due to /img/bmp. what does that mean?

  12. can somebody help me with Visual Console? Why I see only Loading... and no result? no loaded modules??? Regards!

  13. Hi, I can't reproduce the bug, so I don't know how can I help you... I'm under a Firefox 3 on an Apache server with PHP version 5.2 and it works for me. I've done some changes to the javascript code, but I'm not sure if they're going to help since I've got no problems... Maybe this bug is already solved in the latest code, but let's try to debug a bit to find out the root of your problem so you can have a better answer. Can you paste the result of this? ajax.php?page=operation/agentes/ver_agente&id_agent=1&get_agent_modules_json=1 Where the 1 after "id_agent=" is the id number of any agent (probably 1 is ok). That's the page the javascript asks to get the list of modules in an agent so the list can be filled. It's an ugly string, but I will understand it ;) Greetings!

  14. Do I understand you correct - I need do next - (Link not available anymore) pandora/ajax.php?page=operation/agentes/ver_agente&id_agent=1&get_agent_modules_json=1 ???? for id_agent=1..6 - empty page regard's

  15. This is what I got.. [{"0":"1","id_agente_modulo":"1","1":"1","id_agente":"1","2":"100","id_tipo_modulo":"100","3":"Agent Keepalive monitor","descripcion":"Agent Keepalive monitor","4":"agent_keepalive","nombre":"agent_keepalive","5":"0","max":"0","6":"0","min":"0","7":"0","module_interval":"0","8":"0","tcp_port":"0","9":"","tcp_send":"","10":"","tcp_rcv":"","11":"","snmp_community":"","12":"","snmp_oid":"","13":"","ip_target":"","14":"4","id_module_group":"4","15":"0","flag":"0","16":"1","id_modulo":"1","17":"0","disabled":"0","18":"0","id_export":"0","19":"","plugin_user":"","20":"","plugin_pass":"","21":"","plugin_parameter":"","22":"0","id_plugin":"0","

  16. The bug is a Internet Explorer Bug....I can now see the modules if use googles browser...WEIRD...

  17. Mbonal: It's not weird at all :) Visual console configuration doesn't work fine in IE (any version) due to some limitations. If you want to know the reasons, there's a limitation in IE that doesn't allow the creation of options fields in a drop down menu because it doesn't allow to change the value of an input field using javascript (arguing security reasons). So, is it working fine in Google Chrome? If it's, I hope we are done and the mystery is resolved for you :) yduma: Ok, at least we know it shows nothing because nothing is returned when asking the modules of an agent... That's step number 1 :) Let's try to find out more What PHP version are you using? You need 5.2.0 or greater, because it uses a function (json_encode) which was added in that version to the core. If you're using a lower version, you have two options: updating to 5.2 or installing an extension which provides that function. In any case, let's try to get more info. Can you activate PHP error reporting on Pandora config? This is done by adding the following line at the bottom of include/config.php

    error_reporting (E_ALL);
    

    Greetings!

  18. Hi. you were right . In log I found next - Call to undefined function json_encode() Thank you!

  19. Great! So we finally got to an answer. I think that a check for this function was added in the new installer, but you may bypass it somehow. If you don't want to upgrade to PHP 5.2, you can install this extension: (Link not available anymore) Greetings

Entra en tu cuenta para publicar.