summaryrefslogtreecommitdiff
path: root/netsaint/COMMON.cfg
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2003-04-06 13:30:00 +0000
committerJonas Smedegaard <dr@jones.dk>2003-04-06 13:30:00 +0000
commitae7dfdf9670068eb8fa1955969084cd03fbcd3c4 (patch)
treeb1018a38b4bfc12241a10ab7b6800746424985aa /netsaint/COMMON.cfg
parent14aead0d8924a0ea5e423c7bc4f16366e7152b9f (diff)
First attempt on structured netsaint organisation.
Diffstat (limited to 'netsaint/COMMON.cfg')
-rw-r--r--netsaint/COMMON.cfg34
1 files changed, 34 insertions, 0 deletions
diff --git a/netsaint/COMMON.cfg b/netsaint/COMMON.cfg
new file mode 100644
index 0000000..8c629a8
--- /dev/null
+++ b/netsaint/COMMON.cfg
@@ -0,0 +1,34 @@
+# timeperiod[<timeperiod_name>]=<timeperiod_alias>;<sun_timeranges>;
+# <mon_timeranges>;<tue_timeranges>;
+# <wed_timeranges>;<thu_timeranges>;
+# <fri_timeranges>;<sat_timeranges>
+#
+timeperiod[24x7]=24 Hours A Day, 7 Days A Week;00:00-24:00;00:00-24:00;00:00-24:00;00:00-24:00;00:00-24:00;00:00-24:00;00:00-24:00
+timeperiod[workhours]="Normal" Working Hours;;09:00-17:00;09:00-17:00;09:00-17:00;09:00-17:00;09:00-17:00;
+timeperiod[nonworkhours]=Non-Work Hours;00:00-24:00;00:00-09:00,17:00-24:00;00:00-09:00,17:00-24:00;00:00-09:00,17:00-24:00;00:00-09:00,17:00-24:00;00:00-09:00,17:00-24:00;00:00-24:00
+timeperiod[none]=No Time Is A Good Time;;;;;;;
+
+
+# command[<command_name>]=<command_line>
+#
+command[notify-by-email]=/bin/echo -e '***** NetSaint 0.0.6 *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional Info:\n\n$OUTPUT$' | /usr/bin/mail -s '** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **' $CONTACTEMAIL$
+command[notify-by-epager]=/bin/echo -e "Service: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: $OUTPUT$\nDate: $DATETIME$" | /usr/bin/mail -s '$NOTIFICATIONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$' $CONTACTPAGER$
+command[host-notify-by-email]=/bin/echo -e "***** NetSaint 0.0.6 *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $OUTPUT$\n\nDate/Time: $DATETIME$\n" | /usr/bin/mail -s 'Host $HOSTSTATE$ alert for $HOSTNAME$!' $CONTACTEMAIL$
+command[host-notify-by-epager]=/bin/echo -e "Host '$HOSTALIAS$' is $HOSTSTATE$\nInfo: $OUTPUT$\nTime: $DATETIME$" | /usr/bin/mail -s '$NOTIFICATIONTYPE$ alert - Host $HOSTNAME$ is $HOSTSTATE$' $CONTACTPAGER$
+
+command[check_ping_slow]=/usr/lib/nagios/plugins/check_ping -H $HOSTADDRESS$ -w 500:20% -c 3000:100%
+
+# contact[<contact_name>]=<contact_alias>;<svc_notification_period>;
+# <host_notification_period>;<notify_service_recovery>;
+# <notify_service_critical>;<notify_service_warning>;
+# <notify_host_recovery>;<notify_host_down>;
+# <notify_host_unreachable>;<service_notify_commands>;
+# <host_notify_commands>;<email_address>;<pager>
+#
+contact[jones]=Root;24x7;24x7;1;1;0;1;1;1;notify-by-email,notify-by-epager;host-notify-by-email,host-notify-by-epager;jonas@bitbase.dk;
+contact[anderskr]=Root;24x7;24x7;1;1;0;1;1;1;notify-by-email,notify-by-epager;host-notify-by-email,host-notify-by-epager;anderskr@homebase.dk;
+
+# contactgroup[<group_name>]=<group_alias>;<contacts>
+#
+contactgroup[homebase]=Homebase Administrators;anderskr,jones
+contactgroup[redpill]=Jones Administrators;jones