IT Operations Management (ITOM)
cancel
Showing results for 
Search instead for 
Did you mean: 

How to make vPV send out email notifications

How to make vPV send out email notifications

Ramkumar Devana

I suppose many of you are aware of HP Virtual Performance Viewer (vPV) - it is a cool UI tool for viewing and diagnosing problems in your virtual and cloud environments.  You can download and try it out free here.

  

vPV supports an integration with HP Operations Manager and HP OMi, which raises events in these monitoring tools. These events convey information about performance, configuration, and capacity problems in the virtual environments. The alerts are raised on statistical, and time-based analysis of the performance counters collected by vPV.

 

For instance here's a couple of sample events from vPV -

Virtual machine <name blocked out> is oversized by Memory configuration Reason: MemBalloonUsed[223]> 0 and MemActive[916.0] < MemHeadRoom[20]% of Memory Configured on VM[16384.0] 


Virtual machine - <name blocked out> observed an abnormal high rate of IO(s) per second <...>

 

Each of these events comes with additional details such as the metric counter values, the set and calculated thresholds, as well as launchable web-links leading to more details and reports within the vPV UI pages.

 

Yep, so how exactly do we make vPV send out emails? You guessed right, we use the ready-made script available at HP Live Network to achieve this. Note that this is community supported.

 

First of all a brief look at vPV's monitoring architecture ==>

vPV ships a python script that does the event generation. This python script obtains the thresholds and rules from a file. When there's a need, opcmsg events are generated, dispatched via a HP Operations Agent running in the vPV system.

 

It is this python script that we will modify. To start with, take a backup of the script before you hack your way through to sending out email.

 

# cd /opt/OV/lbin/PV/
# cp -p pvmonutils.py pvmonutils.py.original

 

This is the content from HP Live Network (HP LN) -

vPV 2.01 - Email integration

vPV 2.10 - Email integration

 

Take the appropriate zip file from HP LN (no registration required) and transfer it to your vPV system. Expand it to get these three files.

- pvmonutils.py (modified)

- notify.sh (a script that sends out emails using mailx)

- monitoring.xplconf (sample xpl config entries for reference)

 

Copy over the modified pvmonutils.py and notify.sh scripts to /opt/OV/lbin/PV folder.

 

Now add the following settings (with your custom values) to the 'monitoring' namespace in xpl config.

 

SendEmail=true
SendFrom=vpvadmin@vpvserver.xyz.com
SendTo=email@xyz.com 

 

You would use ovconfchg to set the values. For example -

/opt/OV/bin/ovconfchg -ns monitoring -set SendEmail true
/opt/OV/bin/ovconfchg -ns monitoring -set SendFrom vpvadmin@vpvserver.xyz.com
/opt/OV/bin/ovconfchg -ns monitoring -set SendTo ItsMe@xyz.com

That's it - you are all set.

 

Now you will start receiving notifications via email. If you are finding that too many emails are coming through, reduce the sensitivity of the vPV alerting module, using the ChangeAlertSensitivity.py script. Refer to the vPV help pages for the details.

 

NOTE: this feature relies on a working email configuration - ensure that the email sent out from the vPV system does actually go out. Work with your unix/linux admin to get that sorted out. Also ensure that your email client does not filter the vPV emails as junk.

 

Here's a screenshot showing emails I have received from vPV, just to prove that this works. :)

 

 

 

HPE Software Rocks!
  • infrastructure management
About the Author

Ramkumar Devana

Ramkumar Devanathan (twitter: @rdevanathan) is Product Manager for HPE Cloud Optimizer (formerly vPV). He was previously a member of the IOM-Customer Assist Team (CAT) providing technical assistance to HP Software pre-sales and support teams with Operations Management products including vPV, SHO, VISPI. He has experience of more than 14 years in this product line, working in various roles ranging from developer to product architect.

//Add this to "OnDomLoad" event