IT Operations Management (ITOM)
Showing results for 
Search instead for 
Do you mean 

How to make vPV send out email notifications

Ramkumar Devanathan ‎02-06-2015 12:15 AM - edited ‎02-08-2016 11:51 AM

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


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.

- (modified)

- (a script that sends out emails using mailx)

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


Copy over the modified and scripts to /opt/OV/lbin/PV folder.


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




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
/opt/OV/bin/ovconfchg -ns monitoring -set SendTo

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 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. :)




About the Author

Ramkumar Devanathan

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.

June 6 - 8, 2017
Las Vegas, Nevada
Discover 2017 Las Vegas
Join us for HPE Discover 2017 in Las Vegas. The event will be held at the Venetian | Palazzo from June 6-8, 2017.
Read more
Apr 18, 2017
Houston, TX
HPE Tech Days - 2017
Follow a group of tech bloggers for a new HPE Tech Day, a full day of sessions about how to create a hybrid IT, from hyperconverged to Composable Infr...
Read more
View all
//Add this to "OnDomLoad" event