I have a functioning nagios setup but I have a quick question. I am going through and adding website string checks so we can keep track of availability on one of our webservers. <br><br>So in services.cfg I have <br><br>
define service{<br> name generic-service ; Generic service name<br> active_checks_enabled 1 ; Active service checks are enabled<br> passive_checks_enabled 1 ; Passive service checks are enabled/accepted
<br> parallelize_check 1 ; Active service checks should be parallelized (Don't disable)<br> obsess_over_service 1 ; We should obsess over this service (if necessary)
<br> check_freshness 0 ; Default is to NOT check service 'freshness'<br> notifications_enabled 1 ; Service notifications are enabled<br> event_handler_enabled 1 ; Service event handler is enabled
<br> flap_detection_enabled 1 ; Flap detection is enabled<br> process_perf_data 1 ; Process performance data<br> retain_status_information 1 ; Retain status information across program restarts
<br> retain_nonstatus_information 1 ; Retain non-status information across program restarts<br> register 0 ; DONT REGISTER THIS DEFINITION - NOT A REAL SERVICE, JUST A TEMPLATE!
<br> }<br><br>define service{<br> use generic-service<br> name basic-service<br> is_volatile 0<br> check_period  
; 24x7
<br> max_check_attempts 5<br> normal_check_interval 3<br> retry_check_interval 1 <br> notification_interval 15<br> notification_period 24x7
<br> register 0<br> }<br><br>I then have as just one example:<br><br>define service{<br> use basic-service<br> name check-site4
<br> notification_options w,u,c,r<br> check_command check_http!site.com!20!"Home" <br> register 0<br> }<br><br><br><span style="font-weight: bold;">
My question is, you notice that I have the name as check-site4, and then later on in the services.cfg I call up that checksite-4. Is this the correct way? Do I need to define a service for each host and then later on call it by name to execute the service check? Is this a bad way of going about it?
<br><br>Thanks,<br><br>Jerad<br></span>