check_ping to monitor all IP's of a firewall
asam30 at gmail.com
asam30 at gmail.com
Wed Mar 25 10:08:06 CET 2009
that worked like a charm!!!
you are correct, I was using -H <hostname> as a argument..
Thanks!!!!!
On Thu, Mar 5, 2009 at 6:44 PM, Kevin Keane <subscription at kkeane.com> wrote:
> I can only guess, but it sounds as if all the service checks are still
> using check_ping instead of your new command check_ping_ip. Either that,
> or check_ping_ip is misdefined; make sure that the argument to -H in
> your command is $ARG1$, not the host IP address.
>
> You may want to turn on logging and check the Nagios log files to see
> what commands are actually being issued.
>
> asam30 at gmail.com wrote:
> > Kevin,
> >
> > I did what you suggested, now I can one hostname and underneath I can
> > see services as ping_1, ping_2,..... to monitor other ips in the same
> > host/device. this looks kool. But I tried to shut down one server that
> > relates to the IP ( i added my test server IP here to check), I can
> > still see that the host's IP is up and running in Nagios. And when I
> > down the actual hostname ie Prod-firewall all the services related to
> > that host were down.
> >
> > It looks the solution you gave me is not working. Any idea?
> >
> > Thanks
> >
> >
> > On Thu, Mar 5, 2009 at 2:26 PM, Kevin Keane <subscription at kkeane.com
> > <mailto:subscription at kkeane.com>> wrote:
> >
> > You can do the same thing in services as you did in hosts. First,
> > define
> > a new check command in commands.cfg:
> >
> > # 'check_ping_ip' command definition
> > define command{
> > command_name check_ping_ip
> > command_line $USER1$/check_ping -H $ARG1$ -w $ARG2$ -c
> > $ARG3$
> > -p 5
> > }
> >
> > And then add the services you need:
> >
> > define host {
> > host_name Prod-firewall
> > use generic-switch
> > address xx.xx.xx.40
> > hostgroups firewall
> > }
> >
> > define service {
> > host_name Prod-firewall
> > service_Description Ping_1
> > use generic-service
> > check_period 24x7
> > notification-interval 240
> > notification_period 24x7
> > check_command check_ping_ip!xx.xx.xx.40!3000.0,80%!5000.0,100%
> > }
> >
> >
> > define service {
> > host_name Prod-firewall
> > service_Description Ping_1
> > use generic-service
> > check_period 24x7
> > notification-interval 240
> > notification_period 24x7
> > check_command check_ping_ip!xx.xx.xx.41!3000.0,80%!5000.0,100%
> > }
> >
> > and so on
> >
> > asam30 at gmail.com <mailto:asam30 at gmail.com> wrote:
> > > Hi,
> > >
> > > I've a question on how to monitor multiple IP's of a firewall
> device
> > > using check_ping in Nagios. Example, I have a firewall
> > (prod-fireall)
> > > has 6 ip's associated with it so in host.cfg i should do like this
> > >
> > > define host{
> > > host_name Prod-firewall-0
> > > use generic-switch
> > > address xx.xx.xx.40
> > > hostgroups firewall
> > > }
> > >
> > > define host{
> > > host_name Prod-firewall-1
> > > use generic-switch
> > > address xx.xx.xx.41
> > > hostgroups firewall
> > > }
> > > define host{
> > > host_name Prod-firewall-2
> > > use generic-switch
> > > address xx.xx.xx.42
> > > hostgroups firewall
> > > }
> > > like I need to assign different hostname per each ip address but in
> > > the nagios interface, this looks a long list of host name that
> > we dont
> > > want to have. Is there any way that I can have a single hostname
> > > showing in nagios interface and that should monitor all IPs
> > associated
> > > with it?
> > >
> >
>
>
> --
> Kevin Keane
> Owner
> The NetTech
> Find the Uncommon: Expert Solutions for a Network You Never Have to Think
> About
>
> Office: 866-642-7116
> http://www.4nettech.com
>
> 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.
>
>
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
> CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the
> Enterprise
> -Strategies to boost innovation and cut costs with open source
> participation
> -Receive a $600 discount off the registration fee with the source code:
> SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> 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
>
--
Shankar Asam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090325/224a3d85/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
-------------- next part --------------
_______________________________________________
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