This page was exported from phaq
[ http://phaq.phunsites.net ] Export date: Sat Jun 10 0:45:39 2023 / +0000 GMT |
It's not hard to install Icinga on FreeBSD, at least if you're satisfied with default options. Should you however require Icinga with IDOUtils and MySQL support, then you need to take additional steps. Note: This howto requires a patch to your FreeBSD ports tree. The patch has been submitted to the FreeBSD port maintainers. I hope that it will eventually end up in the ports tree. My initial readings about this was on the official Icinga docs covering installing Icinga on FreeBSD with IDOUtils. However, as it turned out, the docs our a bit outdated, and yet do not reflect a way of doing the install using ports. So here's just a short primer on what I did do install Icinga from ports, imposing as little additional work four you, my fellow reader, as well ;-) Now let's turn to Icinga, which has a port on it's own, which you'll find it at /usr/ports/net-mgtm/icinga. First change to that directory. cd /usr/ports/net-mgtm/icinga Now download the patch file I made into your ports directory. The patch will inject a new rc-script for ido2db and enable your port to build IDOutils. [root@localhost /usr/ports/net-mgmt/icinga]# fetch http://phaq.phunsites.net/files/2012/01/patch_icinga_1.5.1_idoutils_fbs_port.txt Then apply the patch like this: [root@localhost /usr/ports/net-mgmt/icinga]# patch -p0 < patch_icinga_1.5.1_idoutils_fbs_port.txt Now you're ready to configure the port: [root@localhost /usr/ports/net-mgmt/icinga]# make config Note the now IDOUtils option that now has appeared. Check it to enable IDOUtils. Then compile and install as usual. The port will install also all required dependies, two of them being mysql55-client and libdbi-drivers, both to be found at /usr/ports/databases. [root@localhost /usr/ports/net-mgmt/icinga]# make install clean Afterwards, you should end up with a few additional files, which would not be installed with the stock FreeBSD port. [root@localhost /usr/ports/net-mgmt/icinga]# ls -l /usr/local/bin/ido* Now you can enable Icinage and IDO2DB in /etc/rc.conf by adding these lines: icinga_enable="YES" Of course, you still need to perform the usual Icinga configuration steps, which are not covered in this post. Please check with the official docs for this procedure. If your configuration is proper, you should notice this in your logs indicating that IDOMOD (IDOUtils) is really working. [1327773651] Icinga 1.5.1 starting... (PID=95448) That's it, you conquered the beast! |
Powered by [ Universal Post Manager ] plugin. HTML saving format developed by gVectors Team www.gVectors.com |