Hello all, I've just installed pandora agent 7.0NG.724 on my RHEL7. Tryed whith 7.0NG.726 and the same happens. the generated XML goes BAD_XML. The content of the xml is: guess_os_version and the `lsb_release -sd 2>$DevNull` command returns with double quotes. For my try I've changed with `lsb_release -sd | tr -d '"' 2>$DevNull`. It woks great. Is this because I have some bad configuration? Thanks
Pandora agent. BAD_XML
iug · 4 sept 2018, 11:48 · 5 mensajes · 51 visitas
- Inicio del debate
Hello all, I've just installed pandora agent 7.0NG.724 on my RHEL7. Tryed whith 7.0NG.726 and the same happens. the generated XML goes BAD_XML. The content of the xml is: <agent_data description='' os_name='linux' os_version='"Red Hat Enterprise Linux Server release 7.2 (Maipo)"' ... As you can see the os_version has single cuotes and doble quotes. I have checked /usr/bin/pandora_agent, function **guess_os_version** and the `lsb_release -sd 2>$DevNull` command returns with double quotes. For my try I've changed with `lsb_release -sd | tr -d '"' 2>$DevNull`. It woks great. Is this because I have some bad configuration? Thanks
Good morning iug, It is not that you have a bad configuration is that the default configuration is the one that gives double quotes. If you want to have single quotes, just change the command you said it works where the other command was. Alberto
Hello all, I've just installed pandora agent 7.0NG.724 on my RHEL7. Tryed whith 7.0NG.726 and the same happens. the generated XML goes BAD_XML. The content of the xml is: <agent_data description='' os_name='linux' os_version='"Red Hat Enterprise Linux Server release 7.2 (Maipo)"' ... As you can see the os_version has single cuotes and doble quotes. I have checked /usr/bin/pandora_agent, function **guess_os_version** and the `lsb_release -sd 2>$DevNull` command returns with double quotes. For my try I've changed with `lsb_release -sd | tr -d '"' 2>$DevNull`. It woks great. Is this because I have some bad configuration? Thanks
Good morning iug, It is not that you have a bad configuration is that the default configuration is the one that gives double quotes. If you want to have single quotes, just change the command you said it works where the other command was. Alberto
Thank you Alberto for your response. I understand that you mean that I should modify "pandora_agente" myself? Thank you
Hello all, I've just installed pandora agent 7.0NG.724 on my RHEL7. Tryed whith 7.0NG.726 and the same happens. the generated XML goes BAD_XML. The content of the xml is: <agent_data description='' os_name='linux' os_version='"Red Hat Enterprise Linux Server release 7.2 (Maipo)"' ... As you can see the os_version has single cuotes and doble quotes. I have checked /usr/bin/pandora_agent, function **guess_os_version** and the `lsb_release -sd 2>$DevNull` command returns with double quotes. For my try I've changed with `lsb_release -sd | tr -d '"' 2>$DevNull`. It woks great. Is this because I have some bad configuration? Thanks
Good morning iug, It is not that you have a bad configuration is that the default configuration is the one that gives double quotes. If you want to have single quotes, just change the command you said it works where the other command was. Alberto
Thank you Alberto for your response. I understand that you mean that I should modify "pandora_agente" myself? Thank you
Good morning iug, You can try to install de new versión 727 that we got out last Tuesday and see if the "problem" persist. If it continues you will have yo modify it by yourself. Sorry for the notice, Alberto
Hello, I just update the version and it works the same way. But I figured out that the problem wasn't in double quotes but in a spaecial character that I had in my XML. Thanks
Entra en tu cuenta para publicar.
