monitor hosts behind firewalls

mail at catsnest.co.uk mail at catsnest.co.uk
Mon Feb 6 11:39:26 CET 2012


On Mon, Feb 6, 2012 at 2:57 AM, doug <goldcup at ix.netcom.com> wrote:

> Hi Everyone,
>
> I currently monitor various hosts behind firewalls, windows servers,
> linux, and some workstations. I have them all setup as active hosts that
> nagios pings to indicate they are up. Since they are all behind
> firewalls all I'm doing for host status is in fact just pinging the
> firewall. I'm a little confused about using passive checks and not sure
> if this is the right way to go about doing what I want. I monitor the
> firewall and know that is up, and for all those hosts behind I'm just
> pinging the fw, no need to do that. I use nrpe or nsclient to monitor
> the services and really that's all I need. Can someone point me in the
> right direction so I can stop the active host status pings for all hosts
> behind the firewalls.
>
>

If you dont want to open up ping on the firewalls you could ether have a
dummy hosts check (a check that just returns 0) or have nrpe as the hosts
check (eg a check that just checks if nrpe is responding, again an nrpe
check that just returns 0 )


client nrpe command like this
command[check_nrpe_alive]=/patch/script/that/returns.0.sh


Nagios command:

define command{
        command_name    check_nrpe_alive
        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -C
check_nrpe_alive
        }

define host{
        name            behind_firewall
        use             generic-host
        hostgroups      +behind_firewall
        register        0
}

then a use clause in your host config of behind_firewall

Ritchie
--
<-- http://23.me.uk/2 -->
<--Time flies like an arrow; fruit flies like a banana.  -->



> Thanks
> Doug
>
>
>
> ------------------------------------------------------------------------------
> Try before you buy = See our experts in action!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-dev2
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20120206/ee83c4ab/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
-------------- 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