The following Nagios Definitions will result in: - A Passive Host object for the server DC02
- Passive Service objects for the server DC02 for the services:
- CPU Load
- Drive Usage
- Memory Usage
- Operating System Version
Which will result in something like this in Nagios: Command
define command { command_name check_dummy command_line $USER1$/check_dummy $ARG1$ } TemplatesHostdefine host { use generic-host name passive_host active_checks_enabled 0 passive_checks_enabled 1 flap_detection_enabled 0 register 0 check_period 24x7
max_check_attempts 1
check_interval 5
retry_interval 1
check_freshness 0
contact_groups admins
check_command check_dummy!0
notification_interval 60
notification_period 24x7
notification_options d,u,r
}
Servicedefine service { use generic-service name passive_service active_checks_enabled 0 passive_checks_enabled 1 flap_detection_enabled 0 register 0 check_period 24x7
max_check_attempts 1
check_interval 5
retry_interval 1
check_freshness 0
contact_groups admins
check_command check_dummy!0
notification_interval 60
notification_period 24x7
notification_options w,u,c,r } Host Definitiondefine host { use passive_host host_name DC02 } Service DefinitionsCPU Loaddefine service { use passive_service service_description CPU Load
host_name DC02 } Drive Usagedefine service { use passive_service service_description Drive Usage
host_name DC02 } Memory Usagedefine service { use passive_service service_description Memory Usage
host_name DC02 } Operating System Versiondefine service { use passive_service service_description Operating System Version
host_name DC02 } |