Skip to content
This repository has been archived by the owner on Nov 11, 2023. It is now read-only.

feature request: icli compatibility for icinga2 #16

Open
olaf7 opened this issue May 15, 2014 · 2 comments
Open

feature request: icli compatibility for icinga2 #16

olaf7 opened this issue May 15, 2014 · 2 comments

Comments

@olaf7
Copy link

olaf7 commented May 15, 2014

At the moment icli has hardcoded paths to Icinga datafiles. These can be overwritten by for example:
icli -f /var/cache/icinga2/status.dat -c /var/cache/icinga2/objects.cache
It would be nice if either these defaults would be configurable, be dynamically extracted from the Icinga configuration.
An alterative would be to fork every release of icli to not only hold (in it's package) not only an icli executable which defaults to /var/cache/cinga/* but also an icli2 which defaults to /var/cache/icinga2/*

@olaf7 olaf7 changed the title feature request: icli compatability for icinga2 feature request: icli compatibility for icinga2 May 15, 2014
@derf
Copy link
Owner

derf commented May 15, 2014

They will be configurable in the next release (in git HEAD it already works). Also, I have patched Build.PL to check for both icinga1 and icinga2 paths -- So if you're building on a system with either of those installed and using the default paths, the build process should detect and use them automatically.

I'm considering adding support for an "icli2" symlink to icli, so that if it's called with icli2 it can use an appropriate set of default paths. That might be more convenient for packagers who want to support both icinga versions, but I'll have to think a bit about the implementation details.

@olaf7
Copy link
Author

olaf7 commented May 15, 2014

Good news!
A symlink does sound like an easy solution which will cater for both icinga/icinga2

thank you,

Olaf
On Thursday, May 15, 2014 5:04 PM, Daniel Friesel notifications@github.com wrote:

They will be configurable in the next release (in git HEAD it already works). Also, I have patched Build.PL to check for both icinga1 and icinga2 paths -- So if you're building on a system with either of those installed and using the default paths, the build process should detect and use them automatically.
I'm considering adding support for an "icli2" symlink to icli, so that if it's called with icli2 it can use an appropriate set of default paths. That might be more convenient for packagers who want to support both icinga versions, but I'll have to think a bit about the implementation details.

Reply to this email directly or view it on GitHub.

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

No branches or pull requests

2 participants