check_fping

Erich Kuehn ekuehn at bbcominc.com
Thu Oct 31 18:29:37 CET 2002


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




More information about the Users mailing list