Inbound mail Acknowledge message not completed

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Fred Kroeger
Posts: 588
Joined: Wed Oct 19, 2011 11:36 pm
Location: Perth, Western Australia
Contact:

Inbound mail Acknowledge message not completed

Post by Fred Kroeger »

Hi , I've setup the Inbound Message on NagiosXI 5.6.3 .
When I get a Problem Notification, I reply with the word ack in the body. When I check Nagios, I can see that the problem has been acknowledged as expected.
However, the Acknowledgement email I receive back doesn't have any of the fields completed. See below. Is there something else that I need to setup?
Not sure if it's relevant, but the message starts off with "host problem" instead of "service problem".

Also, Nagios reports that it has been acknowledged by the Nagios Administrator and not the actual user that replied.

Code: Select all

This host problem has been acknowledged by Nagios Administrator with a comment of '

Notification Type: ACKNOWLEDGEMENT

Service: %service%
Host: %host%
Address: %hostaddress%
State: %servicestate%
Info:
%serviceoutput%
Date/Time: 04/07/2019 11:44:16
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Inbound mail Acknowledge message not completed

Post by lmiltchev »

You maybe having more than one issue here.
However, the Acknowledgement email I receive back doesn't have any of the fields completed. See below. Is there something else that I need to setup?
Not sure if it's relevant, but the message starts off with "host problem" instead of "service problem".
We need to see the configs for the contact, and the notification commands he/she is using. Most probably, this is caused by a misconfiguration. Do macros resolve for other users? What happens when you acknowledge a problem as nagiosadmin? Do you see a "service problem" in the mail as expected or you still see a "host problem"?
Also, Nagios reports that it has been acknowledged by the Nagios Administrator and not the actual user that replied.
Is nagiosadmin and the contact use the same email? I believe nagios grabs the first user with the email that comes in and uses it.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Fred Kroeger
Posts: 588
Joined: Wed Oct 19, 2011 11:36 pm
Location: Perth, Western Australia
Contact:

Re: Inbound mail Acknowledge message not completed

Post by Fred Kroeger »

Emails are being sent to my account - I have notifications enabled and the default command is used for Hosts & Services - xi_host_notification_handler & xi_service_notification_handler.

Notifications are sent to a contact group of which I am a member. The original Service Alert email is received OK with all the macros resolved OK. It is just the Acknowledgement email that doesn't resolve the macros. Currently the emails are only being sent to myself.

Looking at the Notification Options in my User account in Nagios -
Notification Preferences - Enable notifications is ticked
Notofications Method - Receive alerts via email is ticked
Notification Messages for Hosts & services is the default format

Yes you are correct - the nagiosadmin user has the same email address as myself so that could be why the wrong username appears.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Inbound mail Acknowledge message not completed

Post by lmiltchev »

Notifications are sent to a contact group of which I am a member. The original Service Alert email is received OK with all the macros resolved OK. It is just the Acknowledgement email that doesn't resolve the macros. Currently the emails are only being sent to myself.
Go to the CCM > Contacts, click on the View config actions button, and show the configs of the nagiosadmin and your user. Obfuscate sensitive info, e.g. emails.
Yes you are correct - the nagiosadmin user has the same email address as myself so that could be why the wrong username appears.
Try using different emails for the nagiosadmin and your user to see if this is going to resolve the issue.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Fred Kroeger
Posts: 588
Joined: Wed Oct 19, 2011 11:36 pm
Location: Perth, Western Australia
Contact:

Re: Inbound mail Acknowledge message not completed

Post by Fred Kroeger »

Changed the nagiosadmin email address and the problem is solved. The Acknowledgement Email now arrives with all the macros resolved correctly & the Ack/Comment message for the service now shows me as having acknowledged the alert.

I have now discovered another problem with alert emails but will open a separate post for this.
You can close this one & thanks for pointing me in the right direction. However you may want to consider improving this mechanism as I have always configured the nagiosadmin email account to point to my own email address. I really don't want to have to check another mailbox for the nagiosadmin user
Regards.... Fred
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Inbound mail Acknowledge message not completed

Post by lmiltchev »

Changed the nagiosadmin email address and the problem is solved. The Acknowledgement Email now arrives with all the macros resolved correctly & the Ack/Comment message for the service now shows me as having acknowledged the alert.
I am glad I could help! :)
You can close this one & thanks for pointing me in the right direction. However you may want to consider improving this mechanism as I have always configured the nagiosadmin email account to point to my own email address. I really don't want to have to check another mailbox for the nagiosadmin user
You make a good point here. I will file a feature request for improving this functionality.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked