Event Manager Issue in Nagios XI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
kenneth59
Posts: 35
Joined: Tue Apr 16, 2024 10:03 pm

Event Manager Issue in Nagios XI

Post by kenneth59 »

Hi All,

I’m currently encountering an issue on my Nagios XI server where the Event Manager shows a critical status. After some investigation, I came across this post:
viewtopic.php?t=23010

I followed the steps mentioned in the post and restarted the crond service, but the eventman process still doesn’t appear when I run the command:

Code: Select all

ps -aef | grep eventman

This behavior is similar to what was described in the post.

I also checked the cron file and log outputs. The cron file looks as follows:

Code: Select all

cat /etc/cron.d/nagiosxi
0   7 * * * root   /root/scripts/automysqlbackup
0   7 * * * root   /root/scripts/autopostgresqlbackup > /dev/null 2>&1

*   * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php >> /usr/local/nagiosxi/var/sysstat.log 2>&1
*   * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php >> /usr/local/nagiosxi/var/cmdsubsys.log 2>&1
*   * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php >> /usr/local/nagiosxi/var/eventman.log 2>&1
*   * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/event_handler.php >> /usr/local/nagiosxi/var/event_handler.log 2>&1
*   * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php >> /usr/local/nagiosxi/var/feedproc.log 2>&1
*   * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php >> /usr/local/nagiosxi/var/perfdataproc.log 2>&1
*   * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/nom.php >> /usr/local/nagiosxi/var/nom.log 2>&1
*   * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php >> /usr/local/nagiosxi/var/reportengine.log 2>&1
*/5 * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/dbmaint.php >> /usr/local/nagiosxi/var/dbmaint.log 2>&1
*   * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php >> /usr/local/nagiosxi/var/cleaner.log 2>&1
01  * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/recurring_downtime.php >> /usr/local/nagiosxi/var/recurringdowntime.log 2>&1
*       * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/snmptt_service_results.php >> /usr/local/nagiosxi/var/snmptt_service_results.log 2>&1
*   * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/deadpool.php >> /usr/local/nagiosxi/var/deadpool.log 2>&1
However, the output of /var/log/cron looks slightly different from the post:

Code: Select all

tail -25 /var/log/cron
Dec  5 16:28:02 nagios01 CROND[4156]: (root) MAIL (mailed 95 bytes of output but got status 0x007f#012)
Dec  5 16:28:02 nagios01 CROND[4157]: (root) MAIL (mailed 93 bytes of output but got status 0x007f#012)
Dec  5 16:28:03 nagios01 CROND[4150]: (root) MAIL (mailed 201948 bytes of output but got status 0x007f#012)
Dec  5 16:28:03 nagios01 CROND[4155]: (root) MAIL (mailed 106120 bytes of output but got status 0x007f#012)
After running the following command, the output was similar to what’s described in the post:

Code: Select all

tail -f /usr/local/nagiosxi/var/eventman.log

Date/Time: 2024-12-05 16:30:03

Respond: http://10.110.44.33/nagiosxi/rr.php?oid=171&token=153672d876ceee9fa74a4fe518c1d26997de6ec9
Nagios URL: http://10.110.44.33/nagiosxi/

    [plaintext] =>
)


PHP Fatal error:  Call to undefined function mb_convert_encoding() in /usr/local/nagiosxi/html/includes/utils-email.inc.php on line 81

I also verified that the mbstring package is installed:

Code: Select all

rpm -qa | grep mbstring
php-mbstring-5.3.3-50.el6_10.x86_64
Do you have any additional suggestions or steps to resolve this issue?
sgardil
Posts: 272
Joined: Wed Aug 09, 2023 9:58 am

Re: Event Manager Issue in Nagios XI

Post by sgardil »

Hey @kenneth59

What distribution are you currently on and what version of XI? You're package version is suggesting that it is very old, php 5.3 and rhel 6 (or other rhel based distros). If that doesnt sound like the correct php version and distrobution then you may need to update your php-mbstring package to match your current environment. Let us know if this helps. Like always take a snapshot before altering the packages.
kenneth59
Posts: 35
Joined: Tue Apr 16, 2024 10:03 pm

Re: Event Manager Issue in Nagios XI

Post by kenneth59 »

Hi sgardil,

Thank you for your quick response. From my understanding, this server was previously upgraded and is currently running on RHEL 7.9 with XI 5.8.6. It seems that I need to upgrade the php-mbstring package. Do you happen to know if I only need to update this package, or if there are additional dependencies for php-mbstring that also need to be updated?
User avatar
jmichaelson
Posts: 265
Joined: Wed Aug 23, 2023 1:02 pm

Re: Event Manager Issue in Nagios XI

Post by jmichaelson »

Hi @kenenth59,

if you run yum install php-mbstring, yum will give you a list of packages it intends to install and give you the option to opt out of it.

Given that you're running an old version of Nagios XI on top of a version of RHEL that went out of support 6 months or so ago, I'd encourage you to consider upgrading to the latest Nagios XI, and then migrating it to a new server running a newer distribution of Linux.
Please let us know if you have any other questions or concerns.

-Jason
Post Reply