I’m a new fan of Nagios XI. The Core version is simply to complex and difficult to manage and I love to (KISS) keep it simple and stupid.

A first try to install NagiosXI on Proxmox under KVM resulted in a performance disaster. (load of 40.x and I have no idea why) In general unless there are very good reasons for portability, security or snapshot features, I’m more a fan of Containers (OpenVZ or Zones for Solaris). They are simply more performant and don’t have that overhead KVM virtualization brings with.

However one negative side-effect of Openvz is for example IPtables.
IPtables under openVZ are a nightmare. When you know what you do, you secure the container from the Host and wont need IPtables on the CT. But my problem was that NagiosXI needs (kind of) Iptables for its automated install script.

So I had to work around anbit to get it running on the CT and know what .. its awesome fast and performant.

Way 1) would be that you go through all the scripts and remove any iptables dependency in the sources.  Have fun with that….

Way 2) I’m lazy … So here we go.

Become root to do all those steps.

Download the nagiosxi tarball

cd /tmp
wget http://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
tar xzf xi-latest.tar.gz
cd /tmp/nagiosxi

Now we need to trick a bit around.

1) we need to pretend to the scripts that we have a running iptables and so on.

in /tmp/nagiosxi
touch installed.firewall
touch installed.selinux

oups nagiosxi thinks we have it already configured. but we need to get more dirty cause it will ask somewhere to apply more stuff. 

Warning: please dont do that on any Prod system cause I don’t know if it will break anything else.

rm -f /sbin/modprobe
ln -s /bin/true /sbin/modprobe
rm -f /sbin/sysctl
ln -s /bin/true /sbin/sysctl

now we can install nagiosxi and it should compile and start

./fullinstall

After the installation direct your browser to http://localhost/nagiosxi

%d bloggers like this: