Bobcares

For every $500 you spend, we will provide you with a $500 credit on your account*

BLACK FRIDAY SPECIAL

*The maximum is $4000 in credits, Offer valid till November 30th, 2024, New Customers Only, Credit will be applied after purchase and expires after six (6) months

For every $500 you spend, we will provide you with a $500 credit on your account*

BLACK FRIDAY SPECIAL

*The maximum is $4000 in credits, Offer valid till November 30th, 2024, New Customers Only, Credit will be applied after purchase and expires after six (6) months

Segmentation fault in Nagios – How to resolve

by | Mar 26, 2021

Wondering how to fix the segmentation fault in Nagios? We can help you.

A segmentation fault (segfault) is a common condition that causes programs to crash. Often they are caused by a program trying to read or write an illegal memory location. In Nagios XI versions 5.4.0 and 5.4.1, there was a bug in the Nagios Core version that lead to a segmentation fault in some systems.

Here at Bobcares, we often get requests from our customers to fix these segmentation faults in their Nagios as a part of our Server Management Services.

Today let’s see how our Support Engineers fix this issue for our customers.

How to fix Segmentation fault in Nagios

Segfault occurs when a program attempts to access memory that is either not been assigned to it by the operating system, or not allowed to access.

Before going into the steps to fix this issue we will see what causes it.

Typical causes of a segmentation fault:

The following are  some of the typical causes of a segmentation fault:

1. Attempting to access a nonexistent memory address (outside process's address space)

2. Attempting to access memory the program does not have rights to (such as kernel structures in process context)

3. Attempting to write read-only memory (such as code segment)

Following are the steps to fix this issue

Firstly, we will take a backup before making any changes so that we can revert it if something goes wrong.

For creating a backup of Nagios XI system from the command line, open a terminal or SSH session and log into Nagios XI server as the root user.

We can create a backup of Nagios XI installation by running the following script:

/usr/local/nagiosxi/scripts/backup_xi.sh

A successful backup will complete with the following message:

===============
BACKUP COMPLETE
===============

Backup is stored in /store/backups/nagiosxi/1479858443.tar.gz

This will fix the bug in the Nagios core version. After that, we can run the following commands to fix the segfault issue on a running 5.4.0 or 5.4.1 system.

We can download the file “ndoutils_segfault_patched.tar.gz” from the URL given below:

https://support.nagios.com/kb/file.php?id=30

Finally, we need to transfer this file to the Nagios XI server and run the following commands from the directory containing the patch:

# service nagios stop
# killall -9 nagios
# service ndo2db stop
# service mysqld restart
# for i in `ipcs -q | grep nagios |awk '{print $2}'`; do ipcrm -q $i; done
# tar zxf ndoutils_segfault_patched.tar.gz
# cd ndoutils_segfault_patched
# ./upgrade

[Need Assistance? We are available 24*7]

Conclusion

To conclude we saw how our Support Engineers fix the Segmentation fault in Nagios for our customers.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF