Hi. I started using Pandora's API, and many commands are working well. But I can not understand how to properly use "create_network_module". I get the message "Error in creation network module" when I use the example from the documentation. In the end, I need to create module "Host Alive" with a specific IP-address for specific agent. Can you provide a working example? p.s. Now I use Pandora 6.0RC1 from GitHub for testing. In the past, I used the 5th branch of Pandora and the command worked there, but the IP address does not appear in the database, and some of the parameters have a different order.
create_network_module in Pandora's API
xcme · 14 oct 2015, 20:30 · 3 mensajes · 56 visitas
- Inicio del debate
I did some research and eventually solved this issue. I went through the chain of PHP-functions and got the SQL-query. After completing it, I got the error "Column' module_macros 'can not be null'". 'Module_macros' parameter is not specified in the example in the documentation (http://wiki.pandorafms.com/index.php?title=Pandora:Documentation\_en:Annex\_ExternalAPI#set\_create\_network\_module). The last parameter in the example is the 'description'. Thus, it was necessary to add two more parameters and function 'create_network_module' now work fine. I solved this question for myself, but development team need to make minor changes to the API documentation, and make a more detailed error message, as planned: "// TODO: Improve the error returning more info" =)
Hi xcme, Thank you for coming up with a solution to your own problem, that's awesome :D It'll help someone else with the same problem at the future, that's for sure ;) Regards, Emilio.
Entra en tu cuenta para publicar.
