From ae7dfdf9670068eb8fa1955969084cd03fbcd3c4 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 6 Apr 2003 13:30:00 +0000 Subject: First attempt on structured netsaint organisation. --- netsaint/COMMON.cfg | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 netsaint/COMMON.cfg (limited to 'netsaint/COMMON.cfg') 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[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[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[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[]=; +# +contactgroup[homebase]=Homebase Administrators;anderskr,jones +contactgroup[redpill]=Jones Administrators;jones -- cgit v1.2.3