I have a problem with nagios core working with version 4.5.2

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Post Reply
arley
Posts: 5
Joined: Thu May 16, 2024 3:29 pm

I have a problem with nagios core working with version 4.5.2

Post 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?
bbahn
Posts: 380
Joined: Thu Jan 12, 2023 5:42 pm

Re: I have a problem with nagios core working with version 4.5.2

Post 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.
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.
arley
Posts: 5
Joined: Thu May 16, 2024 3:29 pm

Re: I have a problem with nagios core working with version 4.5.2

Post 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
arley
Posts: 5
Joined: Thu May 16, 2024 3:29 pm

Re: I have a problem with nagios core working with version 4.5.2

Post 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.
swolf

Re: I have a problem with nagios core working with version 4.5.2

Post 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
arley
Posts: 5
Joined: Thu May 16, 2024 3:29 pm

Re: I have a problem with nagios core working with version 4.5.2

Post 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.
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

Post 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
Last edited by stijn.mahieu on Mon May 27, 2024 5:48 am, edited 1 time in total.
arley
Posts: 5
Joined: Thu May 16, 2024 3:29 pm

Re: I have a problem with nagios core working with version 4.5.2

Post by arley »

@stijn.mahieu
Very grateful, your tips were a great help, problem solved.
Arley
izghitu
Posts: 13
Joined: Wed Nov 02, 2016 3:01 pm

Re: I have a problem with nagios core working with version 4.5.2

Post 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
bbahn
Posts: 380
Joined: Thu Jan 12, 2023 5:42 pm

Re: I have a problem with nagios core working with version 4.5.2

Post by bbahn »

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.
Post Reply