check_icmp/check_ping trigger values

Subhendu Ghosh sghosh at sghosh.org
Thu Feb 17 22:50:47 CET 2005


check_host is a command name that points to some plugin with pre-defined 
parameters - i.e. there is no plugin call chck_host (that I know of)

check_icmp is a plugin

Nagios has host checks and service checks.  It primarily does service 
checks using the command defined for the service.  If the service check 
fails (returns unknown or timeout), Nagios performs verifies if the host 
is up using the command defined for the host.

check_icmp as a plugin can be used instead of the check_ping in the 
check_host command with appropriate arguments.

hope this helps.

-sg

On Thu, 17 Feb 2005, Bergström Sebastian wrote:

> Seems like I've missunderstood something very vital. The difference between service checks and host checks. I honestly don't get it.
> So far I haven't separated the two but I realise that I should but I'm still not sure how or why.
>
> When should I use check_host and when should I use check_icmp?
>
> If someone could explain this to me in a simple way I will be most grateful.
>
>
> //Sebastian
>
>> -----Original Message-----
>> From: Andreas Ericsson [mailto:ae at op5.se]
>> Sent: den 17 februari 2005 18:18
>> To: nagios-users at lists.sourceforge.net
>> Subject: Re: [Nagios-users] check_icmp/check_ping trigger values
>>
>>
>> Bergström Sebastian wrote:
>>> We are using Nagios 1.2 and are evaluating check_icmp as a
>> check_ping
>>> replacement. Nagios is currently monitoring 21 branchoffices with
>>> Cisco switches and routers using 2mBit connections to each site.
>>>
>>> The reason for replacing check_ping is that it produces critical
>>> errors sporadicly. It is pertinent to mention that the
>> critical errors
>>> only occurs during the first checks and therefore does not send
>>> notifications. My mission is to drasticly lower the amount
>> of errors
>>> occuring to an absolute minimum.
>>>
>>> What are the most sensible trigger values to use with check_icmp or
>>> check_ping?
>>
>> Short answer (read archives for longer one); For service
>> checks, these values should work in most networks with
>> normal-to-high load.
>> check_icmp -H $HOSTADDRESS$ -w 200.0,40% -c 500.0,60% -i
>> 200ms max_check_attempts 3
>>
>> For host checks;
>> # ln -s check_icmp check_host
>> check_host -H $HOSTADDRESS$ -i 0.5s -p 10 -t 20 max_check_attempts 3
>>
>> check_icmp returns immediately upon any received packet when
>> called as check_host, so it's safe to use a higher packet
>> count and timeout and lower the max_check_attempts
>> accordingly (it won't let nagios sit and wait as check_ping does).
>>
>> Remember that check_icmp must be setuid root to work properly
>> on nearly all linux boxen.
>>
>>> The original Nagios configuration (the same I am using)
>>> are: check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c
>> 5000.0,100% -p 1 -t
>>> 20
>>>
>>> My definition of sensible in this case is using a value that is
>>> producing as few errors as possible, when there are no real
>> problems.
>>> Not sure if this is a attainable goal or not since I know that some
>>> equipment drops ICMP packets if they are to busy.
>>>
>>> Any views or comments are appreciated.
>>>
>>>
>>> Best regards, Sebastian Bergstroem
>>>
>>> ---------------------------------------------- Sebastian Bergstroem
>>> Technical coordinator Kunskapsskolan i Sverige AB
>>> sebastian.bergstroem at kunskapsskolan.se
>>> -----------------------------------------------
>>>
>>>
>>> ------------------------------------------------------- SF email is
>>> sponsored by - The IT Product Guide Read honest & candid reviews on
>>> hundreds of IT Products from real users. Discover which
>> products truly
>>> live up to the hype. Start reading now.
>>> http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
>>> _______________________________________________
>> Nagios-users mailing
>>> list Nagios-users at lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> ::: Please
>>> include Nagios version, plugin version (-v) and OS when
>> reporting any
>>> issue. ::: Messages without supporting info will risk being sent to
>>> /dev/null
>>>
>>
>> --
>> Andreas Ericsson                   andreas.ericsson at op5.se
>> OP5 AB                             www.op5.se
>> Lead Developer
>>
>>
>> -------------------------------------------------------
>> SF email is sponsored by - The IT Product Guide Read honest &
>> candid reviews on hundreds of IT Products from real users.
>> Discover which products truly live up to the hype. Start reading now.
>> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>> _______________________________________________
>> Nagios-users mailing list
>> Nagios-users at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-users
>> ::: Please include Nagios version, plugin version (-v) and OS
>> when reporting any issue.
>> ::: Messages without supporting info will risk being sent to /dev/null
>>
>>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_ide95&alloc_id396&opÌk
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>

-- 


More information about the Users mailing list