HP (Hewlett-Packard) HP OpenView Vantagepoint – Operation Manual for UNIX Printer User Manual


 
Syntax Used in VPO Configuration Files
Configuration Files for Monitors
Appendix A 289
Example of a VPO Monitor Template
The following text shows the definition of a monitor for which the VPO
intelligent agent calls a program every 10 minutes to determine disk
usage.
# ---------------------------------------------------------------
# Template: disk_util
# ---------------------------------------------------------------
SYNTAX_VERSION 2
MONITOR “disk_util”
DESCRIPTION “Monitor disk space utilization on root disk”
INTERVAL “10m”
MONPROG “disk_mon.sh disk_util”
THRESHOLD 90.000000
RESET 85.000000
MAXTHRESHOLD
GEN_BELOW_RESET
SEVERITY Warning
APPLICATION “
VPO
MSGGRP “OS”
OBJECT “root_disk”
TEXT “Utilization of root disk (<$VALUE>%) is greater than
<$THRESHOLD>%.”
AUTOACTION “ana_disk.sh” ANNOTATE
HELPTEXT “Available space on the device holding the / (root)
filesystem is less than the configured threshold. This may lead to
problems for applications running on the affected system requesting
large amounts of storage space. Also, performance penalties might
be encountered.”
# end of disk_util
The program or script disk_mon.sh must contain a command or function
call such as:
opcmon “disk_util={$RETRIEVED_VALUE}”
or
opcmon (object, value)
to pass on the current value of the monitored objects to the VPO Monitor
Agent (opcmona).