Page 1 of 1
I have a problem with nagios core working with version 4.5.2
Posted: Thu May 16, 2024 3:32 pm
by arley
I have a problem with nagios core working with version 4.5.2 of Nagios, when I access the nagvis or nagios map, I saw that when this happens the nagios.cmd file is dead.
I can't understand why this is happening.
For information, in version 4.4.14 this error does not occur and works perfectly.
Any help please?
Re: I have a problem with nagios core working with version 4.5.2
Posted: Thu May 16, 2024 3:48 pm
by bbahn
Hello @arley,
Have you checked your Nagios logs to see if there's any more information pointing to what's going wrong? If you'd like I can create an issue on the Nagios Core github project.
Re: I have a problem with nagios core working with version 4.5.2
Posted: Thu May 16, 2024 4:38 pm
by arley
Hello, thank you for responding.
If you had verified the logs of the nagios.log file and what returned is [1715895380] Caught SIGSEGV, shutting down...
Arley
Re: I have a problem with nagios core working with version 4.5.2
Posted: Fri May 17, 2024 10:03 am
by arley
If you'd like I can create an issue on the Nagios Core github project.
Answering your question, if you were able to open Github project, thank you very much.
Re: I have a problem with nagios core working with version 4.5.2
Posted: Tue May 21, 2024 9:43 am
by swolf
Hi
@arley,
If you're using any NEB modules, you'll need to recompile them with the nagios-4.5.0 headers. My understanding is that most Core + nagvis users are also running
livestatus.
-Sebastian
Re: I have a problem with nagios core working with version 4.5.2
Posted: Tue May 21, 2024 2:43 pm
by arley
Hi @Sebastian, thank you for responding.
Yes, I use Nagios Core with Nagvis and Livestatus, I never compiled Nagios/Nagvis with Livestatus, I have no idea how to do it.
Re: I have a problem with nagios core working with version 4.5.2
Posted: Mon May 27, 2024 4:57 am
by stijn.mahieu
Hi,
I managed to fix it as follows:
- download and unpack the livestatus tarball into /tmp
- download and unpack the nagios 4.5.0 core tarball into /tmp
- copy the nagios 4.5.0 header files to the mklivestatus source folder:
cp /tmp/nagios-4.5.0/lib/*.h /tmp/mk-livestatus-1.5.0p24/nagios4/
cp /tmp/nagios-4.5.0/include/*.h /tmp/mk-livestatus-1.5.0p24/nagios4/
Press "y" to overwrite all existing files.
- Edit /tmp/mk-livestatus-1.5.0p24/nagios4/shared.h and change line 5 to look like this:
#include "libnagios.h"
Save the file and return 1 level up.
./configure --with-nagios4
make clean
make
make install
Restart nagios
After that, my Nagios didn't crash anymore when trying to open a Nagvis map.
Hope this helps.
Stijn
Re: I have a problem with nagios core working with version 4.5.2
Posted: Fri May 31, 2024 2:58 pm
by arley
@stijn.mahieu
Very grateful, your tips were a great help, problem solved.
Arley
Re: I have a problem with nagios core working with version 4.5.2
Posted: Fri Jun 21, 2024 12:57 pm
by izghitu
stijn.mahieu wrote: ↑Mon May 27, 2024 4:57 am
- download and unpack the
livestatus tarball into /tmp
Hi,
When you say to download and unpack
livestatus tarball into /tmp can you please tell me what exact version of
livestatus do you use and where you download it from?
Livestatus 1.5 is extremely old but later versions are no longer standalone archives but are part of check-mk instead which is impossible to compile to get
livestatus from.
Please advise
Re: I have a problem with nagios core working with version 4.5.2
Posted: Fri Jul 12, 2024 4:21 pm
by bbahn
I believe the last version of LiveStatus that was compatible with Nagios Core was 1.2.8