Acknowledge from an email

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ukboarder
Posts: 19
Joined: Wed Oct 15, 2014 11:28 am
Location: England

Acknowledge from an email

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Acknowledge from an email

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Acknowledge from an email

Post 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.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
cmerchant
Posts: 546
Joined: Wed Sep 24, 2014 11:19 am

Re: Acknowledge from an email

Post 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
ukboarder
Posts: 19
Joined: Wed Oct 15, 2014 11:28 am
Location: England

Re: Acknowledge from an email

Post 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
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Acknowledge from an email

Post 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.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Acknowledge from an email

Post by abrist »

@OP - Let us know if Bandit's suggestions worked for you.
@Bandit - As always, thanks for the help!
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
ukboarder
Posts: 19
Joined: Wed Oct 15, 2014 11:28 am
Location: England

Re: Acknowledge from an email

Post by ukboarder »

Hi,

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

Thanks
cmerchant
Posts: 546
Joined: Wed Sep 24, 2014 11:19 am

Re: Acknowledge from an email

Post by cmerchant »

I will keep this thread open. Keep us updated.
Locked