Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ###############################################################################
- # 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 Nagios 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 IYS-ROA-SECSYS ; The name we're giving to this host
- alias Security Server ; A longer name associated with the host
- address 10.2.199.9 ; IP address of the host
- }
- define host{
- use windows-server ; Inherit default values from a template
- host_name IYS-ROA-AD01 ; The name we're giving to this host
- alias Physical AD Server; A longer name associated with the host
- address 10.2.70.5 ; IP address of the host
- }
- define host{
- use windows-server ; Inherit default values from a template
- host_name IYS-RIC-AD01 ; The name we're giving to this host
- alias Physical AD Server; A longer name associated with the host
- address 10.1.70.5 ; IP address of the host
- }
- define host{
- use windows-server ; Inherit default values from a template
- host_name IYS-RIC-AD02 ; The name we're giving to this host
- alias Physical AD Server; A longer name associated with the host
- address 10.1.70.6 ; 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
- #
- ###############################################################################
- ###############################################################################
- # Start monitoring for IYS-ROA-SECSYS
- # Create a service for monitoring the version of NSCLient++ that is installed
- define service{
- use generic-service
- host_name IYS-ROA-SECSYS
- 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
- #monitor uptime of windows server
- define service{
- use generic-service
- host_name IYS-ROA-SECSYS
- 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
- # monitor cpu load alert over 90 for more than 3 min warn at 80 for 3 min
- define service{
- use generic-service
- host_name IYS-ROA-SECSYS
- service_description CPU Load
- check_command check_nt!CPULOAD!-l 3,80,90
- }
- # Create a service for monitoring memory usage
- # Change the host_name to match the name of the host you defined above
- # monitor memory usage alert at 90 for more than 5min warn at 80 for 5 min
- define service{
- use generic-service
- host_name IYS-ROA-SECSYS
- 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
- # monitor used disk space. warn at 80% alert at 90%
- define service{
- use generic-service
- host_name IYS-ROA-SECSYS
- 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
- #monitor IIS alert if not running.
- define service{
- use generic-service
- host_name IYS-ROA-SECSYS
- service_description W3SVC
- check_command check_nt!SERVICESTATE!-d SHOWALL -l W3SVC
- }
- #monitor ad bridge alert if not running
- define service{
- use generic-service
- host_name IYS-ROA-SECSYS
- service_description AD Bridge
- check_command check_nt!SERVICESTATE!-d SHOWALL -l ADBridge
- }
- #monitor CSUP controller alert if not running
- define service{
- use generic-service
- host_name IYS-ROA-SECSYS
- service_description Door Controller
- check_command check_nt!SERVICESTATE!-d SHOWALL -l DBCSUP02
- }
- # Create a service for monitoring the Explorer.exe process
- # Change the host_name to match the name of the host you defined above
- #monitor Explorer.exe alert if not running
- define service{
- use generic-service
- host_name IYS-ROA-SECSYS
- service_description Explorer
- check_command check_nt!PROCSTATE!-d SHOWALL -l Explorer.exe
- }
- ## End Alerts for IYS-ROA-SECSYS
- # Start monitoring for IYS-ROA-DC01
- # Create a service for monitoring the version of NSCLient++ that is installed
- define service{
- use generic-service
- host_name IYS-ROA-AD01
- 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
- #monitor uptime of windows server
- define service{
- use generic-service
- host_name IYS-ROA-AD01
- 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
- # monitor cpu load alert over 90 for more than 3 min warn at 80 for 3 min
- define service{
- use generic-service
- host_name IYS-ROA-AD01
- service_description CPU Load
- check_command check_nt!CPULOAD!-l 3,80,90
- }
- # Create a service for monitoring memory usage
- # Change the host_name to match the name of the host you defined above
- # monitor memory usage alert at 90 for more than 5min warn at 80 for 5 min
- define service{
- use generic-service
- host_name IYS-ROA-AD01
- 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
- # monitor used disk space. warn at 80% alert at 90%
- define service{
- use generic-service
- host_name IYS-ROA-AD01
- service_description C:\ Drive Space
- check_command check_nt!USEDDISKSPACE!-l c -w 80 -c 90
- }
- #monitor DNS alert if not running
- define service{
- use generic-service
- host_name IYS-ROA-AD01
- service_description DNS
- check_command check_nt!PROCSTATE!-d SHOWALL -l DNS
- }
- #monitor DNS client alert if not running
- define service{
- use generic-service
- host_name IYS-ROA-AD01
- service_description DNS Client
- check_command check_nt!PROCSTATE!-d SHOWALL -l Dnscache
- }
- #monitor group policy alert if not running
- define service{
- use generic-service
- host_name IYS-ROA-AD01
- service_description Group Policy Service
- check_command check_nt!PROCSTATE!-d SHOWALL -l gpsvc
- }
- #monitor netlogon alert if not running
- define service{
- use generic-service
- host_name IYS-ROA-AD01
- service_description Netlogon
- check_command check_nt!PROCSTATE!-d SHOWALL -l Netlogon
- }
- #monitor ADDS alert if not running
- define service{
- use generic-service
- host_name IYS-ROA-AD01
- service_description Active Directory Domain Services
- check_command check_nt!PROCSTATE!-d SHOWALL -l NTDS
- }
- # Create a service for monitoring the Explorer.exe process
- # Change the host_name to match the name of the host you defined above
- #monitor Explorer.exe alert if not running
- define service{
- use generic-service
- host_name IYS-ROA-AD01
- service_description Explorer
- check_command check_nt!PROCSTATE!-d SHOWALL -l Explorer.exe
- }
- ## End Alerts for IYS-ROA-DC01
- # Start monitoring for IYS-RIC-AD01
- # Create a service for monitoring the version of NSCLient++ that is installed
- define service{
- use generic-service
- host_name IYS-RIC-AD01
- 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
- #monitor uptime of windows server
- define service{
- use generic-service
- host_name IYS-RIC-AD01
- 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
- # monitor cpu load alert over 90 for more than 3 min warn at 80 for 3 min
- define service{
- use generic-service
- host_name IYS-RIC-AD01
- service_description CPU Load
- check_command check_nt!CPULOAD!-l 3,80,90
- }
- # Create a service for monitoring memory usage
- # Change the host_name to match the name of the host you defined above
- # monitor memory usage alert at 90 for more than 5min warn at 80 for 5 min
- define service{
- use generic-service
- host_name IYS-RIC-AD01
- 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
- # monitor used disk space. warn at 80% alert at 90%
- define service{
- use generic-service
- host_name IYS-RIC-AD01
- service_description C:\ Drive Space
- check_command check_nt!USEDDISKSPACE!-l c -w 80 -c 90
- }
- #monitor DNS alert if not running
- define service{
- use generic-service
- host_name IYS-RIC-AD01
- service_description DNS
- check_command check_nt!PROCSTATE!-d SHOWALL -l DNS
- }
- #monitor DNS client alert if not running
- define service{
- use generic-service
- host_name IYS-RIC-AD01
- service_description DNS Client
- check_command check_nt!PROCSTATE!-d SHOWALL -l Dnscache
- }
- #monitor group policy alert if not running
- define service{
- use generic-service
- host_name IYS-RIC-AD01
- service_description Group Policy Service
- check_command check_nt!PROCSTATE!-d SHOWALL -l gpsvc
- }
- #monitor netlogon alert if not running
- define service{
- use generic-service
- host_name IYS-RIC-AD01
- service_description Netlogon
- check_command check_nt!PROCSTATE!-d SHOWALL -l Netlogon
- }
- #monitor ADDS alert if not running
- define service{
- use generic-service
- host_name IYS-RIC-AD01
- service_description Active Directory Domain Services
- check_command check_nt!PROCSTATE!-d SHOWALL -l NTDS
- }
- # Create a service for monitoring the Explorer.exe process
- # Change the host_name to match the name of the host you defined above
- #monitor Explorer.exe alert if not running
- define service{
- use generic-service
- host_name IYS-RIC-AD01
- service_description Explorer
- check_command check_nt!PROCSTATE!-d SHOWALL -l Explorer.exe
- }
- ## End Alerts for IYS-RIC-AD01
- # Start monitoring for IYS-RIC-AD02
- # Create a service for monitoring the version of NSCLient++ that is installed
- define service{
- use generic-service
- host_name IYS-RIC-AD02
- 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
- #monitor uptime of windows server
- define service{
- use generic-service
- host_name IYS-RIC-AD02
- 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
- # monitor cpu load alert over 90 for more than 3 min warn at 80 for 3 min
- define service{
- use generic-service
- host_name IYS-RIC-AD02
- service_description CPU Load
- check_command check_nt!CPULOAD!-l 3,80,90
- }
- # Create a service for monitoring memory usage
- # Change the host_name to match the name of the host you defined above
- # monitor memory usage alert at 90 for more than 5min warn at 80 for 5 min
- define service{
- use generic-service
- host_name IYS-RIC-AD02
- 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
- # monitor used disk space. warn at 80% alert at 90%
- define service{
- use generic-service
- host_name IYS-RIC-AD02
- service_description C:\ Drive Space
- check_command check_nt!USEDDISKSPACE!-l c -w 80 -c 90
- }
- #monitor DNS alert if not running
- define service{
- use generic-service
- host_name IYS-RIC-AD02
- service_description DNS
- check_command check_nt!PROCSTATE!-d SHOWALL -l DNS
- }
- #monitor DNS client alert if not running
- define service{
- use generic-service
- host_name IYS-RIC-AD02
- service_description DNS Client
- check_command check_nt!PROCSTATE!-d SHOWALL -l Dnscache
- }
- #monitor group policy alert if not running
- define service{
- use generic-service
- host_name IYS-RIC-AD02
- service_description Group Policy Service
- check_command check_nt!PROCSTATE!-d SHOWALL -l gpsvc
- }
- #monitor netlogon alert if not running
- define service{
- use generic-service
- host_name IYS-RIC-AD02
- service_description Netlogon
- check_command check_nt!PROCSTATE!-d SHOWALL -l Netlogon
- }
- #monitor ADDS alert if not running
- define service{
- use generic-service
- host_name IYS-RIC-AD02
- service_description Active Directory Domain Services
- check_command check_nt!PROCSTATE!-d SHOWALL -l NTDS
- }
- # Create a service for monitoring the Explorer.exe process
- # Change the host_name to match the name of the host you defined above
- #monitor Explorer.exe alert if not running
- define service{
- use generic-service
- host_name IYS-RIC-AD02
- service_description Explorer
- check_command check_nt!PROCSTATE!-d SHOWALL -l Explorer.exe
- }
- ## End Alerts for IYS-RIC-AD02
Advertisement
Add Comment
Please, Sign In to add comment