aboutsummaryrefslogtreecommitdiff
path: root/modules/private/monitoring/conf/contacts.cfg
blob: e088f69b21b4e5a9c6ed717434057577dedfe0ac (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                          ismael@bouya.org
# }
# 
# 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
# }