Automatic Host Checks

Tim Stoddard testoddard at ualr.edu
Thu Aug 5 18:10:28 CEST 2004


I have a check command defined in my template used by all hosts.  Is the 
host status  "(Host assumed to be up)" normal? 

Here is a paste from my anyone of my host status pages. 


Host State Information
Host Status: 	
  UP    
Status Information: 	(Host assumed to be up)
Last Status Check: 	08-05-2004 09:59:26
Status Data Age: 	0d 0h 58m 12s
Last State Change: 	07-09-2004 16:41:37
Current State Duration: 	26d 18h 16m 1s
Last Host Notification: 	N/A
Current Notification Number:   	0  
Is This Host Flapping? 	
  NO  
Percent State Change: 	0.00%
In Scheduled Downtime? 	
  NO  
Last Update: 	08-05-2004 10:56:55



Here is my template for my hosts.

define host {
name                           24x7-30min
check_command                  check-host-alive
max_check_attempts             5
checks_enabled                 1
event_handler_enabled          1
low_flap_threshold             0
high_flap_threshold            0
flap_detection_enabled         1
process_perf_data              1
retain_status_information      1
retain_nonstatus_information   1
notification_interval          30
notification_period            24x7
notification_options           d,u,r
notifications_enabled          1
register                       0
}

I am using the standard "check-host-alive" command defined in the 
checkcommands.cfg file. 

define command {
command_name                   check-host-alive
command_line                   $USER1$/check_ping -H $HOSTADDRESS$ -w 
3000.0,50% -c 5000.0,100% -p 3 -t 5
}

If I understand  you correctly then I should not need to define a 
service to "check-host-alive" in the services.cfg file? 

-- 

Timothy Stoddard


Jason Martin wrote:

>Nagios does not intrinsically know how to check anything,
>so unless you've defined a command for a given type of check
>Nagios isn't doing it.
>
>-Jason Martin
>
>
>On Thu, Aug 05, 2004 at 10:15:41AM -0500, Tim Stoddard wrote:
>  
>
>>I have been reading through the docs and I cannot find a definitive 
>>answer to this.  Does Nagios do a ICMP host check automatically?  Is 
>>this something that need to put in the nagios.cfg file?  I have been 
>>defining an ICMP "check-host-alive" command on each host.  Now I think 
>>that Nagios is double ICMP checking all hosts. 
>>
>>    
>>
>
>  
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20040805/d2c0f2c8/attachment.html>


More information about the Users mailing list