that worked like a charm!!!<br><br>you are correct, I was using -H <hostname> as a argument..<br><br>Thanks!!!!!<br><br><br><br><div class="gmail_quote">On Thu, Mar 5, 2009 at 6:44 PM, Kevin Keane <span dir="ltr"><<a href="mailto:subscription@kkeane.com">subscription@kkeane.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I can only guess, but it sounds as if all the service checks are still<br>
using check_ping instead of your new command check_ping_ip. Either that,<br>
or check_ping_ip is misdefined; make sure that the argument to -H in<br>
your command is $ARG1$, not the host IP address.<br>
<br>
You may want to turn on logging and check the Nagios log files to see<br>
what commands are actually being issued.<br>
<div class="im"><br>
<a href="mailto:asam30@gmail.com">asam30@gmail.com</a> wrote:<br>
> Kevin,<br>
><br>
> I did what you suggested, now I can one hostname and underneath I can<br>
> see services as ping_1, ping_2,..... to monitor other ips in the same<br>
> host/device. this looks kool. But I tried to shut down one server that<br>
> relates to the IP ( i added my test server IP here to check), I can<br>
> still see that the host's IP is up and running in Nagios. And when I<br>
> down the actual hostname ie Prod-firewall all the services related to<br>
> that host were down.<br>
><br>
> It looks the solution you gave me is not working. Any idea?<br>
><br>
> Thanks<br>
><br>
><br>
> On Thu, Mar 5, 2009 at 2:26 PM, Kevin Keane <<a href="mailto:subscription@kkeane.com">subscription@kkeane.com</a><br>
</div><div><div></div><div class="h5">> <mailto:<a href="mailto:subscription@kkeane.com">subscription@kkeane.com</a>>> wrote:<br>
><br>
>     You can do the same thing in services as you did in hosts. First,<br>
>     define<br>
>     a new check command in commands.cfg:<br>
><br>
>     # 'check_ping_ip' command definition<br>
>     define command{<br>
>            command_name    check_ping_ip<br>
>            command_line    $USER1$/check_ping -H $ARG1$ -w $ARG2$ -c<br>
>     $ARG3$<br>
>     -p 5<br>
>            }<br>
><br>
>     And then add the services you need:<br>
><br>
>     define host {<br>
>         host_name Prod-firewall<br>
>         use generic-switch<br>
>         address xx.xx.xx.40<br>
>         hostgroups firewall<br>
>     }<br>
><br>
>     define service {<br>
>        host_name Prod-firewall<br>
>        service_Description Ping_1<br>
>        use generic-service<br>
>        check_period       24x7<br>
>        notification-interval 240<br>
>        notification_period 24x7<br>
>        check_command check_ping_ip!xx.xx.xx.40!3000.0,80%!5000.0,100%<br>
>     }<br>
><br>
><br>
>     define service {<br>
>        host_name Prod-firewall<br>
>        service_Description Ping_1<br>
>        use generic-service<br>
>        check_period       24x7<br>
>        notification-interval 240<br>
>        notification_period 24x7<br>
>        check_command check_ping_ip!xx.xx.xx.41!3000.0,80%!5000.0,100%<br>
>     }<br>
><br>
>     and so on<br>
><br>
</div></div><div><div></div><div class="h5">>     <a href="mailto:asam30@gmail.com">asam30@gmail.com</a> <mailto:<a href="mailto:asam30@gmail.com">asam30@gmail.com</a>> wrote:<br>
>     > Hi,<br>
>     ><br>
>     > I've a question on how to monitor multiple IP's of a firewall device<br>
>     > using check_ping in Nagios. Example, I have a firewall<br>
>     (prod-fireall)<br>
>     > has 6 ip's associated with it so in host.cfg i should do like this<br>
>     ><br>
>     > define host{<br>
>     >           host_name       Prod-firewall-0<br>
>     >           use             generic-switch<br>
>     >           address         xx.xx.xx.40<br>
>     >           hostgroups      firewall<br>
>     >           }<br>
>     ><br>
>     > define host{<br>
>     >           host_name       Prod-firewall-1<br>
>     >           use             generic-switch<br>
>     >           address         xx.xx.xx.41<br>
>     >           hostgroups      firewall<br>
>     >           }<br>
>     > define host{<br>
>     >           host_name       Prod-firewall-2<br>
>     >           use             generic-switch<br>
>     >           address         xx.xx.xx.42<br>
>     >           hostgroups      firewall<br>
>     >           }<br>
>     > like I need to assign different hostname per each ip address but in<br>
>     > the nagios interface, this looks a long list of host name that<br>
>     we dont<br>
>     > want to have. Is there any way that I can have a single hostname<br>
>     > showing in nagios interface and that should monitor all IPs<br>
>     associated<br>
>     > with it?<br>
>     ><br>
><br>
<br>
<br>
--<br>
Kevin Keane<br>
Owner<br>
The NetTech<br>
Find the Uncommon: Expert Solutions for a Network You Never Have to Think About<br>
<br>
Office: 866-642-7116<br>
<a href="http://www.4nettech.com" target="_blank">http://www.4nettech.com</a><br>
<br>
This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof.<br>

<br>
<br>
------------------------------------------------------------------------------<br>
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA<br>
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise<br>
-Strategies to boost innovation and cut costs with open source participation<br>
-Receive a $600 discount off the registration fee with the source code: SFAD<br>
<a href="http://p.sf.net/sfu/XcvMzF8H" target="_blank">http://p.sf.net/sfu/XcvMzF8H</a><br>
_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Shankar Asam<br>