Project

General

Profile

Add Contact » History » Version 1

chin-yeh, 09/13/2010 09:39 AM

1 1 chin-yeh
h1. Add Contact
2
3
All of the contacts should be grouped under the following contact groups:
4
* warning-group - receives notification for *warning*, unknown, critical, recovery, flapping, scheduled downtime
5
* critical-group - receives notification for unknown, critical, recovery, flapping, scheduled downtime
6
7
# login to Nagios server using @nagios@ user
8
# edit @/usr/local/nagios/etc/ecosway/contacts/contacts.cfg@
9
<pre>
10
nagios$ vi /usr/local/nagios/etc/ecosway/contacts/contacts.cfg
11
</pre>
12
* Template:
13
<pre>
14
define contact{
15
        contact_name                    an unique contact name
16
        use                             either warning-contact or critical-contact
17
        alias                           put the description here
18
        email                           put the email here
19
        pager                           put the Google Talk ID here
20
        }
21
</pre>
22
* Example:
23
<pre>
24
define contact{
25
        contact_name                    warning-user
26
        use                             warning-contact
27
        alias                           Test User for Warning Notification
28
        email                           ecosway.nagios.warning@gmail.com
29
        pager                           ecosway.nagios.warning
30
        }
31
</pre>
32
<pre>
33
define contact{
34
        contact_name                    critical-user
35
        use                             critical-contact
36
        alias                           Test User for Critical Notification
37
        email                           ecosway.nagios.critical@gmail.com
38
        pager                           ecosway.nagios.critical
39
        }
40
</pre>
41
42
# assign the newly created user to the specified group by editing
43
<pre>
44
nagios$ vi /usr/local/nagios/etc/ecosway/contacts/contact_groups.cfg
45
</pre>
46
* Template:
47
<pre>
48
define contactgroup{
49
        contactgroup_name               warning-group
50
        alias                           Warning Group
51
        members                         put the newly created user's contact name here
52
        }
53
54
define contactgroup{
55
        contactgroup_name               critical-group
56
        alias                           Critical Group
57
        members                         put the newly created user's contact name here
58
        }
59
</pre>
60
* Example:
61
<pre>
62
define contactgroup{
63
        contactgroup_name               warning-group
64
        alias                           Warning Group
65
        members                         warning-user
66
        }
67
68
define contactgroup{
69
        contactgroup_name               critical-group
70
        alias                           Critical Group
71
        members                         critical-user
72
        }
73
</pre>