Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dev.icinga.com #13763] Possibility to have Icingaweb2 and PNP on different servers #24

Open
icinga-migration opened this issue Dec 25, 2016 · 4 comments

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/13763

Created by tontonitch on 2016-12-25 22:52:01 +00:00

Assignee: (none)
Status: New
Target Version: (none)
Last Update: 2017-01-03 09:03:13 +00:00 (in Redmine)


Hi,
Currently, the Icinga Web 2 Module for PNP seems to work only when having the PNP software on the same server.
It would be nice to be able to have PNP running on a different server, for exemple in a clustered Icinga2/Icingaweb2 environment.
Best regards,
Yannick


Relations:

@icinga-migration
Copy link
Author

Updated by tgelf on 2017-01-02 16:26:05 +00:00

  • Relates set to 8582

@icinga-migration
Copy link
Author

Updated by ClemensBW on 2017-01-03 09:03:13 +00:00

Hello,
you can change the base_url at /etc/icingaweb2/modules/pnp4nagios/config.ini:

[pnp4nagios]
config_dir = "/etc/pnp4nagios"
base_url = "https://monitoring.domain.tld/pnp4nagios"

and hack, if you like your apache config with a rewrite rule for the other server (here as https reverse proxy):

SSLProxyEngine On
ProxyPass /pnp4nagios https://pnpserver.domain2.tld/pnp4nagios
ProxyPassReverse /pnp4nagios https://pnpserver.domain2.tld/pnp4nagios

Now you can reach your pnp4nagios with https://monitoring.domain.tld/pnp4nagios (your default icingaweb2 server), but the source is https://pnpserver.domain2.tld/pnp4nagios (your pnp server)

@lazyfrosch
Copy link
Contributor

This would need updated methods to check if there is actually performance data in PNP.

Currently the module accesses the XML files locally. Could we do this by HTTP?

@dnsmichi
Copy link
Contributor

Unfortunately there's no http api. There is a draft somewhere which exposes metrics for the Grafana data fetcher, but I doubt it has been released or merged yet. I don't think that it exposes everything you need from the XMLs too.

https://github.com/lingej/pnp-metrics-api

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants