Mail alert not working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
inderraw
Posts: 61
Joined: Fri Apr 26, 2013 1:40 am
Location: India (Delhi)
Contact:

Mail alert not working

Post by inderraw »

Dear Team,

I have configured , but not getting mail notification, when i click on send test mail, getting following error.

A test email was sent to [email protected]
----
Mailer said: Could not instantiate mail function. (method=sendmail)
An error occurred sending a test email!


Regards
Inder Singh Rawat.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Mail alert not working

Post by abrist »

Are you running one of our VMs, or was this a source install? If it was a source install, what version of centos/rhel?
What is the output of:

Code: Select all

ls -la /etc/alternatives/mta
which sendmail
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.
inderraw
Posts: 61
Joined: Fri Apr 26, 2013 1:40 am
Location: India (Delhi)
Contact:

Re: Mail alert not working

Post by inderraw »

Dear Team,

Please find enclosed, after running command.

Regards
Inder Singh Rawat.
You do not have the required permissions to view the files attached to this post.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Mail alert not working

Post by abrist »

abrist wrote:Are you running one of our VMs, or was this a source install? If it was a source install, what version of centos/rhel?
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.
inderraw
Posts: 61
Joined: Fri Apr 26, 2013 1:40 am
Location: India (Delhi)
Contact:

Re: Mail alert not working

Post by inderraw »

Dear All,

Version is CentOS release 5.7 (Final).

Regards
Inder Singh Rawat
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Mail alert not working

Post by abrist »

You may need to install sendmail:

Code: Select all

yum install sendmail
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.
inderraw
Posts: 61
Joined: Fri Apr 26, 2013 1:40 am
Location: India (Delhi)
Contact:

Re: Mail alert not working

Post by inderraw »

Dear Team,

I have install sendmail, using following command.

yum install sendmail

now what next?

Regards
Inder Singh Rawat
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Mail alert not working

Post by abrist »

Code: Select all

ls -la /etc/alternatives/mta
which sendmail
Do notifications work now?
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.
inderraw
Posts: 61
Joined: Fri Apr 26, 2013 1:40 am
Location: India (Delhi)
Contact:

Re: Mail alert not working

Post by inderraw »

Dear Team,

now when i do click on send test mail, it is showing" message send sucessfully", but i am not getting mail.

Regards
Inder Singh Rawat
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Mail alert not working

Post by sreinhardt »

Cool thanks for letting us know
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked