Solved

Adding power state alarms to vm clients

Posted on 2010-09-13
13
715 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
 
LVL 4

Expert Comment

by:mail2vijay1982
ID: 33663332
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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
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

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!

Question has a verified solution.

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

Suggested Solutions

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

738 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