xref: /titanic_51/usr/src/cmd/fm/notify/notify-params.xml (revision f6e214c7418f43af38bd8c3a557e3d0a1d311cfa)
1*f6e214c7SGavin Maltby<?xml version="1.0"?>
2*f6e214c7SGavin Maltby<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3*f6e214c7SGavin Maltby<!--
4*f6e214c7SGavin Maltby Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
5*f6e214c7SGavin Maltby
6*f6e214c7SGavin Maltby CDDL HEADER START
7*f6e214c7SGavin Maltby
8*f6e214c7SGavin Maltby The contents of this file are subject to the terms of the
9*f6e214c7SGavin Maltby Common Development and Distribution License (the "License").
10*f6e214c7SGavin Maltby You may not use this file except in compliance with the License.
11*f6e214c7SGavin Maltby
12*f6e214c7SGavin Maltby You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
13*f6e214c7SGavin Maltby or http://www.opensolaris.org/os/licensing.
14*f6e214c7SGavin Maltby See the License for the specific language governing permissions
15*f6e214c7SGavin Maltby and limitations under the License.
16*f6e214c7SGavin Maltby
17*f6e214c7SGavin Maltby When distributing Covered Code, include this CDDL HEADER in each
18*f6e214c7SGavin Maltby file and include the License file at usr/src/OPENSOLARIS.LICENSE.
19*f6e214c7SGavin Maltby If applicable, add the following below this CDDL HEADER, with the
20*f6e214c7SGavin Maltby fields enclosed by brackets "[]" replaced with your own identifying
21*f6e214c7SGavin Maltby information: Portions Copyright [yyyy] [name of copyright owner]
22*f6e214c7SGavin Maltby
23*f6e214c7SGavin Maltby CDDL HEADER END
24*f6e214c7SGavin Maltby
25*f6e214c7SGavin Maltby	NOTE:  This service manifest is not editable; its contents will
26*f6e214c7SGavin Maltby	be overwritten by package or patch operations, including
27*f6e214c7SGavin Maltby	operating system upgrade.  Make customizations in a different
28*f6e214c7SGavin Maltby	file.
29*f6e214c7SGavin Maltby-->
30*f6e214c7SGavin Maltby
31*f6e214c7SGavin Maltby<service_bundle type='manifest' name='SUNWckr:notify-params'>
32*f6e214c7SGavin Maltby
33*f6e214c7SGavin Maltby<service
34*f6e214c7SGavin Maltby	name='system/fm/notify-params'
35*f6e214c7SGavin Maltby	type='service'
36*f6e214c7SGavin Maltby	version='1'>
37*f6e214c7SGavin Maltby
38*f6e214c7SGavin Maltby	<!--
39*f6e214c7SGavin Maltby	  Fault Manager notification parameters
40*f6e214c7SGavin Maltby	-->
41*f6e214c7SGavin Maltby
42*f6e214c7SGavin Maltby	<exec_method
43*f6e214c7SGavin Maltby	    type='method'
44*f6e214c7SGavin Maltby	    name='start'
45*f6e214c7SGavin Maltby	    exec=':true'
46*f6e214c7SGavin Maltby	    timeout_seconds='0' />
47*f6e214c7SGavin Maltby
48*f6e214c7SGavin Maltby	<exec_method
49*f6e214c7SGavin Maltby	    type='method'
50*f6e214c7SGavin Maltby	    name='stop'
51*f6e214c7SGavin Maltby	    exec=':true'
52*f6e214c7SGavin Maltby	    timeout_seconds='0' />
53*f6e214c7SGavin Maltby
54*f6e214c7SGavin Maltby	<!--
55*f6e214c7SGavin Maltby	    SMF property groups match the regex
56*f6e214c7SGavin Maltby	    ([A-Za-z][ A-Za-z0-9.-]*,)?[A-Za-z][ A-Za-z0-9-]*
57*f6e214c7SGavin Maltby	    swfma was added at the end to allow the class dotted names
58*f6e214c7SGavin Maltby	    The macro SCF_NOTIFY_PG_POSTFIX in libscf.h translates to "swfma"
59*f6e214c7SGavin Maltby	-->
60*f6e214c7SGavin Maltby
61*f6e214c7SGavin Maltby	<instance name='default' enabled='false'>
62*f6e214c7SGavin Maltby		<!--
63*f6e214c7SGavin Maltby		This sets the default notification preferences for FMA events
64*f6e214c7SGavin Maltby		which is to send an email to root and emit a console message via
65*f6e214c7SGavin Maltby		syslog for list.suspect events and to send an SNMP trap for
66*f6e214c7SGavin Maltby		list.suspect, list.repaired and list.resolved events.
67*f6e214c7SGavin Maltby		-->
68*f6e214c7SGavin Maltby
69*f6e214c7SGavin Maltby		<notification_parameters>
70*f6e214c7SGavin Maltby			<event value='problem-diagnosed' />
71*f6e214c7SGavin Maltby			<type name='smtp' active='true'>
72*f6e214c7SGavin Maltby				<paramval name='to' value='root@localhost' />
73*f6e214c7SGavin Maltby				<paramval name='reply-to'
74*f6e214c7SGavin Maltby				    value='root@localhost' />
75*f6e214c7SGavin Maltby			</type>
76*f6e214c7SGavin Maltby			<type name='snmp' active='true' />
77*f6e214c7SGavin Maltby			<type name='syslog' active='true' />
78*f6e214c7SGavin Maltby		</notification_parameters>
79*f6e214c7SGavin Maltby		<notification_parameters>
80*f6e214c7SGavin Maltby			<event value='problem-repaired,problem-resolved' />
81*f6e214c7SGavin Maltby			<type name='snmp' active='true' />
82*f6e214c7SGavin Maltby		</notification_parameters>
83*f6e214c7SGavin Maltby	</instance>
84*f6e214c7SGavin Maltby
85*f6e214c7SGavin Maltby	<stability value='Evolving' />
86*f6e214c7SGavin Maltby
87*f6e214c7SGavin Maltby	<template>
88*f6e214c7SGavin Maltby	    	<common_name>
89*f6e214c7SGavin Maltby		    	<loctext xml:lang='C'>
90*f6e214c7SGavin Maltby				Solaris Fault Manager notification parameters
91*f6e214c7SGavin Maltby			</loctext>
92*f6e214c7SGavin Maltby		</common_name>
93*f6e214c7SGavin Maltby
94*f6e214c7SGavin Maltby		<documentation>
95*f6e214c7SGavin Maltby		    	<manpage
96*f6e214c7SGavin Maltby			    title='smf'
97*f6e214c7SGavin Maltby			    section='5'
98*f6e214c7SGavin Maltby			    manpath='/usr/share/man' />
99*f6e214c7SGavin Maltby		</documentation>
100*f6e214c7SGavin Maltby	</template>
101*f6e214c7SGavin Maltby</service>
102*f6e214c7SGavin Maltby
103*f6e214c7SGavin Maltby</service_bundle>
104