<br><br><div class="gmail_quote">On Mon, Feb 6, 2012 at 2:57 AM, doug <span dir="ltr"><<a href="mailto:goldcup@ix.netcom.com">goldcup@ix.netcom.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

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

<br><br>client nrpe command like this <br>command[check_nrpe_alive]=/patch/script/that/<a href="http://returns.0.sh">returns.0.sh</a><br><br><br>Nagios command:<br><br>define command{<br>        command_name    check_nrpe_alive<br>

        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -C check_nrpe_alive<br>        }<br>        <br>define host{<br>        name            behind_firewall<br>        use             generic-host<br>        hostgroups      +behind_firewall<br>

        register        0<br>}<br><br>then a use clause in your host config of </font><font face="courier new,monospace"> behind_firewall</font><br><br>Ritchie<br clear="all">--<br><-- <a href="http://23.me.uk/2" target="_blank">http://23.me.uk/2</a> --><br>

<--Time flies like an arrow; fruit flies like a banana.  --><br> 
<br></div><div> </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Thanks<br>
Doug<br>
<br>
<br>
------------------------------------------------------------------------------<br>
Try before you buy = See our experts in action!<br>
The most comprehensive online learning library for Microsoft developers<br>
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,<br>
Metro Style Apps, more. Free future releases when you subscribe now!<br>
<a href="http://p.sf.net/sfu/learndevnow-dev2" target="_blank">http://p.sf.net/sfu/learndevnow-dev2</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>
</blockquote></div><br>