ChrisLopes
Contributor
Contributor

Failed to received Notification email

Hi,

I have configure the email notiifcation at the Host & Cluster folder to test CPU. I send the CPU threshold to as low as possible to test the alarm.

What is wrong with the configuration?

Thanks

0 Kudos
7 Replies
Craig_Baltzer
Expert
Expert

In "Alarm Settings" did you also go into the "Actions" tab, add a "Send a notification email" action and put your email address in the "value" field?

If that's all configured correctly then its possible that your SMTP server (10.102.8.18) is not configured to accept connections from your VC host or something is blocking port 25 outbound on your VC host (try doing a "telnet 10.102.8.18 25" and see if you get an SMTP greeting banner). The SMTP server may also not accept mail where the sender is blank so try putting an email address in the "Sender Account" field (I have mine set to )

0 Kudos
ChrisLopes
Contributor
Contributor

Hi,

I have configure the notification email. I can see the banner

Does able to telne port 25 means it allow relay for alarm to send out email?

Thanks

0 Kudos
Craig_Baltzer
Expert
Expert

No it still may have a relay restriction that is preventing the email from being sent. So assuming

  • Your email address is chris@company.com

  • You've set the "Sender Account" to vmware-alerts@company.com

  • Your VC server is called vc.company.com

You can try the following from your VC server:

telnet 10.102.8.18.25

Once the SMTP banner appears type everything between the lines below (starting with the "HELO" line and including the blank lines). The end of the message is a single period (.) on a line by itself. You should get status messages back after the HELO, MAIL FROM, RCPT TO and DATA lines. Then you'll be just typing "blind" until you hit the period on a line by itself at which point you should get another status message back. If there are relay restrictions or some other problem you'll see an error when you enter the RCPT TO line. If it works you should get a piece of mail in your mailbox...

-


HELO vc.company.com

MAIL FROM: <vmware-alerts@company.com>

RCPT TO: <chris@company.com>

DATA

FROM: <vmware-alerts@company.com>

TO: <chris@company.com>

SUBJECT: VMware Alert - Sample message

This is a sample alert

.

-----

ChrisLopes
Contributor
Contributor

Yes, I received the email. Thus SMTP is okie.

In the VC, is the sender account compulsory?

I put the sender acocunt,l can received the email.

0 Kudos
Craig_Baltzer
Expert
Expert

I'm not sure if Sender Account is required in VC or its the mail server that's requiring it. If you want to find out for sure repeat the test again but this time instead of

MAIL FROM: <vmware-alerts@company.com>

replace that line with

MAIL FROM: <>

and see if you still receive the mail. If you do then its VC that can't deal with a blank Sender Account. If you don't receive the mail then its the mail server that can't deal with a blank Sender...

0 Kudos
Texiwill
Leadership
Leadership

Hello,

Moved to VI: VirtualCenter 2.x forum


Best regards,

Edward L. Haletky

VMware Communities User Moderator

====

Author of the book 'VMWare ESX Server in the Enterprise: Planning and Securing Virtualization Servers', Copyright 2008 Pearson Education.

CIO Virtualization Blog: http://www.cio.com/blog/index/topic/168354

As well as the Virtualization Wiki at http://www.astroarch.com/wiki/index.php/Virtualization

--
Edward L. Haletky
vExpert XIV: 2009-2022,
VMTN Community Moderator
vSphere Upgrade Saga: https://www.astroarch.com/blogs
GitHub Repo: https://github.com/Texiwill
0 Kudos
Craig_Baltzer
Expert
Expert

Arrg, stupid forum software is editing the post on me. The new line should be "MAIL FROM: &lt;&gt;"

0 Kudos