check_fping
Subhendu Ghosh
sghosh at sghosh.org
Sat Nov 2 15:35:25 CET 2002
There is no -p option for check_fping ....
Usage: check_fping <host_address>
Options:
-H, --hostname=HOST
Name or IP Address of host to ping (IP Address bypasses name lookup,
reducing system load)
-w, --warning=THRESHOLD
warning threshold pair
-c, --critical=THRESHOLD
critical threshold pair
-b, --bytes=INTEGER
Size of ICMP packet (default: 56)
-n, --number=INTEGER
Number of ICMP packets to send (default: 1)
-v, --verbose
Show details for command-line debugging (do not use with nagios server)
-h, --help
Print this help screen
-V, --version
Print version information
THRESHOLD is <rta>,<pl>% where <rta> is the round trip average travel
time (ms) which triggers a WARNING or CRITICAL state, and <pl> is the
percentage of packet loss to trigger an alarm state.
On Thu, 31 Oct 2002, Erich Kuehn wrote:
> Im having trouble getting check_fping to work.
>
> I keep getting this popping up on my terminal from where I start nagios:
>
> /usr/local/share/nagios/libexec/check_fping: invalid option -- p
>
> and in the nagios.log file I get this
>
> [1036084689] HOST ALERT: Test;DOWN;HARD;20;check_fping: Unknown argument:
> 5000.0,100%
>
> Current setup
>
> FreeBSD 4.7Stable
> Nagios Version 1.0b6
> nagiosplug-1.3-beta1
>
> **********************Checkcommands.cfg
>
>
> # 'check_fping' command definition
> define command{
> command_name check_fping
> command_line /usr/local/share/nagios/libexec/check_fping -H
> $HOSTADDRESS$ -w $ARG1$ -p 5
> }
>
> # 'check-host-alive-f' command definition
> define command{
> command_name check-host-alive-f
> command_line /usr/local/share/nagios/libexec/check_fping -H
> $HOSTADDRESS$ -w 3000.0,80% -p 1
> }
>
>
>
> **************************Services.cfg
>
>
> # Generic service definition template
> define service{
> name generic-service ; The 'name' of this
> service template, referenced in other service definitio
> ns
> active_checks_enabled 1 ; Active service checks are
> enabled
> passive_checks_enabled 1 ; Passive service checks are
> enabled/accepted
> parallelize_check 1 ; Active service checks
> should be parallelized (disabling this can lead to major per
> formance problems)
> obsess_over_service 1 ; We should obsess over this
> service (if necessary)
> check_freshness 0 ; Default is to NOT check
> service 'freshness'
> notifications_enabled 1 ; Service notifications are
> enabled
> event_handler_enabled 1 ; Service event handler is
> enabled
> flap_detection_enabled 1 ; Flap detection is enabled
> process_perf_data 1 ; Process performance data
> retain_status_information 1 ; Retain status information
> across program restarts
> retain_nonstatus_information 1 ; Retain non-status
> information across program restarts
> is_volatile 0
> check_period 24x7
> max_check_attempts 3
> normal_check_interval 5
> retry_check_interval 1
> notification_interval 240
> notification_period 24x7
> notification_options c,r
> register 0 ; DONT REGISTER THIS
> DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
> }
>
> define service{
> use generic-service ; Name of
> service template to use
>
> host_name BBCOM-GravityTech-SF
> service_description PING
> contact_groups router-admins
> notification_options c,r
> check_command check_fping
> }
>
>
> ********************Hosts.cfg
>
> # Generic host definition template
> define host{
> name generic-host ; The name of this
> host template - referenced in other host definitions, use
> d for template recursion/resolution
> notifications_enabled 1 ; Host notifications are
> enabled
> event_handler_enabled 1 ; Host event handler is
> enabled
> flap_detection_enabled 1 ; Flap detection is enabled
> process_perf_data 1 ; Process performance data
> retain_status_information 1 ; Retain status information
> across program restarts
> retain_nonstatus_information 1 ; Retain non-status
> information across program restarts
>
> register 0 ; DONT REGISTER THIS
> DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
> }
>
>
>
> define host{
> use generic-host ; Name of host
> template to use
>
> host_name Test
> alias Test
> address 208.48.168.249
> parents lagsr
> check_command check-host-alive-f
> max_check_attempts 20
> notification_interval 60
> notification_period 24x7
> notification_options d,u,r
> }
>
>
> Any Ideas?
>
> TIA
>
> Erich
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: Influence the future
> of Java(TM) technology. Join the Java Community
> Process(SM) (JCP(SM)) program now.
> http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
>
--
-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
More information about the Users
mailing list