Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Embedding Controls in Web-Pages
#1
Hi! For the Pandora FMS community edition, is there an easy way of including e.g. the current state of an agent ( critical / warning / unknown error) or the current state of a certain event / event group into a web-page via iFrame?

I'm thinking something like

Agent A: Status Normal
Agent B: Status Warning

"Status Normal" would link to a Pandora-FMS page with the Agent A overview, "Status Warning" would link to a Pandora-FMS page with the Agent B overview.

The Iframe would get a list of agents to show or "all" for all, like e.g. http://<mypandora>/embed/agents/a+b or http://<mypandora>/embed/events/1+2+3 or http://<mypandora>/embed/eventgroup/Application+Networking

or something like that. Or would I have to write php pages that access the database directly to do that? Thanks!
 Reply
#2
[quote="annomatik" pid='26836' dateline='1542181749']
Hi! For the Pandora FMS community edition, is there an easy way of including e.g. the current state of an agent ( critical / warning / unknown error) or the current state of a certain event / event group into a web-page via iFrame?

I'm thinking something like

Agent A: Status Normal
Agent B: Status Warning

"Status Normal" would link to a Pandora-FMS page with the Agent A overview, "Status Warning" would link to a Pandora-FMS page with the Agent B overview.

The Iframe would get a list of agents to show or "all" for all, like e.g. http://<mypandora>/embed/agents/a+b or http://<mypandora>/embed/events/1+2+3 or http://<mypandora>/embed/eventgroup/Application+Networking

or something like that. Or would I have to write php pages that access the database directly to do that? Thanks!
[/quote]

Good morning annomatik,

If you want to do it via Iframes, you can create Visual Consoles for each agent and use its Public Link with the <iframe src and the link to be shown in your website.

Will probably also try to include a call in the API to get the agent status in some of the next versions os Pandora FMS so you could do it that way, but nowadays only via Visual Consoles.

Hope this helps you,

Alberto
 Reply
#3
Sounds good, thanks!
 Reply


Users browsing this thread: 1 Guest(s)


(c) 2006-2018 Artica Soluciones Tecnológicas. Contents of this wiki are under Create Common Attribution v3 licence. | pandorafms.com | pandorafms.org

Theme © MyBB Themes