How to install icinga2,icingaweb and icingadb with non-root users

Hello Everyone,

Can anyone please help me how to install icinga2,icingaweb and icingadb with non-root uesrs on my rhel 7. Currenlty I dont have access to root user and I want to install icinga with functional user.

Os version → Rhel 7
Icinga version → Icinga 2 (version: 2.12.3)

Regards,
Abhishek

Is this just as a system to learn about things on, or are you looking for a
solution where it can run like this for production use?

Antony.

We want this setup to be on production

I think the only way you’re going to be able to do this, then, is to compile
from source, because without root access, you won’t be able to install the
various components in the expected places.

I really think this is not the right way of going about running a service like
Icinga, though. If you don’t have root access on a machine, how do you
install any applications, and how do you keep it up to date?

If you are an unprivileged user and someone else has root access and is
responsible for installing and maintaining applications, then for production
use you should be able to justify getting them to install Icinga in the
standard way.

Antony.

Hello Antony,

Thanks for your response but we have to install icinga with non-root user only. Can you please help me how to build icinga from source code?

Regards,
Abhishek

I think Development - Icinga 2 is going
to be the best guide for this.

icinga2-1/INSTALL.md at master · jjethwa/icinga2-1 · GitHub might be helpful
as well, although I have no idea how up to date it is.

One further question - if you cannot install icinga as root, how are you going
to install the tools needed to build from source?

Antony.

Hi Antony,

I tried to install icinga with root only now but I am getting below error.
yum install icinga2-2.10.5-1.el7.icinga.x86_64.rpm
Loaded plugins: amazon-id, search-disabled-repos
Examining icinga2-2.10.5-1.el7.icinga.x86_64.rpm: icinga2-2.10.5-1.el7.icinga.x86_64
Marking icinga2-2.10.5-1.el7.icinga.x86_64.rpm to be installed
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction, or “yum-complete-transaction --cleanup-only” and “yum history redo last”, first to finish them. If those don’t work you’ll have to try removing/installing packages by hand (maybe package-cleanup can help).
→ Running transaction check
—> Package icinga2.x86_64 0:2.10.5-1.el7.icinga will be installed
→ Processing Dependency: icinga2-bin = 2.10.5-1.el7.icinga for package: icinga2-2.10.5-1.el7.icinga.x86_64
→ Processing Dependency: icinga2-common = 2.10.5-1.el7.icinga for package: icinga2-2.10.5-1.el7.icinga.x86_64
→ Running transaction check
—> Package icinga2-bin.x86_64 0:2.10.5-1.el7.icinga will be obsoleting
→ Processing Dependency: libyajl.so.2()(64bit) for package: icinga2-bin-2.10.5-1.el7.icinga.x86_64
—> Package icinga2-common.x86_64 0:2.7.0-1.el7.icinga will be updated
—> Package icinga2-common.x86_64 0:2.10.5-1.el7.icinga will be an update
—> Package icinga2-libs.x86_64 0:2.7.0-1.el7.icinga will be obsoleted
→ Running transaction check
—> Package icinga2-bin.x86_64 0:2.12.4-1.el7.icinga will be obsoleting
→ Processing Dependency: libboost_filesystem.so.1.69.0()(64bit) for package: icinga2-bin-2.12.4-1.el7.icinga.x86_64
→ Processing Dependency: libboost_date_time.so.1.69.0()(64bit) for package: icinga2-bin-2.12.4-1.el7.icinga.x86_64
→ Processing Dependency: libboost_program_options.so.1.69.0()(64bit) for package: icinga2-bin-2.12.4-1.el7.icinga.x86_64
→ Processing Dependency: libboost_context.so.1.69.0()(64bit) for package: icinga2-bin-2.12.4-1.el7.icinga.x86_64
→ Processing Dependency: libboost_regex.so.1.69.0()(64bit) for package: icinga2-bin-2.12.4-1.el7.icinga.x86_64
→ Processing Dependency: libboost_coroutine.so.1.69.0()(64bit) for package: icinga2-bin-2.12.4-1.el7.icinga.x86_64
→ Processing Dependency: libboost_thread.so.1.69.0()(64bit) for package: icinga2-bin-2.12.4-1.el7.icinga.x86_64
—> Package yajl.x86_64 0:2.0.4-4.el7 will be installed
→ Finished Dependency Resolution
Error: Package: icinga2-bin-2.12.4-1.el7.icinga.x86_64 (icinga-stable-release)
Requires: libboost_date_time.so.1.69.0()(64bit)
Error: Package: icinga2-bin-2.12.4-1.el7.icinga.x86_64 (icinga-stable-release)
Requires: libboost_thread.so.1.69.0()(64bit)
Error: Package: icinga2-bin-2.12.4-1.el7.icinga.x86_64 (icinga-stable-release)
Requires: libboost_regex.so.1.69.0()(64bit)
Error: Package: icinga2-bin-2.12.4-1.el7.icinga.x86_64 (icinga-stable-release)
Requires: libboost_filesystem.so.1.69.0()(64bit)
Error: Package: icinga2-bin-2.12.4-1.el7.icinga.x86_64 (icinga-stable-release)
Requires: libboost_coroutine.so.1.69.0()(64bit)
Error: Package: icinga2-bin-2.12.4-1.el7.icinga.x86_64 (icinga-stable-release)
Requires: libboost_context.so.1.69.0()(64bit)
Error: Package: icinga2-bin-2.12.4-1.el7.icinga.x86_64 (icinga-stable-release)
Requires: libboost_program_options.so.1.69.0()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

Can you please help