check_ping and dual ip addresses

Christian Schneemann cschneemann at suse.de
Mon Jan 26 10:04:58 CET 2009


On Monday January 26 2009 09:39:56 am Kevin Zellar wrote:
> hello
>
> how to use check_ping if there are 2 ip addresses per host?
simply define a check_ping command which you can tell the address by argument:
define command{
        command_name    check_ping_defined_address
        command_line    $USER1$/check_ping -H $ARG3$ -w $ARG1$ -c $ARG2$ -p 
5 -4
        }

than you have to define two services for this server:

define service{
  use                       service-template
  service_description       PING Interface1
  check_command             
check_ping_defined_address!160.0,20%!500.0,60%!<IP_ADDRESS>
  notifications_enabled     0
  process_perf_data         1
  }



I hope there is an easier way to do this. 
Maybe with check_multi?

Greetings,
	Christian

>
> thank you.



-- 
Christian Schneemann

-------------------------------------
SUSE LINUX Products GmbH,
Maxfeldstr. 5, D - 90409 Nürnberg

Phone:  +49 (0)911 - 740 53 0
e-mail: cschneemann at suse.de
-------------------------------------
SUSE LINUX Products GmbH, GF: Markus Rex
HRB 16746 (AG Nürnberg)

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
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