Inbound Email Configuration problem

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
stf_792
Posts: 48
Joined: Fri Jul 17, 2015 12:55 pm

Re: Inbound Email Configuration problem

Post by stf_792 »

It sort of working.

Inbound configuration did not change FROM address automatically as promised :) , no big deal, I changed it sending configuration to match.

I simulated failure and got email with

Code: Select all

---- Respond above this line ----

***** Nagios XI Alert *****

Nagios has detected a problem with this service.
I typed ack and reply.

Shortly I got message saying

Code: Select all

Missing response command. Did you send a valid command?

Valid commands: https://assets.nagios.com/downloads/nagiosxi/docs/Inbound-Email-Commands-for-Nagios-XI.pdf

- Nagios XI System
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Inbound Email Configuration problem

Post by tgriep »

If the reply with the ack message is not sent as text, it will not be recognized as the html code in the reply caused the command to fail.
This is a known issue and should be fixed in the next release if XI.

If you edit this file

Code: Select all

/usr/local/nagiosxi/html/includes/components/xicore/xicore.inc.php
and add this line

Code: Select all

$line = strip_tags($line);
Under line 600 like this

Code: Select all

// Verify if line is empty and continue
                $line = trim($msg_lines[$x]);                            <== line 600
                $line = strip_tags($line);
                $line = strtolower(str_replace(' ', '', $line));
                if (empty($line)) {
That will strip out the html code so the command will be recognized.
Be sure to check out our Knowledgebase for helpful articles and solutions!
stf_792
Posts: 48
Joined: Fri Jul 17, 2015 12:55 pm

Re: Inbound Email Configuration problem

Post by stf_792 »

That did the trick - everything is working now.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Inbound Email Configuration problem

Post by scottwilkerson »

stf_792 wrote:That did the trick - everything is working now.
Great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked