Nagios don't check
Marc Powell
marc at ena.com
Tue Oct 19 22:41:54 CEST 2004
----Original Message----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of João Paulo Vaz
da Silva Sent: Tuesday, October 19, 2004 2:09 PM To:
nagios-users at lists.sourceforge.net Subject: [Nagios-users] Nagios don't check
> Hi guys,
>
> My Nagios don't check host command check_ping:
>
> checkcommands.cfg
>
> # 'check_ping' command definition
> define command{
> command_name check_ping
> command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c
> $ARG2$ -p 5
> }
>
> # 'check-host-alive' command definition
> define command{
> command_name check-host-alive
> command_line $USER1$/check_ping -H $HOSTADDRESS$ -w
> 3000.0,80% -c 5000.0,100% -p 1
> }
[snip]
>
> # Service definition
> define service{
> use generic-service ; Name
> of service template to use
>
>
> host_name router1
> service_description PING
> is_volatile 0
> check_period 24x7
> max_check_attempts 3
> normal_check_interval 3
> retry_check_interval 1
> contact_groups nagios-admin
> notification_interval 120
> notification_period 24x7
> notification_options w,u,c,r
> check_command check_ping
> }
>
Your check_ping command definition is expecting two arguments passed to it as part of the service definition check_command. Specifically a warning point ($ARG1$) and a critical point ($ARG2$). Presuming that you want the same warning and critical values as you're using for your check-host-alive command then your service check_command should be 'check_ping!3000.0,80%!5000.0,100%'
--
Marc
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
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