Pandora FMS Community

XML Report by direct URL

wjpounder · 21 oct 2015, 13:53 · 5 mensajes · 60 visitas

  1. Inicio del debate

    Hi, Happily using Community Edition Pandora FMS to monitor remote network hosts on a new project.  I've setup custom reports for In and Out Octets toal over a month to my hosts and can view them in HTML and XML.  This works great through the web interface. What I would like to do is parse the XML output to calculate a total of the Octets In and Out for each host and display that. I have viewed the source code of reporting_xml.php and there is a comment in there referring to a "direct access" URL.  I have tried following these instructions but I either get no output at all or it returns the "noaccess" HTML snippet even when I pass login details as the comments instruct. Does the direct URL not work anymore?  Am I missing something in the URL string? I have tried: http:////ajax.php?page=/var/www/html/pandora_console/operation/reporting/reporting_xml&id=2&direct=1 http:////ajax.php?page=/var/www/html/pandora_console/operation/reporting/reporting_xml&id=2&direct=1&nick=&password= https:///operation/reporting/reporting_xml.php?id=2&direct=1&nick=&password= http:///operation/reporting/reporting_xml.php?id=2&direct=1&nick=&password= http:///operation/reporting/reporting_xml.php?id=2&direct=1 None of these work. Thanks in advance.

  2. Nothing on this? Even if someone just said the feature is deprecated would be nice. Thanks.

  3. Hello wjpounder, Sorry for not giving you an answer sooner :( I've been trying this and making my research, and nope... There's no function like this, so yeah, it's deprecated. The only way you can do this with the open version, is through the API. You have some information about this here, on this link from the Pandora's Wiki: http://wiki.pandorafms.com/index.php?title=Pandora:Documentation\_en:Annex\_ExternalAPI Regards, Emilio.

  4. Thanks Emilio.  I'll give the API a shot.

  5. Wjpounder, if you have some problem with the API, lemme' know ;)

Entra en tu cuenta para publicar.