J. Bakshi wrote: > Ok, so ping_check is a ping command with standard features. > > I would be grateful to you if you give me 1 more suggestions > > 1> How can I check a different IP with check_ping command. I have tried > as below with no success > check_ping -H gmail.com!100.0,20%!500.0,60% The !-separated argument syntax is only used to fill in arguments for predefined checks. When running checks from the command line, switches must be specified before most arguments.
From check_ping --help: Usage:check_ping -H <host_address> -w <wrta>,<wpl>% -c <crta>,<cpl>% [-p packets] [-t timeout] [-4|-6] If you look at the command definition, you'll see how each !-separated argument actually translates into the required switch + argument pair: define command{ command_name check_ping command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5 } What you're looking for is `check_ping -H gmail.com -w 100.0,20% -c 500.0,60% -p 5` (the -p switch is optional, but specifies the amount of icmp packets to send - after all, what good is a single ping?) If you're trying to configure a check where a host will ping an arbitrary external host, remember that the $HOSTADDRESS$ macro will always be filled in with the host_name or host_address of the service. To get around that, define a new check along the lines of: define command{ command_name check_ping_external command_line $USER1$/check_ping -H $ARG1$ -w $ARG2$ -c $ARG3$ -p 5 } and then use: check_command check_ping_external!www.gmail.com!100.0,20%!500.0,60% in your service check definition. Sean McAfee System Engineer Collaborative Fusion, Inc. [EMAIL PROTECTED] 412-422-3463 x 4025 5849 Forbes Avenue Pittsburgh, PA 15217 **************************************************************** IMPORTANT: This message contains confidential information and is intended only for the individual named. If the reader of this message is not an intended recipient (or the individual responsible for the delivery of this message to an intended recipient), please be advised that any re-use, dissemination, distribution or copying of this message is prohibited. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. **************************************************************** IMPORTANT: This message contains confidential information and is intended only for the individual named. If the reader of this message is not an intended recipient (or the individual responsible for the delivery of this message to an intended recipient), please be advised that any re-use, dissemination, distribution or copying of this message is prohibited. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users@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