############################################################################### ############################################################################### # # HOST DEFINITIONS # ############################################################################### ############################################################################### # Define the router that we'll be monitoring define host{ use generic-router ; Inherit default values from a template host_name ROUTER_ADAM ; The name we're giving to this router alias ROUTER_ADAM ; A longer name associated with the router address 123.123.123.123 ; IP address of the router hostgroups Example ; Host groups this router is associated with contact_groups VANREE Support parents Parent_Device icon_image switch40.gif statusmap_image switch40.gd2 } ############################################################################### ############################################################################### # # SERVICE DEFINITIONS # ############################################################################### ############################################################################### # Create a service to PING to router define service{ use generic-service ; Inherit values from a template host_name ROUTER_ADAM ; The name of the host the service is associated with service_description PING ; The service description check_command check_ping!1000.0,20%!1500.0,60% ; 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 } define service{ use generic-service ; Inherit values from a template host_name ROUTER_ADAM ; The name of the host the service is associated with service_description Adam IP ; The service description check_command check_usage_adam!AABBCCDDEEFF!accountname!IPv4_check!0!0!123.123.123.123 ; Check if the external fixed IP address changed 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 } define service{ use generic-service ; Inherit values from a template host_name ROUTER_ADAM ; The name of the host the service is associated with service_description Adam Usage Percent ; The service description check_command check_usage_adam!AABBCCDDEEFF!accountname!usage_percent!80!90 ; Check the usage percent, warning at 80% and critical at 90% 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 }