We currently use Nagios 4.4.6 and use livestatus to create reports and also for Nagvis to pull data from Nagios.
The version of livestatus we use is from the Nagios Exchange, https://exchange.nagios.org/directory/D ... us/details
Its a pretty old version and I can't see a newer version, this version works prietty well but would be nice to be able to update it.
I see that Check MK is at version 2.2.0 and this has livestatus with it, but I can't find a why to just use that version of livestatus without having to install everything else it comes with. If I still everything else and just lift livestatus.o from the install directory and load that into nagios.cfg I get an error and Nagios doesn't load.
Anyone got any ideas?
Livestatus
Re: Livestatus
Livestatus is being very actively maintained by and for Checkmk with almost weekly improvements, see here: https://github.com/Checkmk/checkmk/tree ... livestatus
As we perceive Nagios Core not being actively maintained anymore, with Livestatus itself receiving more love than entire Nagios Core, we focus on improving Livestatus for Checkmk.
As we perceive Nagios Core not being actively maintained anymore, with Livestatus itself receiving more love than entire Nagios Core, we focus on improving Livestatus for Checkmk.
-
- Posts: 3
- Joined: Mon Aug 21, 2023 8:40 pm
Re: Livestatus
How about carefully evaluating the compatibility between the newer livestatus version and your existing Nagios setup before attempting a manual integration?build now gg
Re: Livestatus
Hi @delboy1966, thanks for reaching out.delboy1966 wrote: ↑Wed Jun 28, 2023 5:09 am We currently use Nagios 4.4.6 and use livestatus to create reports and also for Nagvis to pull data from Nagios.
The version of livestatus we use is from the Nagios Exchange, https://exchange.nagios.org/directory/D ... us/details
Its a pretty old version and I can't see a newer version, this version works prietty well but would be nice to be able to update it.
I see that Check MK is at version 2.2.0 and this has livestatus with it, but I can't find a why to just use that version of livestatus without having to install everything else it comes with. If I still everything else and just lift livestatus.o from the install directory and load that into nagios.cfg I get an error and Nagios doesn't load.
Anyone got any ideas?
As others have mentioned, I don't think the livestatus maintainers are interested in staying compatible with Nagios Core. The specific justification here seems weird (if Nagios Core doesn't change, shouldn't it take less effort to maintain compatibility?), but is beside the point.
In speaking with other customers, it seems like people have the most success using livestatus version 1.2.8, and it seems like this version is still compatible with current Nagios Core. If you use that version, you should just be able to grab the RPM and install it on its own.
Hopefully that helps, feel free to reach out if you have any other questions or concerns.
-Sebastian Wolf
Developer @ Nagios 2017-05-15 thru 2024-08-06
-
- Posts: 96
- Joined: Thu Oct 22, 2015 5:26 am
Re: Livestatus
Hey Sebastian
Sorry for not replying to your post sooner, I've been out of action for a while.
Anyway, back fighting fit now, and have been successfully using livestatus 1.2.8 with 4.4 versions of Nagios.
But we have recently tried to upgrade to Nagios 4.5.1 and use livestatus 1.2.8 again. But that has caused an issue, although Nagios loads fine with the module and works. As soon as you try to query it using livestatus it baffs, and I'm not sure why.
I followed the steps by SteveBeauchemin in the post viewtopic.php?t=41979, as he seems to have got it working on Nagios 5 XI. But with no success, do you know of anyone that has successfully got it running on 4.5.1?
Sorry for not replying to your post sooner, I've been out of action for a while.
Anyway, back fighting fit now, and have been successfully using livestatus 1.2.8 with 4.4 versions of Nagios.
But we have recently tried to upgrade to Nagios 4.5.1 and use livestatus 1.2.8 again. But that has caused an issue, although Nagios loads fine with the module and works. As soon as you try to query it using livestatus it baffs, and I'm not sure why.
I followed the steps by SteveBeauchemin in the post viewtopic.php?t=41979, as he seems to have got it working on Nagios 5 XI. But with no success, do you know of anyone that has successfully got it running on 4.5.1?
Re: Livestatus
Hi,
after upgrading to 4.5.x, I also had problems with livestatus, which I use for nagvis.
Since the beginning I use livestatus 1.5.0, but 1.2.8 should also work when using the nagios4.5 lib and include files.
Feel free to modify paths.
OS: Rocky Linux 9
---
cd /tmp
export NAGVER=4.5.2
wget https://assets.nagios.com/downloads/nag ... ER}.tar.gz
tar -xf nagios-${NAGVER}.tar.gz
cd nagios-${NAGVER}
./configure ...
make
cd /tmp
git clone https://github.com/Expensify/mk_livestatus mk_livestatus_150p23
cd mk_livestatus_150p23
# patching livestatus
# https://github.com/NagiosEnterprises/na ... issues/956
wget https://github.com/NagiosEnterprises/na ... .patch.txt
wget https://github.com/NagiosEnterprises/na ... .patch.txt
patch -p1 < 0003-livestatus_hostfilecolumn-1.5.0.patch.txt
patch -p1 < 0005-livestatus_customvarscolumn-1.5.0.patch.txt
# copy include and lib files from compiled nagios
rm -rf nagios4
cp -r /tmp/nagios-4.5.2/include nagios4
cp -r /tmp/nagios-4.5.2/lib lib
autoreconf -f -i
./configure --prefix=/opt/nagios/mk-livestatus/1.5.0p23 --with-nagios4
make
make install
vi /PATH/TO/nagios.cfg
8<---
broker_module=/opt/nagios/mk-livestatus/1.5.0p23/lib/mk-livestatus/livestatus.o /opt/nagios-mk-livestatus/live
8<---
Best
Jens
after upgrading to 4.5.x, I also had problems with livestatus, which I use for nagvis.
Since the beginning I use livestatus 1.5.0, but 1.2.8 should also work when using the nagios4.5 lib and include files.
Feel free to modify paths.
OS: Rocky Linux 9
---
cd /tmp
export NAGVER=4.5.2
wget https://assets.nagios.com/downloads/nag ... ER}.tar.gz
tar -xf nagios-${NAGVER}.tar.gz
cd nagios-${NAGVER}
./configure ...
make
cd /tmp
git clone https://github.com/Expensify/mk_livestatus mk_livestatus_150p23
cd mk_livestatus_150p23
# patching livestatus
# https://github.com/NagiosEnterprises/na ... issues/956
wget https://github.com/NagiosEnterprises/na ... .patch.txt
wget https://github.com/NagiosEnterprises/na ... .patch.txt
patch -p1 < 0003-livestatus_hostfilecolumn-1.5.0.patch.txt
patch -p1 < 0005-livestatus_customvarscolumn-1.5.0.patch.txt
# copy include and lib files from compiled nagios
rm -rf nagios4
cp -r /tmp/nagios-4.5.2/include nagios4
cp -r /tmp/nagios-4.5.2/lib lib
autoreconf -f -i
./configure --prefix=/opt/nagios/mk-livestatus/1.5.0p23 --with-nagios4
make
make install
vi /PATH/TO/nagios.cfg
8<---
broker_module=/opt/nagios/mk-livestatus/1.5.0p23/lib/mk-livestatus/livestatus.o /opt/nagios-mk-livestatus/live
8<---
Best
Jens
Re: Livestatus
I'm trying to view the graph point after entering the host details , but it is showing version deprecation. Please help me to solve this ASAP.