]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - modules/private/monitoring/conf/contacts.cfg
Add monitoring modules via naemon
[perso/Immae/Config/Nix.git] / modules / private / monitoring / conf / contacts.cfg
diff --git a/modules/private/monitoring/conf/contacts.cfg b/modules/private/monitoring/conf/contacts.cfg
new file mode 100644 (file)
index 0000000..e088f69
--- /dev/null
@@ -0,0 +1,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
+# }