diff options
Diffstat (limited to 'package/icinga/src/etc/icinga/objects')
-rw-r--r-- | package/icinga/src/etc/icinga/objects/commands.cfg | 250 | ||||
-rw-r--r-- | package/icinga/src/etc/icinga/objects/contacts.cfg | 53 | ||||
-rw-r--r-- | package/icinga/src/etc/icinga/objects/localhost.cfg | 167 | ||||
-rw-r--r-- | package/icinga/src/etc/icinga/objects/notifications.cfg | 132 | ||||
-rw-r--r-- | package/icinga/src/etc/icinga/objects/printer.cfg | 83 | ||||
-rw-r--r-- | package/icinga/src/etc/icinga/objects/switch.cfg | 111 | ||||
-rw-r--r-- | package/icinga/src/etc/icinga/objects/templates.cfg | 188 | ||||
-rw-r--r-- | package/icinga/src/etc/icinga/objects/timeperiods.cfg | 92 | ||||
-rw-r--r-- | package/icinga/src/etc/icinga/objects/windows.cfg | 143 |
9 files changed, 0 insertions, 1219 deletions
diff --git a/package/icinga/src/etc/icinga/objects/commands.cfg b/package/icinga/src/etc/icinga/objects/commands.cfg deleted file mode 100644 index 5f29d7115..000000000 --- a/package/icinga/src/etc/icinga/objects/commands.cfg +++ /dev/null @@ -1,250 +0,0 @@ -############################################################################### -# COMMANDS.CFG - SAMPLE COMMAND DEFINITIONS FOR ICINGA -# -# NOTES: This config file provides you with some example command definitions -# that you can reference in host, service, and contact definitions. -# -# You don't need to keep commands in a separate file from your other -# object definitions. This has been done just to make things easier to -# understand. -# -############################################################################### - - -################################################################################ -# -# SAMPLE NOTIFICATION COMMANDS -# -# These are some example notification commands. They may or may not work on -# your system without modification. As an example, some systems will require -# you to use "/usr/bin/mailx" instead of "/usr/bin/mail" in the commands below. -# -################################################################################ - - -# 'notify-host-by-email' command definition -define command{ - command_name notify-host-by-email - command_line /usr/bin/printf "%b" "***** Icinga *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$ - } - -# 'notify-service-by-email' command definition -define command{ - command_name notify-service-by-email - command_line /usr/bin/printf "%b" "***** Icinga *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$\n" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ - } - - - - - -################################################################################ -# -# SAMPLE HOST CHECK COMMANDS -# -################################################################################ - - -# This command checks to see if a host is "alive" by pinging it -# The check must result in a 100% packet loss or 5 second (5000ms) round trip -# average time to produce a critical error. -# Note: Five ICMP echo packets are sent (determined by the '-p 5' argument) - -# 'check-host-alive' command definition -define command{ - command_name check-host-alive - command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 5 - } - - - - -################################################################################ -# -# SAMPLE SERVICE CHECK COMMANDS -# -# These are some example service check commands. They may or may not work on -# your system, as they must be modified for your plugins. See the HTML -# documentation on the plugins for examples of how to configure command definitions. -# -# NOTE: The following 'check_local_...' functions are designed to monitor -# various metrics on the host that Icinga is running on (i.e. this one). -################################################################################ - -# 'check_local_disk' command definition -#define command{ -# command_name check_local_disk -# command_line $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$ -# } - - -# 'check_local_load' command definition -define command{ - command_name check_local_load - command_line $USER1$/check_load -w $ARG1$ -c $ARG2$ - } - - -# 'check_local_procs' command definition -#define command{ -# command_name check_local_procs -# command_line $USER1$/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$ -# } - - -# 'check_local_users' command definition -define command{ - command_name check_local_users - command_line $USER1$/check_users -w $ARG1$ -c $ARG2$ - } - - -# 'check_local_swap' command definition -define command{ - command_name check_local_swap - command_line $USER1$/check_swap -w $ARG1$ -c $ARG2$ - } - - -# 'check_local_mrtgtraf' command definition -define command{ - command_name check_local_mrtgtraf - command_line $USER1$/check_mrtgtraf -F $ARG1$ -a $ARG2$ -w $ARG3$ -c $ARG4$ -e $ARG5$ - } - - -################################################################################ -# NOTE: The following 'check_...' commands are used to monitor services on -# both local and remote hosts. -################################################################################ - -# 'check_ftp' command definition -define command{ - command_name check_ftp - command_line $USER1$/check_ftp -H $HOSTADDRESS$ $ARG1$ - } - - -# 'check_hpjd' command definition -define command{ - command_name check_hpjd - command_line $USER1$/check_hpjd -H $HOSTADDRESS$ $ARG1$ - } - - -# 'check_snmp' command definition -define command{ - command_name check_snmp - command_line $USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$ - } - - -# 'check_http' command definition -define command{ - command_name check_http - command_line $USER1$/check_http -I $HOSTADDRESS$ $ARG1$ - } - - -# 'check_ssh' command definition -define command{ - command_name check_ssh - command_line $USER1$/check_ssh $ARG1$ $HOSTADDRESS$ - } - - -# 'check_dhcp' command definition -define command{ - command_name check_dhcp - command_line $USER1$/check_dhcp $ARG1$ - } - - -# 'check_ping' command definition -define command{ - command_name check_ping - command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5 - } - - -# 'check_pop' command definition -define command{ - command_name check_pop - command_line $USER1$/check_pop -H $HOSTADDRESS$ $ARG1$ - } - - -# 'check_imap' command definition -define command{ - command_name check_imap - command_line $USER1$/check_imap -H $HOSTADDRESS$ $ARG1$ - } - - -# 'check_smtp' command definition -define command{ - command_name check_smtp - command_line $USER1$/check_smtp -H $HOSTADDRESS$ $ARG1$ - } - - -# 'check_tcp' command definition -define command{ - command_name check_tcp - command_line $USER1$/check_tcp -H $HOSTADDRESS$ -p $ARG1$ $ARG2$ - } - - -# 'check_udp' command definition -define command{ - command_name check_udp - command_line $USER1$/check_udp -H $HOSTADDRESS$ -p $ARG1$ $ARG2$ - } - - -# 'check_nt' command definition -define command{ - command_name check_nt - command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v $ARG1$ $ARG2$ - } - - -# 'check_dummy' command definition -define command{ - command_name check_dummy - command_line $USER1$/check_dummy $ARG1$ - } - -# 'check_icinga_startup_delay' command definition -define command { - command_name check_icinga_startup_delay - command_line $USER1$/check_dummy 0 "Icinga started with $$(($EVENTSTARTTIME$-$PROCESSSTARTTIME$)) seconds delay | delay=$$(($EVENTSTARTTIME$-$PROCESSSTARTTIME$))" -} - - -################################################################################ -# -# SAMPLE PERFORMANCE DATA COMMANDS -# -# These are sample performance data commands that can be used to send performance -# data output to two text files (one for hosts, another for services). If you -# plan on simply writing performance data out to a file, consider using the -# host_perfdata_file and service_perfdata_file options in the main config file. -# -################################################################################ - - -# 'process-host-perfdata' command definition -define command{ - command_name process-host-perfdata - command_line /usr/bin/printf "%b" "$LASTHOSTCHECK$\t$HOSTNAME$\t$HOSTSTATE$\t$HOSTATTEMPT$\t$HOSTSTATETYPE$\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$\n" >> /var/host-perfdata.out - } - - -# 'process-service-perfdata' command definition -define command{ - command_name process-service-perfdata - command_line /usr/bin/printf "%b" "$LASTSERVICECHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICESTATE$\t$SERVICEATTEMPT$\t$SERVICESTATETYPE$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\n" >> /var/service-perfdata.out - } - - diff --git a/package/icinga/src/etc/icinga/objects/contacts.cfg b/package/icinga/src/etc/icinga/objects/contacts.cfg deleted file mode 100644 index 4fda02f83..000000000 --- a/package/icinga/src/etc/icinga/objects/contacts.cfg +++ /dev/null @@ -1,53 +0,0 @@ -############################################################################### -# CONTACTS.CFG - SAMPLE CONTACT/CONTACTGROUP DEFINITIONS -# -# NOTES: This config file provides you with some example contact and contact -# group definitions that you can reference in host and service -# definitions. -# -# You don't need to keep these definitions in a separate file from your -# other object definitions. This has been done just to make things -# easier to understand. -# -############################################################################### - - - -############################################################################### -############################################################################### -# -# CONTACTS -# -############################################################################### -############################################################################### - -# Just one contact defined by default - the Icinga admin (that's you) -# This contact definition inherits a lot of default values from the 'generic-contact' -# template which is defined elsewhere. - -define contact{ - contact_name icingaadmin ; Short name of user - use generic-contact ; Inherit default values from generic-contact template (defined above) - alias Icinga Admin ; Full name of user - - email icinga@localhost ; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS ****** - } - - - -############################################################################### -############################################################################### -# -# CONTACT GROUPS -# -############################################################################### -############################################################################### - -# We only have one contact in this simple configuration file, so there is -# no need to create more than one contact group. - -define contactgroup{ - contactgroup_name admins - alias Icinga Administrators - members icingaadmin - } diff --git a/package/icinga/src/etc/icinga/objects/localhost.cfg b/package/icinga/src/etc/icinga/objects/localhost.cfg deleted file mode 100644 index 9dc4c4da9..000000000 --- a/package/icinga/src/etc/icinga/objects/localhost.cfg +++ /dev/null @@ -1,167 +0,0 @@ -############################################################################### -# LOCALHOST.CFG - SAMPLE OBJECT CONFIG FILE FOR MONITORING THIS MACHINE -# -# NOTE: This config file is intended to serve as an *extremely* simple -# example of how you can create configuration entries to monitor -# the local (Linux) machine. -# -############################################################################### - - - - -############################################################################### -############################################################################### -# -# HOST DEFINITION -# -############################################################################### -############################################################################### - -# Define a host for the local machine - -define host{ - use linux-server ; Name of host template to use - ; This host definition will inherit all variables that are defined - ; in (or inherited by) the linux-server host template definition. - host_name localhost - alias localhost - address 127.0.0.1 - } - - - -############################################################################### -############################################################################### -# -# HOST GROUP DEFINITION -# -############################################################################### -############################################################################### - -# Define an optional hostgroup for Linux machines - -define hostgroup{ - hostgroup_name linux-servers ; The name of the hostgroup - alias Linux Servers ; Long name of the group - members localhost ; Comma separated list of hosts that belong to this group - } - - - -############################################################################### -############################################################################### -# -# SERVICE DEFINITIONS -# -############################################################################### -############################################################################### - - -# Define a service to "ping" the local machine - -define service{ - use local-service ; Name of service template to use - host_name localhost - service_description PING - check_command check_ping!100.0,20%!500.0,60% - } - - -# Define a service to check the disk space of the root partition -# on the local machine. Warning if < 20% free, critical if -# < 10% free space on partition. - -define service{ - use local-service ; Name of service template to use - host_name localhost - service_description Root Partition - check_command check_local_disk!20%!10%!/ - } - - - -# Define a service to check the number of currently logged in -# users on the local machine. Warning if > 20 users, critical -# if > 50 users. - -define service{ - use local-service ; Name of service template to use - host_name localhost - service_description Current Users - check_command check_local_users!20!50 - } - - -# Define a service to check the number of currently running procs -# on the local machine. Warning if > 250 processes, critical if -# > 400 users. - -define service{ - use local-service ; Name of service template to use - host_name localhost - service_description Total Processes - check_command check_local_procs!250!400!RSZDT - } - - - -# Define a service to check the load on the local machine. - -define service{ - use local-service ; Name of service template to use - host_name localhost - service_description Current Load - check_command check_local_load!5.0,4.0,3.0!10.0,6.0,4.0 - } - - - -# Define a service to check the swap usage the local machine. -# Critical if less than 10% of swap is free, warning if less than 20% is free - -define service{ - use local-service ; Name of service template to use - host_name localhost - service_description Swap Usage - check_command check_local_swap!20!10 - } - - - -# Define a service to check SSH on the local machine. -# Disable notifications for this service by default, as not all users may have SSH enabled. - -define service{ - use local-service ; Name of service template to use - host_name localhost - service_description SSH - check_command check_ssh - notifications_enabled 0 - } - - - -# Define a service to check HTTP on the local machine. -# Disable notifications for this service by default, as not all users may have HTTP enabled. - -define service{ - use local-service ; Name of service template to use - host_name localhost - service_description HTTP - check_command check_http - notifications_enabled 0 - } - - -# Define a service to check current startup delay of the Icinga core daemon. -# Disable notifications for this service by default, as no thresholds are defined. - -define service{ - use local-service ; Name of service template to use - host_name localhost - service_description Icinga Startup Delay - check_command check_icinga_startup_delay - notifications_enabled 0 - } - diff --git a/package/icinga/src/etc/icinga/objects/notifications.cfg b/package/icinga/src/etc/icinga/objects/notifications.cfg deleted file mode 100644 index 25819a82b..000000000 --- a/package/icinga/src/etc/icinga/objects/notifications.cfg +++ /dev/null @@ -1,132 +0,0 @@ -############################################################################### -# NOTIFICATIONS.CFG - SAMPLE NOTIFICATION COMMAND DEFINITIONS FOR ICINGA -# -# NOTES: This config file provides you with some example notification definitions -# that you can reference in host, service, and contact definitions. -# -# You don't need to keep commands in a separate file from your other -# object definitions. This has been done just to make things easier to -# understand. -# -# These are some advanced notification commands. They may or may not work on -# your system without modification. As an example, some systems will require -# you to use "/usr/bin/mailx" instead of "/usr/bin/mail" in the commands below. -# -# Furthermore, make sure to replace ICINGAHOST with the appropriate host name -# if used in any notification as url. -# -# Notifications are using the macros quite a lot. Watch out for your own in the -# official docs: http://docs.icinga.org/latest/en/macrolist.html -# -# Those notification commands need to be assigned to the contacts/contactgroups -# as host_notification_commands and service_notification_commands as comma -# separated list. -# -################################################################################ - - -################################################################################ -# NOTIFICATIONS BY EMAIL -# -# The idea is to add more information to the ascii-only email. This includes -# notes_url, display_name, comment+author. -# subject -# $NOTIFICATIONTYPE$ - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ -# body -# $SHORTDATETIME$ - Info: -# -# $SERVICEOUTPUT$ -# -# $NOTIFICATIONTYPE$ - Service $SERVICEDESC$ on Host $HOSTALIAS$ is $SERVICESTATE$ -# -# (Address: $HOSTADDRESS$, Displayname: $SERVICEDISPLAYNAME$) -# -# Notes: $NOTIFICATIONAUTHOR$ $NOTIFICATIONCOMMENT$ -# $SERVICENOTESURL$ -# -# Url: -# http://ICINGAHOST/icinga/cgi-bin/status.cgi?host=$HOSTNAME$ -################################################################################ - - -# 'notify-host-by-email-advanced' command definition -define command{ - command_name notify-host-by-email-advanced - command_line /usr/bin/printf "%b" "$SHORTDATETIME$ - Info:\n\n$HOSTOUTPUT$\n\n$NOTIFICATIONTYPE$ - Host $HOSTNAME$ is $HOSTSTATE$\n\n(Address: $HOSTADDRESS$ Displayname: $HOSTDISPLAYNAME$)\n\nNotes: $NOTIFICATIONAUTHOR$ $NOTIFICATIONCOMMENT$\n$HOSTNOTESURL$\n\nUrl:\nhttp://ICINGAHOST/icinga/cgi-bin/extinfo.cgi?type=1&host=$HOSTNAME$\n\n" | /usr/bin/mail -s "$NOTIFICATIONTYPE$ - $HOSTNAME$ is $HOSTSTATE$" $CONTACTEMAIL$ - } - -# 'notify-service-by-email-advanced' command definition -define command{ - command_name notify-service-by-email-advanced - command_line /usr/bin/printf "%b" "$SHORTDATETIME$ - Info:\n\n$SERVICEOUTPUT$\n\n$NOTIFICATIONTYPE$ - Service $SERVICEDESC$ on Host $HOSTALIAS$ is $SERVICESTATE$\n\n(Address: $HOSTADDRESS$ Displayname: $SERVICEDISPLAYNAME$)\n\nNotes: $NOTIFICATIONAUTHOR$ $NOTIFICATIONCOMMENT$\n$SERVICENOTESURL$\n\nUrl:\nhttp://ICINGAHOST/icinga/cgi-bin/status.cgi?host=$HOSTNAME$\n\n" | /usr/bin/mail -s "$NOTIFICATIONTYPE$ - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$" $CONTACTEMAIL$ - } - - -################################################################################ -# NOTIFICATIONS BY JABBER (XMPP) -# -# http://www.gridpp.ac.uk/wiki/Nagios_jabber_notification -# check contrib/notifications/notify_via_jabber for the script and copy it to -# $USER1$ location (check resource.cfg) -# -# Hint: make sure to define 'pager' as contact attribute! Alternatively, replace -# $CONTACTPAGER$ with $CONTACTADDRESS1$ and use 'address1' attribute instead. -################################################################################ - -define command { - command_name notify-service-by-jabber - command_line $USER1$/notify_via_jabber $CONTACTPAGER$ "$SHORTDATETIME$ - Info: $SERVICEOUTPUT$ | $NOTIFICATIONTYPE$ - Service $SERVICEDESC$ on Host $HOSTALIAS$ is $SERVICESTATE$ | (Address: $HOSTADDRESS$ Displayname: $SERVICEDISPLAYNAME$) | Notes: $NOTIFICATIONAUTHOR$ $NOTIFICATIONCOMMENT$ $SERVICENOTESURL$ | Url: http://ICINGAHOST/icinga/cgi-bin/status.cgi?host=$HOSTNAME$" - } - -define command { - command_name notify-host-by-jabber - command_line $USER1$notify_via_jabber $CONTACTPAGER$ "$SHORTDATETIME$ - Info: $HOSTOUTPUT$ | $NOTIFICATIONTYPE$ - Host $HOSTNAME$ is $HOSTSTATE$ | (Address: $HOSTADDRESS$ Displayname: $HOSTDISPLAYNAME$) | Notes: $NOTIFICATIONAUTHOR$ $NOTIFICATIONCOMMENT$ $HOSTNOTESURL$ | Url: http://ICINGAHOST/icinga/cgi-bin/extinfo.cgi?type=1&host=$HOSTNAME$" - } - - -################################################################################ -# NOTIFICATIONS BY TWITTER -# -# https://wiki.icinga.org/display/howtos/notify+via+Twitter -################################################################################ - -define command { - command_name notify-host-by-twitter - command_line $USER1$/eventhandler_twitter.php -t "HOST" -h "$HOSTALIAS$" -s "$HOSTSTATE$" -o "$HOSTOUTPUT$" -} - -define command { - command_name notify-service-by-twitter - command_line $USER1$/eventhandler_twitter.php -t "SERVICE" -h "$HOSTALIAS$" -s "$SERVICESTATE$" -d "$SERVICEDESC$" -o "$SERVICEOUTPUT$" -} - - -################################################################################ -# NOTIFICATIONS BY SMS -# -# First off, you need either a local sms service, or an sms gateway. Besides -# an applicable plugin interacting the that api and integrated as notification -# command. Below is only the command example. -################################################################################ - - -define command { - command_name notify-host-by-sms - command_line /usr/bin/printf "%b" "$NOTIFICATIONTYPE$ - $HOSTNAME$ is $HOSTSTATE$ $SHORTDATETIME$ - Info:\n\n$HOSTOUTPUT$\n\n($HOSTADDRESS$)" | $USER1$/notify_via_sms $CONTACTPAGER$ - } - - -define command { - command_name notify-service-by-sms - command_line /usr/bin/printf "%b" "$NOTIFICATIONTYPE$ - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ $SHORTDATETIME$ - Info:\n\n$SERVICEOUTPUT$\n\n($HOSTADDRESS$)" | $USER1$/notify_via_sms $CONTACTPAGER$ - } - - - -################################################################################ -# MORE NOTIFICATION POSSIBILITIES -# -# NoMa: https://www.netways.org/projects/noma/ -# IRCBot: http://www.vanheusden.com/nagircbot/ -################################################################################ - diff --git a/package/icinga/src/etc/icinga/objects/printer.cfg b/package/icinga/src/etc/icinga/objects/printer.cfg deleted file mode 100644 index 815b55fdb..000000000 --- a/package/icinga/src/etc/icinga/objects/printer.cfg +++ /dev/null @@ -1,83 +0,0 @@ -############################################################################### -# PRINTER.CFG - SAMPLE CONFIG FILE FOR MONITORING A NETWORK PRINTER -# -# NOTES: This config file assumes that you are using the sample configuration -# files that get installed with the Icinga quickstart guide. -# -############################################################################### - - - - -############################################################################### -############################################################################### -# -# HOST DEFINITIONS -# -############################################################################### -############################################################################### - -# Define a host for the printer we'll be monitoring -# Change the host_name, alias, and address to fit your situation - -define host{ - use generic-printer ; Inherit default values from a template - host_name hplj2605dn ; The name we're giving to this printer - alias HP LaserJet 2605dn ; A longer name associated with the printer - address 192.168.1.30 ; IP address of the printer - hostgroups network-printers ; Host groups this printer is associated with - } - - - - -############################################################################### -############################################################################### -# -# HOST GROUP DEFINITIONS -# -############################################################################### -############################################################################### - -# A hostgroup for network printers - -define hostgroup{ - hostgroup_name network-printers ; The name of the hostgroup - alias Network Printers ; Long name of the group - } - - - - -############################################################################### -############################################################################### -# -# SERVICE DEFINITIONS -# -############################################################################### -############################################################################### - -# Create a service for monitoring the status of the printer -# Change the host_name to match the name of the host you defined above -# If the printer has an SNMP community string other than "public", change the check_command directive to reflect that - -define service{ - use generic-service ; Inherit values from a template - host_name hplj2605dn ; The name of the host the service is associated with - service_description Printer Status ; The service description - check_command check_hpjd!-C public ; The command used to monitor the service - normal_check_interval 10 ; Check the service every 10 minutes under normal conditions - retry_check_interval 1 ; Re-check the service every minute until its final/hard state is determined - } - - -# Create a service for "pinging" the printer occassionally. Useful for monitoring RTA, packet loss, etc. - -define service{ - use generic-service - host_name hplj2605dn - service_description PING - check_command check_ping!3000.0,80%!5000.0,100% - normal_check_interval 10 - retry_check_interval 1 - } diff --git a/package/icinga/src/etc/icinga/objects/switch.cfg b/package/icinga/src/etc/icinga/objects/switch.cfg deleted file mode 100644 index d19aaedb2..000000000 --- a/package/icinga/src/etc/icinga/objects/switch.cfg +++ /dev/null @@ -1,111 +0,0 @@ -############################################################################### -# SWITCH.CFG - SAMPLE CONFIG FILE FOR MONITORING A SWITCH -# -# NOTES: This config file assumes that you are using the sample configuration -# files that get installed with the Icinga quickstart guide. -# -############################################################################### - - - - -############################################################################### -############################################################################### -# -# HOST DEFINITIONS -# -############################################################################### -############################################################################### - -# Define the switch that we'll be monitoring - -define host{ - use generic-switch ; Inherit default values from a template - host_name linksys-srw224p ; The name we're giving to this switch - alias Linksys SRW224P Switch ; A longer name associated with the switch - address 192.168.1.253 ; IP address of the switch - hostgroups switches ; Host groups this switch is associated with - } - - - - -############################################################################### -############################################################################### -# -# HOST GROUP DEFINITIONS -# -############################################################################### -############################################################################### - -# Create a new hostgroup for switches - -define hostgroup{ - hostgroup_name switches ; The name of the hostgroup - alias Network Switches ; Long name of the group - } - - - - -############################################################################### -############################################################################### -# -# SERVICE DEFINITIONS -# -############################################################################### -############################################################################### - -# Create a service to PING to switch - -define service{ - use generic-service ; Inherit values from a template - host_name linksys-srw224p ; The name of the host the service is associated with - service_description PING ; The service description - check_command check_ping!200.0,20%!600.0,60% ; The command used to monitor the service - normal_check_interval 5 ; Check the service every 5 minutes under normal conditions - retry_check_interval 1 ; Re-check the service every minute until its final/hard state is determined - } - - -# Monitor uptime via SNMP - -define service{ - use generic-service ; Inherit values from a template - host_name linksys-srw224p - service_description Uptime - check_command check_snmp!-C public -o sysUpTime.0 - } - - - -# Monitor Port 1 status via SNMP - -define service{ - use generic-service ; Inherit values from a template - host_name linksys-srw224p - service_description Port 1 Link Status - check_command check_snmp!-C public -o ifOperStatus.1 -r 1 -m RFC1213-MIB - } - - - -# Monitor bandwidth via MRTG logs - -define service{ - use generic-service ; Inherit values from a template - host_name linksys-srw224p - service_description Port 1 Bandwidth Usage - check_command check_local_mrtgtraf!/var/lib/mrtg/192.168.1.253_1.log!AVG!1000000,1000000!5000000,5000000!10 - } - - - - - - - - - - - diff --git a/package/icinga/src/etc/icinga/objects/templates.cfg b/package/icinga/src/etc/icinga/objects/templates.cfg deleted file mode 100644 index 68c32336f..000000000 --- a/package/icinga/src/etc/icinga/objects/templates.cfg +++ /dev/null @@ -1,188 +0,0 @@ -############################################################################### -# TEMPLATES.CFG - SAMPLE OBJECT TEMPLATES -# -# NOTES: This config file provides you with some example object definition -# templates that are refered by other host, service, contact, etc. -# definitions in other config files. -# -# You don't need to keep these definitions in a separate file from your -# other object definitions. This has been done just to make things -# easier to understand. -# -############################################################################### - - - -############################################################################### -############################################################################### -# -# CONTACT TEMPLATES -# -############################################################################### -############################################################################### - -# Generic contact definition template - This is NOT a real contact, just a template! - -define contact{ - name generic-contact ; The name of this contact template - service_notification_period 24x7 ; service notifications can be sent anytime - host_notification_period 24x7 ; host notifications can be sent anytime - service_notification_options w,u,c,r,f,s ; send notifications for all service states, flapping events, and scheduled downtime events - host_notification_options d,u,r,f,s ; send notifications for all host states, flapping events, and scheduled downtime events - service_notification_commands notify-service-by-email ; send service notifications via email - host_notification_commands notify-host-by-email ; send host notifications via email - register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL CONTACT, JUST A TEMPLATE! - } - - - - -############################################################################### -############################################################################### -# -# HOST TEMPLATES -# -############################################################################### -############################################################################### - -# Generic host definition template - This is NOT a real host, just a template! - -define host{ - name generic-host ; The name of this host template - notifications_enabled 1 ; Host notifications are enabled - event_handler_enabled 1 ; Host event handler is enabled - flap_detection_enabled 1 ; Flap detection is enabled - failure_prediction_enabled 1 ; Failure prediction is enabled - process_perf_data 1 ; Process performance data - retain_status_information 1 ; Retain status information across program restarts - retain_nonstatus_information 1 ; Retain non-status information across program restarts - notification_period 24x7 ; Send host notifications at any time - register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! - } - - -# Linux host definition template - This is NOT a real host, just a template! - -define host{ - name linux-server ; The name of this host template - use generic-host ; This template inherits other values from the generic-host template - check_period 24x7 ; By default, Linux hosts are checked round the clock - check_interval 5 ; Actively check the host every 5 minutes - retry_interval 1 ; Schedule host check retries at 1 minute intervals - max_check_attempts 10 ; Check each Linux host 10 times (max) - check_command check-host-alive ; Default command to check Linux hosts - notification_period workhours ; Linux admins hate to be woken up, so we only notify during the day - ; Note that the notification_period variable is being overridden from - ; the value that is inherited from the generic-host template! - notification_interval 120 ; Resend notifications every 2 hours - notification_options d,u,r ; Only send notifications for specific host states - contact_groups admins ; Notifications get sent to the admins by default - register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! - } - - - -# Windows host definition template - This is NOT a real host, just a template! - -define host{ - name windows-server ; The name of this host template - use generic-host ; Inherit default values from the generic-host template - check_period 24x7 ; By default, Windows servers are monitored round the clock - check_interval 5 ; Actively check the server every 5 minutes - retry_interval 1 ; Schedule host check retries at 1 minute intervals - max_check_attempts 10 ; Check each server 10 times (max) - check_command check-host-alive ; Default command to check if servers are "alive" - notification_period 24x7 ; Send notification out at any time - day or night - notification_interval 30 ; Resend notifications every 30 minutes - notification_options d,r ; Only send notifications for specific host states - contact_groups admins ; Notifications get sent to the admins by default - hostgroups windows-servers ; Host groups that Windows servers should be a member of - register 0 ; DONT REGISTER THIS - ITS JUST A TEMPLATE - } - - -# We define a generic printer template that can be used for most printers we monitor - -define host{ - name generic-printer ; The name of this host template - use generic-host ; Inherit default values from the generic-host template - check_period 24x7 ; By default, printers are monitored round the clock - check_interval 5 ; Actively check the printer every 5 minutes - retry_interval 1 ; Schedule host check retries at 1 minute intervals - max_check_attempts 10 ; Check each printer 10 times (max) - check_command check-host-alive ; Default command to check if printers are "alive" - notification_period workhours ; Printers are only used during the workday - notification_interval 30 ; Resend notifications every 30 minutes - notification_options d,r ; Only send notifications for specific host states - contact_groups admins ; Notifications get sent to the admins by default - register 0 ; DONT REGISTER THIS - ITS JUST A TEMPLATE - } - - -# Define a template for switches that we can reuse -define host{ - name generic-switch ; The name of this host template - use generic-host ; Inherit default values from the generic-host template - check_period 24x7 ; By default, switches are monitored round the clock - check_interval 5 ; Switches are checked every 5 minutes - retry_interval 1 ; Schedule host check retries at 1 minute intervals - max_check_attempts 10 ; Check each switch 10 times (max) - check_command check-host-alive ; Default command to check if routers are "alive" - notification_period 24x7 ; Send notifications at any time - notification_interval 30 ; Resend notifications every 30 minutes - notification_options d,r ; Only send notifications for specific host states - contact_groups admins ; Notifications get sent to the admins by default - register 0 ; DONT REGISTER THIS - ITS JUST A TEMPLATE - } - - - - -############################################################################### -############################################################################### -# -# SERVICE TEMPLATES -# -############################################################################### -############################################################################### - -# Generic service definition template - This is NOT a real service, just a template! - -define service{ - name generic-service ; The 'name' of this service template - active_checks_enabled 1 ; Active service checks are enabled - passive_checks_enabled 1 ; Passive service checks are enabled/accepted - parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems) - obsess_over_service 1 ; We should obsess over this service (if necessary) - check_freshness 0 ; Default is to NOT check service 'freshness' - notifications_enabled 1 ; Service notifications are enabled - event_handler_enabled 1 ; Service event handler is enabled - flap_detection_enabled 1 ; Flap detection is enabled - failure_prediction_enabled 1 ; Failure prediction is enabled - process_perf_data 1 ; Process performance data - retain_status_information 1 ; Retain status information across program restarts - retain_nonstatus_information 1 ; Retain non-status information across program restarts - is_volatile 0 ; The service is not volatile - check_period 24x7 ; The service can be checked at any time of the day - max_check_attempts 3 ; Re-check the service up to 3 times in order to determine its final (hard) state - normal_check_interval 10 ; Check the service every 10 minutes under normal conditions - retry_check_interval 2 ; Re-check the service every two minutes until a hard state can be determined - contact_groups admins ; Notifications get sent out to everyone in the 'admins' group - notification_options w,u,c,r ; Send notifications about warning, unknown, critical, and recovery events - notification_interval 60 ; Re-notify about service problems every hour - notification_period 24x7 ; Notifications can be sent out at any time - register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! - } - - -# Local service definition template - This is NOT a real service, just a template! - -define service{ - name local-service ; The name of this service template - use generic-service ; Inherit default values from the generic-service definition - max_check_attempts 4 ; Re-check the service up to 4 times in order to determine its final (hard) state - normal_check_interval 5 ; Check the service every 5 minutes under normal conditions - retry_check_interval 1 ; Re-check the service every minute until a hard state can be determined - register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! - } - diff --git a/package/icinga/src/etc/icinga/objects/timeperiods.cfg b/package/icinga/src/etc/icinga/objects/timeperiods.cfg deleted file mode 100644 index 35e862768..000000000 --- a/package/icinga/src/etc/icinga/objects/timeperiods.cfg +++ /dev/null @@ -1,92 +0,0 @@ -############################################################################### -# TIMEPERIODS.CFG - SAMPLE TIMEPERIOD DEFINITIONS -# -# NOTES: This config file provides you with some example timeperiod definitions -# that you can reference in host, service, contact, and dependency -# definitions. -# -# You don't need to keep timeperiods in a separate file from your other -# object definitions. This has been done just to make things easier to -# understand. -# -############################################################################### - - - -############################################################################### -############################################################################### -# -# TIME PERIODS -# -############################################################################### -############################################################################### - -# This defines a timeperiod where all times are valid for checks, -# notifications, etc. The classic "24x7" support nightmare. :-) -define timeperiod{ - timeperiod_name 24x7 - alias 24 Hours A Day, 7 Days A Week - sunday 00:00-24:00 - monday 00:00-24:00 - tuesday 00:00-24:00 - wednesday 00:00-24:00 - thursday 00:00-24:00 - friday 00:00-24:00 - saturday 00:00-24:00 - } - - -# 'workhours' timeperiod definition -define timeperiod{ - timeperiod_name workhours - alias Normal Work Hours - monday 09:00-17:00 - tuesday 09:00-17:00 - wednesday 09:00-17:00 - thursday 09:00-17:00 - friday 09:00-17:00 - } - - -# 'none' timeperiod definition -define timeperiod{ - timeperiod_name none - alias No Time Is A Good Time - } - - -# Some U.S. holidays -# Note: The timeranges for each holiday are meant to *exclude* the holidays from being -# treated as a valid time for notifications, etc. You probably don't want your pager -# going off on New Year's. Although you're employer might... :-) -define timeperiod{ - name us-holidays - timeperiod_name us-holidays - alias U.S. Holidays - - january 1 00:00-00:00 ; New Years - monday -1 may 00:00-00:00 ; Memorial Day (last Monday in May) - july 4 00:00-00:00 ; Independence Day - monday 1 september 00:00-00:00 ; Labor Day (first Monday in September) - thursday 4 november 00:00-00:00 ; Thanksgiving (4th Thursday in November) - december 25 00:00-00:00 ; Christmas - } - - -# This defines a modified "24x7" timeperiod that covers every day of the -# year, except for U.S. holidays (defined in the timeperiod above). -define timeperiod{ - timeperiod_name 24x7_sans_holidays - alias 24x7 Sans Holidays - - use us-holidays ; Get holiday exceptions from other timeperiod - - sunday 00:00-24:00 - monday 00:00-24:00 - tuesday 00:00-24:00 - wednesday 00:00-24:00 - thursday 00:00-24:00 - friday 00:00-24:00 - saturday 00:00-24:00 - } - diff --git a/package/icinga/src/etc/icinga/objects/windows.cfg b/package/icinga/src/etc/icinga/objects/windows.cfg deleted file mode 100644 index c3b917852..000000000 --- a/package/icinga/src/etc/icinga/objects/windows.cfg +++ /dev/null @@ -1,143 +0,0 @@ -############################################################################### -# WINDOWS.CFG - SAMPLE CONFIG FILE FOR MONITORING A WINDOWS MACHINE -# -# NOTES: This config file assumes that you are using the sample configuration -# files that get installed with the Icinga quickstart guide. -# -############################################################################### - - - - -############################################################################### -############################################################################### -# -# HOST DEFINITIONS -# -############################################################################### -############################################################################### - -# Define a host for the Windows machine we'll be monitoring -# Change the host_name, alias, and address to fit your situation - -define host{ - use windows-server ; Inherit default values from a template - host_name winserver ; The name we're giving to this host - alias My Windows Server ; A longer name associated with the host - address 192.168.1.2 ; IP address of the host - } - - - - -############################################################################### -############################################################################### -# -# HOST GROUP DEFINITIONS -# -############################################################################### -############################################################################### - - -# Define a hostgroup for Windows machines -# All hosts that use the windows-server template will automatically be a member of this group - -define hostgroup{ - hostgroup_name windows-servers ; The name of the hostgroup - alias Windows Servers ; Long name of the group - } - - - - -############################################################################### -############################################################################### -# -# SERVICE DEFINITIONS -# -############################################################################### -############################################################################### - - -# Create a service for monitoring the version of NSCLient++ that is installed -# Change the host_name to match the name of the host you defined above - -define service{ - use generic-service - host_name winserver - service_description NSClient++ Version - check_command check_nt!CLIENTVERSION - } - - - -# Create a service for monitoring the uptime of the server -# Change the host_name to match the name of the host you defined above - -define service{ - use generic-service - host_name winserver - service_description Uptime - check_command check_nt!UPTIME - } - - - -# Create a service for monitoring CPU load -# Change the host_name to match the name of the host you defined above - -define service{ - use generic-service - host_name winserver - service_description CPU Load - check_command check_nt!CPULOAD!-l 5,80,90 - } - - - -# Create a service for monitoring memory usage -# Change the host_name to match the name of the host you defined above - -define service{ - use generic-service - host_name winserver - service_description Memory Usage - check_command check_nt!MEMUSE!-w 80 -c 90 - } - - - -# Create a service for monitoring C:\ disk usage -# Change the host_name to match the name of the host you defined above - -define service{ - use generic-service - host_name winserver - service_description C:\ Drive Space - check_command check_nt!USEDDISKSPACE!-l c -w 80 -c 90 - } - - - -# Create a service for monitoring the W3SVC service -# Change the host_name to match the name of the host you defined above - -define service{ - use generic-service - host_name winserver - service_description W3SVC - check_command check_nt!SERVICESTATE!-d SHOWALL -l W3SVC - } - - - -# Create a service for monitoring the Explorer.exe process -# Change the host_name to match the name of the host you defined above - -define service{ - use generic-service - host_name winserver - service_description Explorer - check_command check_nt!PROCSTATE!-d SHOWALL -l Explorer.exe - } - |