tarohida / mk_livestatus

Livestatus is a tool to access the host and service status of your Nagios server.
0 stars 0 forks source link

The code in this repository was forked from the offical upstream code, specifically: https://checkmk.com/support/1.5.0p23/mk-livestatus-1.5.0p23.tar.gz

We have created this repo under the permissions granted by the GPLv2 license used by original author. It exists for our internal build processes and ensure access to the code is maintained even if upstream goes away.

Caution

This module work with nagios above 4.5.0.

With below 4.4.x, It may does not work.

How to build on Rocky Linux 9

# cat /etc/redhat-release
Rocky Linux release 9.3 (Blue Onyx)
dnf group install "Development Tools" -y
dnf config-manager --set-enabled crb -y
dnf install epel-release -y
dnf install rrdtool-devel boost-devel libstdc++-static -y
autoreconf && ./configure --with-nagios4 && make -j8
make install

How to integrate with Nagios (4.5.3)

Add following line to /usr/local/nagios/etc/nagios.cfg

broker_module=/usr/local/lib/mk-livestatus/livestatus.o /usr/local/nagios/var/rw/live
chown nagios /usr/local/nagios/var/rw/
systemctl restart nagios