summaryrefslogtreecommitdiff
path: root/src/pmieconf/global
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2014-10-26 12:33:50 +0400
committerIgor Pashev <pashev.igor@gmail.com>2014-10-26 12:33:50 +0400
commit47e6e7c84f008a53061e661f31ae96629bc694ef (patch)
tree648a07f3b5b9d67ce19b0fd72e8caa1175c98f1a /src/pmieconf/global
downloadpcp-debian.tar.gz
Debian 3.9.10debian/3.9.10debian
Diffstat (limited to 'src/pmieconf/global')
-rw-r--r--src/pmieconf/global/enln_actions42
-rw-r--r--src/pmieconf/global/localdefs7
-rw-r--r--src/pmieconf/global/ov_actions53
-rw-r--r--src/pmieconf/global/parameters35
-rw-r--r--src/pmieconf/global/pcp_actions89
-rw-r--r--src/pmieconf/global/tngfw_actions45
-rw-r--r--src/pmieconf/global/web_parameters35
7 files changed, 306 insertions, 0 deletions
diff --git a/src/pmieconf/global/enln_actions b/src/pmieconf/global/enln_actions
new file mode 100644
index 0000000..4d48bd1
--- /dev/null
+++ b/src/pmieconf/global/enln_actions
@@ -0,0 +1,42 @@
+#pmieconf-rules 1
+# --- DO NOT MODIFY THIS FILE --- see pmieconf(4)
+#
+
+shell global.enln_action
+ enabled = no
+ default = "$enln_bin$/EventsCli -q -s '$enln_severity$' -S N/A -T N/A -n 'pmie/$enln_test$ - $rule$' -h '%h' -v '%v' -u '$enln_units$'"
+ help =
+"Provides a mechanism for sending local pmie-generated events into
+the local Enlighten DSM management framework.
+This action requires the \"EventsCli\" program which is part of the
+Enlighten DSM framework (refer to the enln_bin variable description
+also).";
+
+string global.enln_bin
+ default = "/opt/enlighten/bin"
+ help =
+"The full path to the Enlighten DSM \"EventsCli\" program, which is used
+to propagate external events into the Enlighten DSM Framework.";
+
+unsigned global.enln_severity
+ default = 2
+ display = no
+ help =
+"The severity is a number between a low of 1 and a high of 5 (1=OK,
+2=Informational, 3=Warning, 4=Error, 5=Severe). The default value is 2.";
+
+string global.enln_test
+ default = "Unknown"
+ display = no
+ help =
+"The brief name of the pmie event being sent to Enlighten DSM, typically
+the name of an individual rule.";
+
+string global.enln_units
+ default = "N/A"
+ display = no
+ help =
+"The units value specifies the unit of measure for the value measured.";
+
+#
+# --- DO NOT MODIFY THIS FILE --- see pmieconf(4)
diff --git a/src/pmieconf/global/localdefs b/src/pmieconf/global/localdefs
new file mode 100644
index 0000000..cbebc2c
--- /dev/null
+++ b/src/pmieconf/global/localdefs
@@ -0,0 +1,7 @@
+ALL_RULES = enln_actions tngfw_actions parameters ov_actions pcp_actions
+
+LOCAL_RULES = $(ALL_RULES)
+
+ifneq ($(TARGET_OS), irix)
+LOCAL_RULES = parameters pcp_actions
+endif
diff --git a/src/pmieconf/global/ov_actions b/src/pmieconf/global/ov_actions
new file mode 100644
index 0000000..dc0652d
--- /dev/null
+++ b/src/pmieconf/global/ov_actions
@@ -0,0 +1,53 @@
+#pmieconf-rules 1
+# --- DO NOT MODIFY THIS FILE --- see pmieconf(4)
+#
+
+shell global.ov_action
+ enabled = no
+ default = "OID=.1.3.6.1.4.1.11.2.17; export OID; $ov_bin$/ovevent -c '$ov_category$' -s '$ov_severity$' '$ov_node$' ^\\\\${OID}.1.0.58916872 \\\\${OID}.2.1.0 Integer 0 \\\\${OID}.2.2.0 OctetString '%h' \\\\${OID}.2.4.0 OctetString '$rule$^ $action_expand$^'"
+ # 4 backquotes gives a shell variable - '$' is a special character
+ # to pmieconf, pmie, and the shell - so need to backquote it up the
+ # whazoo to get this to come out right!
+ #
+ help =
+"The HP OpenView Network Node Manager event subsystem on ov_node will
+receive an OV_Message event when the rule condition is true.
+This action requires the ovevent(1) program which is part of the HP
+OpenView package (refer to the ov_bin variable description also).";
+
+string global.ov_bin
+ default = "/opt/OV/bin"
+ help =
+"The full path to the HP OpenView ovevent(1) program, which is used to
+propagate external events into the OpenView framework.";
+
+string global.ov_node
+ default = ""
+ help =
+"The node on which the HP OpenView pmd(1M) daemon is running, which
+will reliably broadcast the pmie event to all interested HP OpenView
+processes.
+The node can be either an Internet address or host name (see hosts(4)),
+and is usually the local host except when run from a management console
+(client host). An empty string is equivalent to the local host.";
+
+string global.ov_severity
+ default = "Warning"
+ display = no
+ help =
+"Severity with which an event will be reported to the HP OpenView node
+manager on ov_node. Valid values are \"Critical\", \"Major\", \"Minor\",
+\"Warning\" and \"Normal\".";
+
+string global.ov_category
+ default = "Threshold Events"
+ display = no
+ help =
+"Category with which an event will be reported to the HP OpenView node
+manager on ov_node. The category must be one of the existing event
+categories; the default categories defined in trapd.conf(4) are:
+\"IGNORE\", \"LOGONLY\", \"Error Events\", \"Threshold Events\", \"Status
+Events\", \"Configuration Events\", and \"Application Alert Events\".";
+
+#
+# --- DO NOT MODIFY THIS FILE --- see pmieconf(4)
diff --git a/src/pmieconf/global/parameters b/src/pmieconf/global/parameters
new file mode 100644
index 0000000..38b16c7
--- /dev/null
+++ b/src/pmieconf/global/parameters
@@ -0,0 +1,35 @@
+#pmieconf-rules 1
+# --- DO NOT MODIFY THIS FILE --- see pmieconf(4)
+#
+
+# variable definitions applicable to all rules
+# (unless overridden at the level of an individual rule or group)
+#
+
+string global.delta
+ default = "2 min"
+ help =
+"Sample interval between evaluations of this rule. Default units
+are seconds and common units are \"second\", \"sec\", \"minute\",
+\"min\" and \"hour\".";
+
+string global.holdoff
+ default = "10 min"
+ help =
+"Once the predicate is true and the action is executed, this
+variable allows suppression of further action execution until the
+specified interval has elapsed. A value of zero enables execution
+of the action if the rule predicate is true at the next sample.
+Default units are seconds and common units are \"second\", \"sec\",
+\"minute\", \"min\" and \"hour\".";
+
+hostlist global.hosts
+ default = ""
+ help =
+"May be set to a list of host names for which the rules will be
+evaluated. Multiple hostnames should be separated by white space.
+If the list is empty, the host will be the host named in the -h
+option to pmie(1) if specified, else the local host.";
+
+#
+# --- DO NOT MODIFY THIS FILE --- see pmieconf(4)
diff --git a/src/pmieconf/global/pcp_actions b/src/pmieconf/global/pcp_actions
new file mode 100644
index 0000000..104543c
--- /dev/null
+++ b/src/pmieconf/global/pcp_actions
@@ -0,0 +1,89 @@
+#pmieconf-rules 1
+# --- DO NOT MODIFY THIS FILE --- see pmieconf(4)
+#
+
+# action definitions applicable to all rules follow
+#
+# o $rule$ defined locally & contains the "message" to be propagated
+#
+# o $*_expand$ often overridden locally & contains the part of the
+# action string which is rule-semantics specific and will be expanded
+# possibly multiple times on truthful evaluation of the predicate to
+# contain values/instances/hosts which matched,e.g:
+# "%v@%h" might expand to "1.1@moomba 1.7@rattle 4.5@wobbly" if all
+# the rule is true for all of the hosts moomba, rattle and wobbly.
+#
+# some common alternatives:
+# %i@%h (inst@host)
+# %h (host)
+# %v[%i]@%h (value:inst@host)
+# %v%@%h (value%@host)
+#
+
+string global.action_expand
+ display = no
+ modify = no
+ default = "%v@%h"; # (value@host)
+
+string global.email_expand
+ display = no
+ modify = no
+ default = "%v@%h"; # (value@host)
+
+
+shell global.user_action
+ enabled = no
+ default = "$user_command$"
+ help =
+"Execute \"user_command\" when the rule condition is true";
+
+string global.user_command
+ default = "echo $rule$^ $action_expand$"
+ help =
+"Shell (sh(1)) command line to execute when rule condition is true
+and \"user_action\" is enabled.";
+
+
+shell global.email_action
+ enabled = no
+ default = "pmie_email '$email_recipients$|$rule$^|$email_expand$^'"
+ help =
+"A mail message will be sent to \"email_recipients\" when the rule
+condition is true.";
+
+string global.email_recipients
+ default = "root"
+ help =
+"Space separated list of e-mail addresses for notification from the
+\"email_action\" when it is enabled";
+
+
+shell global.pcplog_action
+ enabled = no
+ default = "pmpost pmie: $rule$^ $action_expand$"
+ help =
+"The PCP notices file $PCP_LOG_DIR/NOTICES will be updated when
+the rule condition is true.";
+
+
+syslog global.syslog_action
+ enabled = yes
+ default = "$syslog_prefix$$rule$^ $action_expand$"
+ help =
+"The system log file (usually /var/log/messages) will be updated
+when the rule condition is true.";
+
+string global.syslog_prefix
+ display = no
+ modify = no
+ default = "";
+
+# for SGI Embedded Support Partner integration, use:
+# $ pmieconf modify global syslog_prefix '$esp_prefix$'
+string global.esp_prefix
+ display = no
+ modify = no
+ default = "|\\\\$($esp_type$)";
+
+#
+# --- DO NOT MODIFY THIS FILE --- see pmieconf(4)
diff --git a/src/pmieconf/global/tngfw_actions b/src/pmieconf/global/tngfw_actions
new file mode 100644
index 0000000..36ade07
--- /dev/null
+++ b/src/pmieconf/global/tngfw_actions
@@ -0,0 +1,45 @@
+#pmieconf-rules 1
+# --- DO NOT MODIFY THIS FILE --- see pmieconf(4)
+#
+
+shell global.tngfw_action
+ enabled = no
+ default = "$tngfw_bin$/cawto -n '$tngfw_node$' -c '$tngfw_color$' -g $tngfw_category$ -s `/usr/bsd/hostname` '$rule$^ $action_expand$^'"
+ help =
+"The CA Unicenter TNG console node at tngfw_node will be notified when
+the rule condition is true.
+This action requires the \"cawto\" program which is part of the CA
+Unicenter TNG Framework (refer to the tngfw_bin variable description
+also).";
+
+string global.tngfw_bin
+ default = "/usr/TNGFW/bin"
+ help =
+"The full path to the TNG Framework \"cawto\" program, which is used to
+propagate external events into the Unicenter TNG Framework.";
+
+string global.tngfw_node
+ default = ""
+ help =
+"The node on which the CA Unicenter TNG monitoring software is running.
+The node can be either an Internet address or host name (see hosts(4)),
+and is usually the local host. An empty string is equivalent to the
+local host.";
+
+string global.tngfw_color
+ default = "default"
+ display = no
+ help =
+"The color that the CA Unicenter TNG event console on tngfw_node will
+use to display the event message string. Valid values are \"default\",
+\"Red\", \"Orange\", \"yellow\", \"green\", \"blue\", \"pink\" or \"purple\".";
+
+string global.tngfw_category
+ default = "Performance"
+ display = no
+ help =
+"The category with which the CA Unicenter TNG event console on
+tngfw_node will associate each event.";
+
+#
+# --- DO NOT MODIFY THIS FILE --- see pmieconf(4)
diff --git a/src/pmieconf/global/web_parameters b/src/pmieconf/global/web_parameters
new file mode 100644
index 0000000..1d4482d
--- /dev/null
+++ b/src/pmieconf/global/web_parameters
@@ -0,0 +1,35 @@
+#pmieconf-rules 1
+# --- DO NOT MODIFY THIS FILE --- see pmieconf(4)
+#
+
+instlist global.webservers
+ default = ""
+ help =
+"List of web server names over which the rules will be evaluated.
+Multiple server names should be separated by white space, e.g.
+ \"ncsa-gonzo 'ftpd'\"
+To discover the names of the available web servers, execute the
+following command on the target host:
+ $ pminfo -f web.perserver.requests.total
+the double-quoted instance names are the web server names.
+If the list is empty, all web servers on the target host will be
+checked.";
+
+instlist global.urls
+ default = ""
+ help =
+"May be set to a list of URLs names to limit those which the rules
+will be evaluated, as a subset of those used by the webping agent.
+Each URL should be in the form used by the webping agent, be enclosed
+in single quotes, and multiple entries separated by white space, e.g.
+'GET_http://boing/index.html' 'GET_http://far.away.com/planning.html'
+
+To discover the names of the available webping URLs, execute the
+following command on the target host:
+ $ pminfo -f webping.perurl.kbytes
+the (double) quoted instance names are the required URLs.
+
+If the list is empty, all webping URLs will be checked.";
+
+#
+# --- DO NOT MODIFY THIS FILE --- see pmieconf(4)