Page 1 of 1

Acknowledge from an email

Posted: Fri Mar 06, 2015 9:59 am
by ukboarder
Hi All,

I have been looking at auto logging alerts into our call logging system, this has the capability to respond with an email so I am wondering if there is
a good solution you have found or been using to do this.

I have found a few posts which date back a few years that used the procmailrc to write to the nagios.cmd file but wondered if you have got something newer
or more recent that would do this.

I believe that banditBBS found one way here http://support.nagios.com/forum/viewtop ... 16&t=12085
but I want to avoid using gmail to do this

Another forum post that you guys helped with suggested this worked pretty well.

http://www.opsview.com/forum/opsview-co ... tification

But again this was even longer ago.

Is there any better way?

We are using the latest NagiosXI installation on a CentOS 5

Thanks
Nick

Re: Acknowledge from an email

Posted: Fri Mar 06, 2015 11:41 am
by abrist
ukboarder wrote:this has the capability to respond with an email so I am wondering if there is
a good solution you have found or been using to do this
Well, to do this from email requires configuring the nagios server to accept the mail and then building rules to run when the mail is accepted - this type of mod can range from "custom" to "crazy".
If your software supports running a curl or wget, you could just post an ack command to the command.cgi.

Re: Acknowledge from an email

Posted: Fri Mar 06, 2015 11:44 am
by BanditBBS
Look up "NagMailAck" which works great. If you use Exchange and require NTLM authentication I created a fork of it that works with NTLM.

Using nagmailack you dont have to use gmail. You can have your system send the email wherever you want and have nagmailack connect and do what is needed.

Re: Acknowledge from an email

Posted: Fri Mar 06, 2015 12:45 pm
by cmerchant
Thanks Banditt for the suggestion. I'll post for the convenience of the reader the link to the exchange:

http://exchange.nagios.org/directory/Ut ... rk/details

Re: Acknowledge from an email

Posted: Mon Mar 09, 2015 9:26 am
by ukboarder
Hi BanditBBS,

I did look through your original email and your exchange links but I thought you needed to use gmail which wouldn't have been usable for us.

If it is possible to use it with any email that uses IMAP I will take another look

Thanks
Nick

Re: Acknowledge from an email

Posted: Mon Mar 09, 2015 10:22 am
by BanditBBS
I don't use it anymore(I've changed jobs) but the original may be the one you want to use, I think it is the IMAP one and can use any, it just lists google as example. I changed it to use NTLM auth for exchange, that is basiclaly all I changed, maybe a tweak here or there, but no change to overall functionality. So if using exchange, use mine, any ldap server, use the original.

Re: Acknowledge from an email

Posted: Mon Mar 09, 2015 1:20 pm
by abrist
@OP - Let us know if Bandit's suggestions worked for you.
@Bandit - As always, thanks for the help!

Re: Acknowledge from an email

Posted: Tue Mar 10, 2015 5:19 am
by ukboarder
Hi,

We are hoping to look at this on Friday so I will let you know how I get on.

Thanks

Re: Acknowledge from an email

Posted: Tue Mar 10, 2015 9:15 am
by cmerchant
I will keep this thread open. Keep us updated.