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