no longer able to email reply to nagios alerts

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
User avatar
JohnFLi
Posts: 556
Joined: Mon Jun 17, 2013 3:11 pm

no longer able to email reply to nagios alerts

Post by JohnFLi »

Code: Select all

Latest Available Version:	2024R1.3.4
Installed Version:	2024R1.3.4
i recently upgrade the OS that I have XI running on. it was CENTOS7, and I made a new machine CENTOS9. Exported nagios from the old to teh new...did all that stuff. after working with Support to get a some issues fixed, i thought I was done.
JUST noticed this issue.

BEFORE, the end of the nagios alerts looked similar to

Code: Select all

Respond: http://nameofnagiosmachine/nagiosxi/rr.php?oid=9538&token=780da94aed87a72dd759d8f2c6078d5fb5b80bd3
Nagios URL: http://nameofnagiosmachine/nagiosxi/
-----
To reply, keep the following data in your response email.
##Zjc0MWRmZmUwNGMzNzNiN3BOV0djQXl3dHJ0Y0NmOXd6c3ROS0tJcjJmMmR1ZmhoRStaWEZPM1h6ZFhzZkxtMndhN3VORms0bWxoL1UrRVE=##
NOW:

Code: Select all

State: CRITICAL

Date/Time: Tue Feb 25 11:38:00 PST 2025

Additional Info:

CRITICAL: Used disk space was 29.10 % (Total: 69.40 GiB, Used: 20.21 GiB, Free: 49.19 GiB) 

so when i reply i get the response of:

Code: Select all

Could not submit command due to missing hash data. Did you reply with the full email?

- Nagios XI System
that tells me it is getting the emails..... it just seems that they are missing that piece for outbound.

any thoughts?
Everybody is somebody else’s weirdo
gwesterman
Posts: 258
Joined: Wed Aug 23, 2023 11:29 am

Re: no longer able to email reply to nagios alerts

Post by gwesterman »

Hi @JohnFli,

Is the "Enable incoming email processing" checkbox in your Email Settings (Admin -> System Config -> Email Settings) checked? If not, check that and see if you still run into the same issue.

Thank you!
User avatar
JohnFLi
Posts: 556
Joined: Mon Jun 17, 2013 3:11 pm

Re: no longer able to email reply to nagios alerts

Post by JohnFLi »

yes it is
email.jpg
Have an update:
for my Contact settings (i do not use AD for contacts) I cleared out the "Manage Host Notification Commands" and " Manage Service Notification Commands" and now, I get the hash included in the emai. (previously it was "notify-host-by-email" and "notify-service-by-email" I had also tried "notify-service-by-email-xi" and "notify-host-by-email-xi".
After removing them, i now get the hash in the email again.
"
email2.jpg
Nagios doesn't do anythign with it.....but it is no longer telling me

"Could not submit command due to missing hash data. Did you reply with the full email?

- Nagios XI System



ALSO

when i look into that mailbox that nagios monitors for getting email....I see the email come in....and then delete as Nagios process it.... It is getitng the emails, what log to I look at to see why it isn't doing anythign with it?

The only thing i am typing is

Ack
You do not have the required permissions to view the files attached to this post.
Everybody is somebody else’s weirdo
User avatar
JohnFLi
Posts: 556
Joined: Mon Jun 17, 2013 3:11 pm

Re: no longer able to email reply to nagios alerts

Post by JohnFLi »

i did just find this in /usr/local/nagiosxi/var/cleaner.log

Code: Select all

KEEPING ALL GOOD CHECKPOINTS
DIR: /usr/local/nagiosxi/nom/checkpoints/nagioscore/errors
NUMFOUND: 1
KEEPING ALL ERROR CHECKPOINTS
DIR: /usr/local/nagiosxi/nom/checkpoints/nagiosxi
NUMFOUND: 10
KEEPING ALL SNAPSHOTS
Wed, 26 Feb 2025 09:42:03 -0800 ----------------------------------
Wed, 26 Feb 2025 09:42:03 -0800 Running callbacks:
PHP Fatal error:  Uncaught Error: Call to undefined function mail_get_unseen_messages_oauth() in /usr/local/nagiosxi/html/includes/utils-email.inc.php:649
Stack trace:
#0 /usr/local/nagiosxi/html/includes/components/xicore/xicore.inc.php(538): mail_get_unseen_messages()
#1 /usr/local/nagiosxi/html/includes/utilsl.inc.php(0): process_incoming_mail()
#2 /usr/local/nagiosxi/cron/cleaner.php(50): do_callbacks()
#3 /usr/local/nagiosxi/cron/cleaner.php(15): do_cleaner_jobs()
#4 {main}
  thrown in /usr/local/nagiosxi/html/includes/utils-email.inc.php on line 649
no idea what to do with it
Everybody is somebody else’s weirdo
bbahn
Posts: 320
Joined: Thu Jan 12, 2023 5:42 pm

Re: no longer able to email reply to nagios alerts

Post by bbahn »

Hello @JohnFLi,

It seems that this occurred due to a series of network request failures in tandem with some insufficient checking causing the mail_inbound_legacy option to default to 0, causing XI to try to utilize some code that hadn't yet been implemented, leading to your issue. I have pushed some quick fixes into 2024R1.3.5 that should ensure that this doesn't happen again.
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.
User avatar
JohnFLi
Posts: 556
Joined: Mon Jun 17, 2013 3:11 pm

Re: no longer able to email reply to nagios alerts

Post by JohnFLi »

sounds good..... anything i can do to help test that?
Everybody is somebody else’s weirdo
User avatar
jmichaelson
Posts: 338
Joined: Wed Aug 23, 2023 1:02 pm

Re: no longer able to email reply to nagios alerts

Post by jmichaelson »

Hi @JohnFLi,

just curious if this is effectively the same question as this one and whether we can close that thread viewtopic.php?t=76143&sid=15768c37b88f1 ... 82ba181b71
Please let us know if you have any other questions or concerns.

-Jason
User avatar
JohnFLi
Posts: 556
Joined: Mon Jun 17, 2013 3:11 pm

Re: no longer able to email reply to nagios alerts

Post by JohnFLi »

I updated to the latest version

Code: Select all

	2024R1.4
and acknoledging via email still is not working. No response....ignores me.

I tested with a known bad response and it replies with

Code: Select all

Could not submit command due to missing hash data. Did you reply with the full email?

- Nagios XI System
so i know it's getting them
Everybody is somebody else’s weirdo
User avatar
JohnFLi
Posts: 556
Joined: Mon Jun 17, 2013 3:11 pm

Re: no longer able to email reply to nagios alerts

Post by JohnFLi »

jmichaelson wrote: Mon Mar 03, 2025 5:48 pm Hi @JohnFLi,

just curious if this is effectively the same question as this one and whether we can close that thread viewtopic.php?t=76143&sid=15768c37b88f1 ... 82ba181b71
yes Jason, you can nick that one
Everybody is somebody else’s weirdo
Post Reply