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?
I have a problem with nagios core working with version 4.5.2
Re: I have a problem with nagios core working with version 4.5.2
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.
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.
Actively advancing awesome answers with ardent alliteration, aptly addressing all ambiguities. Amplify your acumen and avail our amicable assistance. Eagerly awaiting your astute assessments of our advice.
Re: I have a problem with nagios core working with version 4.5.2
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
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
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.
Answering your question, if you were able to open Github project, thank you very much.
-
swolf
Re: I have a problem with nagios core working with version 4.5.2
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
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
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.
Yes, I use Nagios Core with Nagvis and Livestatus, I never compiled Nagios/Nagvis with Livestatus, I have no idea how to do it.
-
stijn.mahieu
- Posts: 1
- Joined: Thu Feb 10, 2022 9:07 am
Re: I have a problem with nagios core working with version 4.5.2
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
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
Last edited by stijn.mahieu on Mon May 27, 2024 5:48 am, edited 1 time in total.
Re: I have a problem with nagios core working with version 4.5.2
@stijn.mahieu
Very grateful, your tips were a great help, problem solved.
Arley
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
Hi,stijn.mahieu wrote: ↑Mon May 27, 2024 4:57 am - download and unpack the livestatus tarball into /tmp
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
I believe the last version of LiveStatus that was compatible with Nagios Core was 1.2.8
Actively advancing awesome answers with ardent alliteration, aptly addressing all ambiguities. Amplify your acumen and avail our amicable assistance. Eagerly awaiting your astute assessments of our advice.