xybal
Enthusiast
Enthusiast

Sending mail from ESX

Jump to solution

Hi,

All is in the subject, Is it possible to send a mail from an ESX node, and if yes, how can I do that ?

Thx

0 Kudos
1 Solution

Accepted Solutions
mlubinski
Expert
Expert

Well I must admit, that my previous reply was too fast. only vc4 has this datastore alarm. With 3.x version you must probably use scripts to make this. you can combine email scripts (from this thread) with command vdf -h command (that shows free space)

If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points

[I]If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points[/I]

View solution in original post

0 Kudos
9 Replies
krowczynski
Virtuoso
Virtuoso

FIrst you must configure you vcenter to acces your smtp server.

And email can be sende e.g. by triggered alarms, or what you want o do with it?

MCP, VCP

MCP, VCP3 , VCP4
mlubinski
Expert
Expert

If you want to send directly from ESX, then here is one solution send emails from esx console

If you want to send emails from vCenter, then do as user krowczynski says.

If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points

[I]If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points[/I]
xybal
Enthusiast
Enthusiast

Thx for this help,

Can you precise me how to use triggers and how to do that because I've never used them ?

Thx

0 Kudos
mlubinski
Expert
Expert

Well it depends what you want to monitor. If you want to monitor host connection state (if it goes with disconnected) then on folder/cluster Alarm page set correct alarm (right click->new alarm->host connection state). If you want to define datastore alarms, then also choose correct ones, the same for VMs (like heartbeat - if they have vmtools installed)

If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points

[I]If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points[/I]
0 Kudos
xybal
Enthusiast
Enthusiast

Yes what I want to do is sending a mail if for ie my datastores are above 90% usage.

How can I exactly do that. ?

thx

0 Kudos
mlubinski
Expert
Expert

Well In ESX 3.5 you can't do this by default. Maybe with some scripts there would be such option. In vSphere (vCenter4) there is Datastore alarm to use.

If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points

[I]If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points[/I]
0 Kudos
xybal
Enthusiast
Enthusiast

Sorry but I'm still under ESX 3.02

0 Kudos
xybal
Enthusiast
Enthusiast

Is someone got a solution for this version ?

0 Kudos
mlubinski
Expert
Expert

Well I must admit, that my previous reply was too fast. only vc4 has this datastore alarm. With 3.x version you must probably use scripts to make this. you can combine email scripts (from this thread) with command vdf -h command (that shows free space)

If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points

[I]If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points[/I]

View solution in original post

0 Kudos