Page 1 of 1
no longer able to email reply to nagios alerts
Posted: Tue Feb 25, 2025 2:39 pm
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?
Re: no longer able to email reply to nagios alerts
Posted: Tue Feb 25, 2025 5:07 pm
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!
Re: no longer able to email reply to nagios alerts
Posted: Tue Feb 25, 2025 9:55 pm
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
Re: no longer able to email reply to nagios alerts
Posted: Wed Feb 26, 2025 12:42 pm
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
Re: no longer able to email reply to nagios alerts
Posted: Fri Feb 28, 2025 10:29 am
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.
Re: no longer able to email reply to nagios alerts
Posted: Fri Feb 28, 2025 3:46 pm
by JohnFLi
sounds good..... anything i can do to help test that?
Re: no longer able to email reply to nagios alerts
Posted: Mon Mar 03, 2025 5:48 pm
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
Re: no longer able to email reply to nagios alerts
Posted: Thu Mar 06, 2025 7:10 pm
by JohnFLi
I updated to the latest version
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
Re: no longer able to email reply to nagios alerts
Posted: Thu Mar 06, 2025 7:12 pm
by JohnFLi
yes Jason, you can nick that one