aboutsummaryrefslogtreecommitdiff
path: root/modules/private/monitoring/conf/contacts.cfg
blob: b6ea84d2d087e13fc2bbc06cd70e803231d61eb1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# vim: filetype=nagios

# CONTACT GROUPS
define contactgroup {
  contactgroup_name              admins
  alias                          Naemon Administrators
#  members                        immae
}

# No contact, we go through master
# define contact {
#   contact_name                   immae
#   alias                          Immae
#   use                            generic-contact
#   email                          xxxxxxxxxxxxxxxx
# }
# 
# define contact {
#   name                           generic-contact
#   host_notification_commands     notify-host-by-email
#   host_notification_options      d,u,r,f,s
#   host_notification_period       24x7
#   register                       0
#   service_notification_commands  notify-service-by-email
#   service_notification_options   w,u,c,r,f,s
#   service_notification_period    24x7
# }
# 
# define command {
#   command_name                   notify-host-by-email
#   command_line                   SERVICENOTIFICATIONID="$SERVICENOTIFICATIONID$" HOSTSTATE="$HOSTSTATE$" HOSTOUTPUT="$HOSTOUTPUT$" $USER2$/notify_by_email host "$NOTIFICATIONTYPE$" "$HOSTALIAS$" "$LONGDATETIME$" "$CONTACTEMAIL$" $OVE
# #$OVE is to force naemon to run via shell instead of execve which fails here
# }
# 
# # 'notify-service-by-email' command definition
# define command {
#   command_name                   notify-service-by-email
#   command_line                   SERVICENOTIFICATIONID="$SERVICENOTIFICATIONID$" SERVICEDESC="$SERVICEDESC$" SERVICESTATE="$SERVICESTATE$" SERVICEOUTPUT="$SERVICEOUTPUT$" $USER2$/notify_by_email service "$NOTIFICATIONTYPE$" "$HOSTALIAS$" "$LONGDATETIME$" "$CONTACTEMAIL$" $OVE
# #  command_line                   sudo /usr/bin/strace -o /tmp/foo -vf -s 256 -u naemon $USER2$/notify_by_email
# #$OVE is to force naemon to run via shell instead of execve which fails here
# }