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 #6918] Out of the box support of PNP4Nagios #1886
Comments
Updated by mfriedrich on 2014-08-14 14:37:37 +00:00
|
Updated by gbeutner on 2014-08-15 08:35:36 +00:00 Here's a workaround which lets you overwrite the PNP service name in case some of your check commands already have a name which matches check_*:
|
Updated by dgoetz on 2014-08-28 07:23:51 +00:00 Used your workaround and works fine with some tweaks.
Now I am struggeling with the next problem. Remote check commands like nrpe I can configure in pnp4nagios to use the first argument, but with icinga2 I have no arguments when I use variables like var.nrpe_command. Of course I can manually set vars.pnp_check_name to check_nrpe!check_disk or just to check_disk, but is there a way to automatically do this? Like in pseudo code: |
Updated by mfriedrich on 2014-08-28 07:29:48 +00:00
|
Updated by mfriedrich on 2015-01-12 09:52:28 +00:00
|
Updated by davidak on 2015-01-13 16:33:20 +00:00 i tried to implement this workaround in my setup. if/else is not yet implemented in icinga2: https://blog.netways.de/2015/01/09/neue-features-in-icinga-2-3/ so i added a templatte to all nrpe services, but that didn't work. i gave up :/
it would be helpful if icinga2 works by default with pnp4nagios! |
Updated by mfriedrich on 2015-01-13 16:45:54 +00:00 You'll likely forgot to adapt the service template using the different macro for the checkcommand name. 'service_format_template' Imho it's not a matter of support in Icinga 2, but rather a documentation issue. And it doesn't look like PNP will officially support Icinga 2 so everyone is invited to help update the documentation finding a reasonable way to document common pitfalls (and yes, the checkcommand name and arguments are such a thing, as they are automagic and uncontrollable). http://dillinger.io & git format-patch PS: I highly doubt that if/then/else will solve this issue without further documentation & adaptions. |
Updated by dgoetz on 2015-01-21 08:23:18 +00:00 @davidak: You missed the exclamation mark between the two values:
But it would also work like:
This would remove the lookup over custom template @dnsmichi: |
Updated by mfriedrich on 2015-01-23 13:12:09 +00:00 I had an idea, but I don't have time to implement a patch or document it anywhere. Patch for PNP:
Icinga 2:
While it does not really solve the problem itself, it still shows a possibility to pass pnp template names to PNP, no matter which core is used. Feel free to propose/discuss that with the PNP developers. |
Updated by mfriedrich on 2015-04-27 12:17:37 +00:00
|
Updated by mfriedrich on 2016-01-13 16:41:11 +00:00
Everything which works so far as a workaround probably is the best we can do. I have no further ideas, and instead of leaving this issue open forever without any comments, I'll close it as no-more-fix. |
This issue has been migrated from Redmine: https://dev.icinga.com/issues/6918
Created by dgoetz on 2014-08-14 14:14:25 +00:00
Assignee: (none)
Status: Closed (closed on 2016-01-13 16:41:10 +00:00)
Target Version: (none)
Last Update: 2016-01-13 16:41:10 +00:00 (in Redmine)
Not sure if this should be classified as a bug, but at least it is small documentation bug, mostly use it as feedback.
PNP4Nagios uses the old style for check command names prefixed with check_ in all its configuration and to find their templates. On one hand this could be changes by some links on the filesystem, on the other with the following PerfdataWriter configuration:
From documentation I had to change checkcommand to check_command, service.description to service.name and include the prefix check_.
Changesets
2014-08-14 14:32:51 +00:00 by (unknown) 92448a2
Relations:
The text was updated successfully, but these errors were encountered: