Solved

Adding power state alarms to vm clients

Posted on 2010-09-13
13
716 Views
Last Modified: 2012-05-10
Hi All,

Have been given the task of looking after our virtual servers / clients. problem i am facing is trying to set an alarm that will tell me when the vm machine has shut down for example. There are pre-defined alarms within the "host" that can do this but I want alarms set for the individual clients themselves. When I try creating such a new alarm with a trigger of VM State for example it gives me the condition of "equal to" and "not equal to" and then there is the Warning category which gives me "Powered on" Powered Off" "Suspended" and "None" Then finally the alerts which are the same as the Warning categories. The problem i have is when I try setting one to say a warning of Powered Off and then choose a category of Powered Off it just reverts to Powered On? I basically need it running so that if a VM machine shuts down out of hours then I will be notified via email - I can set the email options etc just not the actual alarm itself so Im obviously doing this wrong - can anyone help!!!!
0
Comment
Question by:speedwellJet
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
  • 2
  • +1
13 Comments
 
LVL 4

Accepted Solution

by:
mail2vijay1982 earned 250 total points
ID: 33663328
0
 

Author Comment

by:speedwellJet
ID: 33663373
hi there - thanks for the speedy response but I looked at this earlier and couldnt really understnad it - I just want an alarm setting that emails me if the vm machine shuts down but i dont think it can be down can it?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 3

Assisted Solution

by:BijuMenon
BijuMenon earned 250 total points
ID: 33663550
1) Go to Home ->vCenter Server Settings - Configure SMTP and sender email address.
2) Search for a VM and Right Click on it a select Alarm -> Add Alarm
3) Under General tab, Select Monitor as Virtual Machine and select "Monitor for specific events occuring on this object"
4) Enable this Alarm
5) Under Triggers Tab -> Select "VM Powered Off"
6) Under Actions Tab Select action as "Send a notification email"
7) Configuration with your email address. Yellow to Red tab "Once" and Click OK.

You should receive an email now.
0
 
LVL 3

Expert Comment

by:BijuMenon
ID: 33663581
1) Go to Home ->vCenter Server Settings - Configure SMTP (exchange server name like excg01.hp.com)and sender email address (this can be vmware@yourdomain.com not necessary to be an existing one).
2) Search for a VM and Right Click on it a select Alarm -> Add Alarm
3) Under General tab, Select Monitor as Virtual Machine and select "Monitor for specific events occuring on this object"
4) Enable this Alarm
5) Under Triggers Tab -> Select "VM Powered Off"
6) Under Actions Tab Select action as "Send a notification email"
7) Configuration with your email address. Yellow to Red tab "Once" and Click OK.

You should receive an email now.
0
 

Author Comment

by:speedwellJet
ID: 33663779
okay have set up that alrm and it indeed does put a red icon on the vm - when i shut down the machine howver no email is generated - I have looked in the alarm setup and it does say under "Triggers" that there are "Advanced settings are associated with this trigger" so i click on "ConditionS but this is blank - does it need something in here??
0
 
LVL 3

Expert Comment

by:BijuMenon
ID: 33663816
Triggers -> Advanced settings can be blank. If the red alert is generated and you have configured the SMTP settings correctly then you should have received an email.
0
 

Author Comment

by:speedwellJet
ID: 33663844
perhaps there is an issue with the smtp setup then as no mail is coming through. It may be worth noting that I had to point it to a simple SMTP relay that I have setup as I cannot point it to our exchange server due to restrictions placed on it bythe network manager
0
 
LVL 3

Expert Comment

by:BijuMenon
ID: 33664090
Are you able to send test email via your SMTP relay?
0
 
LVL 63

Expert Comment

by:SysExpert
ID: 33664266
Test email with command line BLAT program to see if you can send via the relay.

I hope this helps !

0
 
LVL 63

Expert Comment

by:SysExpert
ID: 33664271
* Blat ................... http://www.blat.net/

0
 

Author Comment

by:speedwellJet
ID: 33777940
Hi all, sincere apologies for the delayed response - was away on hols!

Okay so have managed to set up alarms, it seems it was an issue with our internal smtp as mail was not being routed on port 25 - we have had to set the port to 2525 and this seems to work.

One thing that is stillpuzzling me however is the actual alarm state - if i switch off the VM it sure enough pings me an email BUT the alarm is set to repeat every 5 minutes, Im only getting the one alarm ??
0
 

Author Closing Comment

by:speedwellJet
ID: 33806110
have split the point between two of you as both your answers were helpful in sorting this
0

Featured Post

Create the perfect environment for any meeting

You might have a modern environment with all sorts of high-tech equipment, but what makes it worthwhile is how you seamlessly bring together the presentation with audio, video and lighting. The ATEN Control System provides integrated control and system automation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
This video shows you how to use a vSphere client to connect to your ESX host as the root user. Demonstrates the basic connection of bypassing certification set up. Demonstrates how to access the traditional view to begin managing your virtual mac…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question