##### i miei server windows ############################################################################### # WINDOWS.CFG - SAMPLE CONFIG FILE FOR MONITORING A WINDOWS MACHINE # # Last Modified: 27-Aug-2012 # # 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 PC-Rex ; The name we're giving to this host alias Il mio PC ; A longer name associated with the host address 10.0.0.5 ; 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 PC-Rex service_description NSClient++ status check_command check_nrpe!check_nscp } # 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 PC-Rex service_description Uptime check_command check_nrpe!alias_up } # 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 PC-Rex service_description CPU Load check_command check_nrpe!alias_cpu } # 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 PC-Rex service_description Memory Usage check_command check_nrpe!alias_mem } # 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 PC-Rex service_description C:\ Drive Space check_command check_nrpe!alias_disk } # 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 PC-Rex ### service_description W3SVC ### check_command check_nrpe!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 PC-Rex ### service_description Explorer ### check_command check_nrpe!PROCSTATE!-d SHOWALL -l Explorer.exe ### }