summaryrefslogtreecommitdiff
path: root/netsaint/COMMON.cfg
blob: 8c629a82bfff0709c5248afc7fc7f1f0c79cb49a (plain)
  1. # timeperiod[<timeperiod_name>]=<timeperiod_alias>;<sun_timeranges>;
  2. # <mon_timeranges>;<tue_timeranges>;
  3. # <wed_timeranges>;<thu_timeranges>;
  4. # <fri_timeranges>;<sat_timeranges>
  5. #
  6. 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
  7. 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;
  8. 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
  9. timeperiod[none]=No Time Is A Good Time;;;;;;;
  10. # command[<command_name>]=<command_line>
  11. #
  12. 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$
  13. 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$
  14. 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$
  15. 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$
  16. command[check_ping_slow]=/usr/lib/nagios/plugins/check_ping -H $HOSTADDRESS$ -w 500:20% -c 3000:100%
  17. # contact[<contact_name>]=<contact_alias>;<svc_notification_period>;
  18. # <host_notification_period>;<notify_service_recovery>;
  19. # <notify_service_critical>;<notify_service_warning>;
  20. # <notify_host_recovery>;<notify_host_down>;
  21. # <notify_host_unreachable>;<service_notify_commands>;
  22. # <host_notify_commands>;<email_address>;<pager>
  23. #
  24. 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;
  25. 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;
  26. # contactgroup[<group_name>]=<group_alias>;<contacts>
  27. #
  28. contactgroup[homebase]=Homebase Administrators;anderskr,jones
  29. contactgroup[redpill]=Jones Administrators;jones