Sent mail to Nagios for alert to trigger

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
anil4u_04
Posts: 17
Joined: Tue Sep 24, 2013 5:28 am

Sent mail to Nagios for alert to trigger

Post by anil4u_04 »

HI All,

I am new for nagios , I have a requirement like , if we send a mail to Nagios server, Nagios should show the alert.

Is there any way to do that.

I couldn't find in the net. Is there any way to do that. Please suggest.

Thanks in Advance.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Sent mail to Nagios for alert to trigger

Post by slansing »

What do you mean by this? Nagios is not an exchange or email handler.
anil4u_04
Posts: 17
Joined: Tue Sep 24, 2013 5:28 am

Re: Sent mail to Nagios for alert to trigger

Post by anil4u_04 »

@slansing , Thank you so much for your reply. If i understand correctly. Nagios will not alert if i send a mail to Nagios server, since it is not a exchange or email handler. Is that correct..? Please clarify. Thanks again.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Sent mail to Nagios for alert to trigger

Post by abrist »

It sound like you want to send an email to the nagios server as an event driven alert, is that correct?
If so, there may not be a built in way to handle this, as by default, the email configuration on core system is set to only send, not receive email. You would need to set up postfix on the nagios server and then script a cron job to:
1. check the mailbox for mail that meets certain criteria
2. then submit a passive result through the command pipe or through a passive agent to generate an alert.
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.
anil4u_04
Posts: 17
Joined: Tue Sep 24, 2013 5:28 am

Re: Sent mail to Nagios for alert to trigger

Post by anil4u_04 »

HI abrist,

That is what exactly what i need. thank a lot for giving the idea what we can do to achieve the requirement. Thanks again :)
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Sent mail to Nagios for alert to trigger

Post by slansing »

Let us know if you have further questions on this.
Locked