]> git.pld-linux.org Git - projects/nagios-config.git/commitdiff
- objects from nagios 3.0.2
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 5 Oct 2008 00:09:44 +0000 (00:09 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Sun, 5 Oct 2008 00:09:44 +0000 (00:09 +0000)
svn-id: @9891

objects/contacts.cfg [new file with mode: 0644]
objects/localhost.cfg [new file with mode: 0644]
objects/printer.cfg [new file with mode: 0644]
objects/switch.cfg [new file with mode: 0644]
objects/templates.cfg [new file with mode: 0644]
objects/timeperiods.cfg [new file with mode: 0644]
objects/windows.cfg [new file with mode: 0644]

diff --git a/objects/contacts.cfg b/objects/contacts.cfg
new file mode 100644 (file)
index 0000000..bb0aec0
--- /dev/null
@@ -0,0 +1,48 @@
+###############################################################################
+# CONTACTS.CFG - SAMPLE CONTACT/CONTACTGROUP DEFINITIONS
+#
+# $Id: contacts.cfg 5972 2005-05-14 13:33:19Z glen $
+###############################################################################
+
+###############################################################################
+###############################################################################
+#
+# CONTACTS
+#
+###############################################################################
+###############################################################################
+
+# Just one contact defined by default - the Nagios admin (that's you)
+# This contact definition inherits a lot of default values from the 'generic-contact' 
+# template which is defined elsewhere.
+
+define contact {
+       ; Short name of user
+       contact_name    nagios-admin
+       ; Inherit default values from generic-contact template (defined above)
+       use                             generic-contact
+       ; Full name of user
+       alias                   Nagios Admin
+
+       ; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS ******
+       email                   nagios@localhost
+}
+
+###############################################################################
+###############################################################################
+#
+# 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                           Nagios Administrators
+       members                         nagios-admin
+}
+
+# vim:ts=4:sw=4:ft=nagios
diff --git a/objects/localhost.cfg b/objects/localhost.cfg
new file mode 100644 (file)
index 0000000..f9f94d7
--- /dev/null
@@ -0,0 +1,135 @@
+###############################################################################
+# LOCALHOST.CFG
+#
+# $Id: contacts.cfg 5972 2005-05-14 13:33:19Z glen $
+###############################################################################
+
+###############################################################################
+###############################################################################
+#
+# HOST DEFINITION
+#
+###############################################################################
+###############################################################################
+
+# Define a host for the local machine
+define host {
+       ; Name of host template to use
+       use                             linux-server
+       ; 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 {
+       ; The name of the hostgroup
+       hostgroup_name  linux-servers
+       ; Long name of the group
+       alias                   Linux Servers
+       ; Comma separated list of hosts that belong to this group
+       members                 localhost
+}
+
+###############################################################################
+###############################################################################
+#
+# SERVICE DEFINITIONS
+#
+###############################################################################
+###############################################################################
+
+# Define a service to "ping" the local machine
+define service {
+       ; Name of service template to use
+       use                                                     local-service
+       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 {
+       ; Name of service template to use
+       use                                                     local-service
+       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 {
+       ; Name of service template to use
+       use                                                     local-service
+       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 {
+       ; Name of service template to use
+       use                                                     local-service
+       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 {
+       ; Name of service template to use
+       use                                                     local-service
+       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 {
+       ; Name of service template to use
+       use                                                     local-service
+       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 {
+       ; Name of service template to use
+       use                                                     local-service
+       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 {
+       ; Name of service template to use
+       use                                                     local-service
+       host_name                                       localhost
+       service_description                     HTTP
+       check_command                           check_http
+       notifications_enabled           0
+}
+
+# vim:ts=4:sw=4:ft=nagios
diff --git a/objects/printer.cfg b/objects/printer.cfg
new file mode 100644 (file)
index 0000000..a34ce5e
--- /dev/null
@@ -0,0 +1,83 @@
+###############################################################################
+# PRINTER.CFG
+#
+# $Id: contacts.cfg 5972 2005-05-14 13:33:19Z glen $
+###############################################################################
+
+###############################################################################
+###############################################################################
+#
+# 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 {
+       ; Inherit default values from a template
+       use                     generic-printer
+       ; The name we're giving to this printer
+       host_name       hplj2605dn
+       ; A longer name associated with the printer
+       alias           HP LaserJet 2605dn
+       ; IP address of the printer
+       address         192.168.1.30
+       ; Host groups this printer is associated with
+       hostgroups      network-printers
+}
+
+###############################################################################
+###############################################################################
+#
+# HOST GROUP DEFINITIONS
+#
+###############################################################################
+###############################################################################
+
+# A hostgroup for network printers
+define hostgroup {
+       ; The name of the hostgroup
+       hostgroup_name  network-printers
+       ; Long name of the group
+       alias                   Network Printers
+}
+
+###############################################################################
+###############################################################################
+#
+# 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 {
+       ; Inherit values from a template
+       use                                             generic-service
+       ; The name of the host the service is associated with
+       host_name                               hplj2605dn
+       ; The service description
+       service_description             Printer Status
+       ; The command used to monitor the service
+       check_command                   check_hpjd!-C public
+       ; Check the service every 10 minutes under normal conditions
+       normal_check_interval   10
+       ; Re-check the service every minute until its final/hard state is determined
+       retry_check_interval    1
+}
+
+# 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
+}
+
+# vim:ts=4:sw=4:ft=nagios
diff --git a/objects/switch.cfg b/objects/switch.cfg
new file mode 100644 (file)
index 0000000..16ca839
--- /dev/null
@@ -0,0 +1,96 @@
+###############################################################################
+# SWITCH.CFG
+#
+# $Id: contacts.cfg 5972 2005-05-14 13:33:19Z glen $
+###############################################################################
+
+###############################################################################
+###############################################################################
+#
+# HOST DEFINITIONS
+#
+###############################################################################
+###############################################################################
+
+# Define the switch that we'll be monitoring
+define host {
+       ; Inherit default values from a template
+       use                             generic-switch
+       ; The name we're giving to this switch
+       host_name               linksys-srw224p
+       ; A longer name associated with the switch
+       alias                   Linksys SRW224P Switch
+       ; IP address of the switch
+       address                 192.168.1.253
+       ; Host groups this switch is associated with
+       hostgroups              switches
+}
+
+###############################################################################
+###############################################################################
+#
+# HOST GROUP DEFINITIONS
+#
+###############################################################################
+###############################################################################
+
+# Create a new hostgroup for switches
+define hostgroup {
+       ; The name of the hostgroup
+       hostgroup_name  switches
+       ; Long name of the group
+       alias                   Network Switches
+}
+
+###############################################################################
+###############################################################################
+#
+# SERVICE DEFINITIONS
+#
+###############################################################################
+###############################################################################
+
+# Create a service to PING to switch
+define service {
+       ; Inherit values from a template
+       use                                             generic-service
+       ; The name of the host the service is associated with
+       host_name                               linksys-srw224p
+       ; The service description
+       service_description             PING
+       ; The command used to monitor the service
+       check_command                   check_ping!200.0,20%!600.0,60%
+       ; Check the service every 5 minutes under normal conditions
+       normal_check_interval   5
+       ; Re-check the service every minute until its final/hard state is determined
+       retry_check_interval    1
+}
+
+# Monitor uptime via SNMP
+define service {
+       ; Inherit values from a template
+       use                                             generic-service
+       host_name                               linksys-srw224p
+       service_description             Uptime
+       check_command                   check_snmp!-C public -o sysUpTime.0
+}
+
+# Monitor Port 1 status via SNMP
+define service {
+       ; Inherit values from a template
+       use                                             generic-service
+       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 {
+       ; Inherit values from a template
+       use                                             generic-service
+       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
+}
+
+# vim:ts=4:sw=4:ft=nagios
diff --git a/objects/templates.cfg b/objects/templates.cfg
new file mode 100644 (file)
index 0000000..8f9c45c
--- /dev/null
@@ -0,0 +1,257 @@
+###############################################################################
+# TEMPLATES.CFG
+#
+# $Id: contacts.cfg 5972 2005-05-14 13:33:19Z glen $
+###############################################################################
+
+###############################################################################
+###############################################################################
+#
+# CONTACT TEMPLATES
+#
+###############################################################################
+###############################################################################
+
+# Generic contact definition template - This is NOT a real contact, just a template!
+define contact {
+       ; The name of this contact template
+       name                                                    generic-contact
+       ; service notifications can be sent anytime
+       service_notification_period             24x7
+       ; host notifications can be sent anytime
+       host_notification_period                24x7
+       ; send notifications for all service states, flapping events, and scheduled downtime events
+       service_notification_options    w,u,c,r,f,s
+       ; send notifications for all host states, flapping events, and scheduled downtime events
+       host_notification_options               d,u,r,f,s
+       ; send service notifications via email
+       service_notification_commands   notify-service-by-email
+       ; send host notifications via email
+       host_notification_commands              notify-host-by-email
+       ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL CONTACT, JUST A TEMPLATE!
+       register                                                0
+}
+
+###############################################################################
+###############################################################################
+#
+# HOST TEMPLATES
+#
+###############################################################################
+###############################################################################
+
+# Generic host definition template - This is NOT a real host, just a template!
+define host {
+       ; The name of this host template
+       name                                                    generic-host
+       ; Host notifications are enabled
+       notifications_enabled                   1
+       ; Host event handler is enabled
+       event_handler_enabled                   1
+       ; Flap detection is enabled
+       flap_detection_enabled                  1
+       ; Failure prediction is enabled
+       failure_prediction_enabled              1
+       ; Process performance data
+       process_perf_data                               1
+       ; Retain status information across program restarts
+       retain_status_information               1
+       ; Retain non-status information across program restarts
+       retain_nonstatus_information    1
+       ; Send host notifications at any time
+       notification_period                             24x7
+       ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
+       register                                                0
+}
+
+# Linux host definition template - This is NOT a real host, just a template!
+define host {
+       ; The name of this host template
+       name                                    linux-server
+       ; This template inherits other values from the generic-host template
+       use                                             generic-host
+       ; By default, Linux hosts are checked round the clock
+       check_period                    24x7
+       ; Actively check the host every 5 minutes
+       check_interval                  5
+       ; Schedule host check retries at 1 minute intervals
+       retry_interval                  1
+       ; Check each Linux host 10 times (max)
+       max_check_attempts              10
+       ; Default command to check Linux hosts
+       check_command                   check-host-alive
+       ; 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_period             workhours
+       ; Resend notifications every 2 hours
+       notification_interval   120
+       ; Only send notifications for specific host states
+       notification_options    d,u,r
+       ; Notifications get sent to the admins by default
+       contact_groups                  admins
+       ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
+       register                                0
+}
+
+# Windows host definition template - This is NOT a real host, just a template!
+define host {
+       ; The name of this host template
+       name                                    windows-server
+       ; Inherit default values from the generic-host template
+       use                                             generic-host
+       ; By default, Windows servers are monitored round the clock
+       check_period                    24x7
+       ; Actively check the server every 5 minutes
+       check_interval                  5
+       ; Schedule host check retries at 1 minute intervals
+       retry_interval                  1
+       ; Check each server 10 times (max)
+       max_check_attempts              10
+       ; Default command to check if servers are "alive"
+       check_command                   check-host-alive
+       ; Send notification out at any time - day or night
+       notification_period             24x7
+       ; Resend notifications every 30 minutes
+       notification_interval   30
+       ; Only send notifications for specific host states
+       notification_options    d,r
+       ; Notifications get sent to the admins by default
+       contact_groups                  admins
+       ; Host groups that Windows servers should be a member of
+       hostgroups                              windows-servers
+       ; DONT REGISTER THIS - ITS JUST A TEMPLATE
+       register                                0
+}
+
+# We define a generic printer template that can be used for most printers we monitor
+define host {
+       ; The name of this host template
+       name                                    generic-printer
+       ; Inherit default values from the generic-host template
+       use                                             generic-host
+       ; By default, printers are monitored round the clock
+       check_period                    24x7
+       ; Actively check the printer every 5 minutes
+       check_interval                  5
+       ; Schedule host check retries at 1 minute intervals
+       retry_interval                  1
+       ; Check each printer 10 times (max)
+       max_check_attempts              10
+       ; Default command to check if printers are "alive"
+       check_command                   check-host-alive
+       ; Printers are only used during the workday
+       notification_period             workhours
+       ; Resend notifications every 30 minutes
+       notification_interval   30
+       ; Only send notifications for specific host states
+       notification_options    d,r
+       ; Notifications get sent to the admins by default
+       contact_groups                  admins
+       ; DONT REGISTER THIS - ITS JUST A TEMPLATE
+       register                                0
+}
+
+# Define a template for switches that we can reuse
+define host {
+       ; The name of this host template
+       name                                    generic-switch
+       ; Inherit default values from the generic-host template
+       use                                             generic-host
+       ; By default, switches are monitored round the clock
+       check_period                    24x7
+       ; Switches are checked every 5 minutes
+       check_interval                  5
+       ; Schedule host check retries at 1 minute intervals
+       retry_interval                  1
+       ; Check each switch 10 times (max)
+       max_check_attempts              10
+       ; Default command to check if routers are "alive"
+       check_command                   check-host-alive
+       ; Send notifications at any time
+       notification_period             24x7
+       ; Resend notifications every 30 minutes
+       notification_interval   30
+       ; Only send notifications for specific host states
+       notification_options    d,r
+       ; Notifications get sent to the admins by default
+       contact_groups                  admins
+       ; DONT REGISTER THIS - ITS JUST A TEMPLATE
+       register                                0
+}
+
+###############################################################################
+###############################################################################
+#
+# SERVICE TEMPLATES
+#
+###############################################################################
+###############################################################################
+
+# Generic service definition template - This is NOT a real service, just a template!
+define service {
+       ; The 'name' of this service template
+       name                                                    generic-service
+       ; Active service checks are enabled
+       active_checks_enabled                   1
+       ; Passive service checks are enabled/accepted
+       passive_checks_enabled                  1
+       ; Active service checks should be parallelized (disabling this can lead to major performance problems)
+       parallelize_check                               1
+       ; We should obsess over this service (if necessary)
+       obsess_over_service                             1
+       ; Default is to NOT check service 'freshness'
+       check_freshness                                 0
+       ; Service notifications are enabled
+       notifications_enabled                   1
+       ; Service event handler is enabled
+       event_handler_enabled                   1
+       ; Flap detection is enabled
+       flap_detection_enabled                  1
+       ; Failure prediction is enabled
+       failure_prediction_enabled              1
+       ; Process performance data
+       process_perf_data                               1
+       ; Retain status information across program restarts
+       retain_status_information               1
+       ; Retain non-status information across program restarts
+       retain_nonstatus_information    1
+       ; The service is not volatile
+       is_volatile                                             0
+       ; The service can be checked at any time of the day
+       check_period                                    24x7
+       ; Re-check the service up to 3 times in order to determine its final (hard) state
+       max_check_attempts                              3
+       ; Check the service every 10 minutes under normal conditions
+       normal_check_interval                   10
+       ; Re-check the service every two minutes until a hard state can be determined
+       retry_check_interval                    2
+       ; Notifications get sent out to everyone in the 'admins' group
+       contact_groups                                  admins
+       ; Send notifications about warning, unknown, critical, and recovery events
+       notification_options                    w,u,c,r
+       ; Re-notify about service problems every hour
+       notification_interval                   60
+       ; Notifications can be sent out at any time
+       notification_period                             24x7
+       ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
+       register                                                0
+}
+
+# Local service definition template - This is NOT a real service, just a template!
+define service {
+       ; The name of this service template
+       name                                    local-service
+       ; Inherit default values from the generic-service definition
+       use                                             generic-service
+       ; Re-check the service up to 4 times in order to determine its final (hard) state
+       max_check_attempts              4
+       ; Check the service every 5 minutes under normal conditions
+       normal_check_interval   5
+       ; Re-check the service every minute until a hard state can be determined
+       retry_check_interval    1
+       ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
+       register                                0
+}
+
+# vim:ts=4:sw=4:ft=nagios
diff --git a/objects/timeperiods.cfg b/objects/timeperiods.cfg
new file mode 100644 (file)
index 0000000..405e9cc
--- /dev/null
@@ -0,0 +1,83 @@
+###############################################################################
+# TIMEPERIODS.CFG
+#
+# $Id: contacts.cfg 5972 2005-05-14 13:33:19Z glen $
+###############################################################################
+
+###############################################################################
+###############################################################################
+#
+# 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
+
+       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
+       sunday                          00:00-24:00
+}
+
+# 'workhours' timeperiod definition
+define timeperiodo {
+       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 -1 november    00:00-00:00     ; Thanksgiving (last 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
+
+       ; Get holiday exceptions from other timeperiod
+       use                                             us-holidays
+
+       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
+}
+
+# vim:ts=4:sw=4:ft=nagios
diff --git a/objects/windows.cfg b/objects/windows.cfg
new file mode 100644 (file)
index 0000000..79ff7fe
--- /dev/null
@@ -0,0 +1,116 @@
+###############################################################################
+# WINDOWS.CFG
+#
+# $Id: contacts.cfg 5972 2005-05-14 13:33:19Z glen $
+###############################################################################
+
+###############################################################################
+###############################################################################
+#
+# 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 {
+       ; The name of the hostgroup
+       hostgroup_name  windows-servers
+       ; Long name of the group
+       alias                   Windows Servers
+}
+
+###############################################################################
+###############################################################################
+#
+# 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 
+# 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
+}
+
+# vim:ts=4:sw=4:ft=nagios
This page took 0.054141 seconds and 4 git commands to generate.