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 #6858] Add some more PNP details #1860

Closed
icinga-migration opened this issue Aug 5, 2014 · 7 comments
Closed

[dev.icinga.com #6858] Add some more PNP details #1860

icinga-migration opened this issue Aug 5, 2014 · 7 comments
Labels
area/documentation End-user or developer help enhancement New feature or request
Milestone

Comments

@icinga-migration
Copy link

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

Created by mfriedrich on 2014-08-05 17:04:43 +00:00

Assignee: mfriedrich
Status: Resolved (closed on 2015-03-07 15:25:04 +00:00)
Target Version: 2.3.0
Last Update: 2015-03-07 15:25:04 +00:00 (in Redmine)


And remove this wiki page shipping extra information.
https://wiki.icinga.org/display/howtos/Setting+up+PNP+with+Icinga2+on+Debian

Changesets

2015-03-07 15:23:53 +00:00 by (unknown) a93b565

Documentation: Refactor RemoteClient/Cluster/etc from community&training feedback

fixes #8318
fixes #8522
fixes #6858

Relations:

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2014-08-28 07:29:49 +00:00

  • Relates set to 6918

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2014-09-16 09:22:15 +00:00

  • Project changed from 42 to Icinga 2
  • Category set to Documentation

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2014-11-01 16:09:41 +00:00

Add a note on how to deal with pnp custom templates based on command args which do not exist anymore in Icinga 2.

Requirements

PNP requires the following

  • checkcommand name = pnp template name
  • checkcommand!firstarg = pnp custom template command name

In Icinga 1.x it looked like this

check_nrpe!check_disk

Possible solution

By adapting the pnp perfdata template for hosts/services in the PerfdataWriter config like this

SERVICECHECKCOMMAND:$service.check_command$$pnp_check_arg1$

one can simply use a global pnp-svc template with the following settings

  • action_url = "...pnp/...."
  • enable_perfata = true
  • vars.pnp_check_arg1 = ""

On a service apply rule for a specific nrpe checked service, you can then override the value of that argument using the value of the $nrpe_command$ macro.

apply Service "nrpe-check" {
  import "pnp-svc"
  check_command = nrpe
  vars.nrpe_command = "check_disk"

  vars.pnp_check_arg1 = "!$nrpe_command$"
}

Usage in PNP

In PNP, the custom template for nrpe is then defined in /etc/pnp.../custom..../nrpe.cfg and the additional command arg string will be seen in the xml too for other templates.

TODOs

Now one needs to write proper docs and test that theory.

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2014-12-16 19:00:49 +00:00

  • Relates set to 8068

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2014-12-16 19:01:14 +00:00

  • Relates set to 7314

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2015-03-07 15:23:13 +00:00

  • Status changed from New to Assigned
  • Assigned to set to mfriedrich
  • Target Version set to 2.3.0
  • Estimated Hours set to 2

@icinga-migration
Copy link
Author

Updated by Anonymous on 2015-03-07 15:25:04 +00:00

  • Status changed from Assigned to Resolved
  • Done % changed from 0 to 100

Applied in changeset a93b565.

@icinga-migration icinga-migration added enhancement New feature or request area/documentation End-user or developer help labels Jan 17, 2017
@icinga-migration icinga-migration added this to the 2.3.0 milestone Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/documentation End-user or developer help enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant