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> 0 and MemActive[916.0] < MemHeadRoom% 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) -
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. :)
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.