<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Trebuchet MS";
        panose-1:2 11 6 3 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:ES-MX;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=ES-MX link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hi, <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>You should use check_nrpe for linux boxes and nsca for you windows boxes with nsclient++ . I have configured both in my environment and I’m able to monitor remote host  (Windows & Linux) behind firewalls. You can use these guides to accomplish your purposes. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><a href="http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf">http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf</a><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><a href="http://nagios.sourceforge.net/download/contrib/documentation/misc/NSCA_Setup.pdf">http://nagios.sourceforge.net/download/contrib/documentation/misc/NSCA_Setup.pdf</a><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I also recommend you to read these links to understand better how nsca, nrpe and nsclient++ work together. And also the built in checks you can perform with them:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><a href="http://www.nsclient.org/nscp/wiki/doc/usage/nagios/nsca">http://www.nsclient.org/nscp/wiki/doc/usage/nagios/nsca</a><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><a href="http://nsclient.org/nscp/wiki/doc/usage/nagios/nrpe">http://nsclient.org/nscp/wiki/doc/usage/nagios/nrpe</a><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hope this help you, <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Regards,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Jorge L. Pañeda<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Verdana","sans-serif";color:#1F497D'><img border=0 width=147 height=55 id="Picture_x0020_1" src="cid:image001.jpg@01CCE582.D20BCE40" alt="Description: Description: scio"></span></b><b><span lang=EN-US style='font-family:"Verdana","sans-serif";color:#1F497D'><o:p></o:p></span></b></p><p class=MsoNormal><b><span lang=EN-US style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#1F497D'><o:p> </o:p></span></b></p><p class=MsoNormal><b><span lang=EN-US style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#1F497D'>Systems Administrator<o:p></o:p></span></b></p><p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Scio Consulting | IT & Infrastructure Dept.</span><span lang=EN-US style='font-size:9.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Trebuchet MS","sans-serif";color:#1F497D'>Las Cañadas 501 Int. 230 Col. Tres Marías <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Trebuchet MS","sans-serif";color:#1F497D'>Morelia, Mich., México Tel. (443) 310-96-01 y (443) 310-96-02 ext. 402</span><b><span style='font-size:9.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></b></p><p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>U.S. Phone: 408 404 3897 Ext. 402<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><a href="http://www.sciodev.com/">www.sciodev.com</a></span><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> mail@catsnest.co.uk [mailto:mail@catsnest.co.uk] <br><b>Sent:</b> lunes, 06 de febrero de 2012 01:46 p.m.<br><b>To:</b> Nagios Users List<br><b>Subject:</b> Re: [Nagios-users] monitor hosts behind firewalls<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p><div><p class=MsoNormal>On Mon, Feb 6, 2012 at 5:54 PM, doug <<a href="mailto:goldcup@ix.netcom.com">goldcup@ix.netcom.com</a>> wrote:<o:p></o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>In templates I see the initial check_command pointing to<br>'check-host-alive'. If I comment that out for the boxes behind the FW<br>how will nagios react? Or must I replace it with as you suggest a 'dummy<br>check'?<br><br>All my monitoring is off-site. I monitor my clients firewalls, servers,<br>workstations, and some routers if they have static ip. I only need<br>'check-host-alive' for the routers and firewalls, nothing else.<o:p></o:p></p><div><p class=MsoNormal style='margin-bottom:12.0pt'><br><span style='font-family:"Courier New"'>From:<br><a href="http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#host">http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#host</a><br><br>"check_command: ...If you leave this argument blank, the host will not be actively checked...."<br><br>you normally have to fiddle a little with submitting a passive check to make it go green <br><br><br></span>you might as well use the nrpe check as your hosts <span style='font-family:"Courier New"'>check_command</span> in stead of disableing it<br><br>it will help with service dependancys so if you loose nrpe assess to your hosts only the host will alert instead each of its services...<br><br><br><o:p></o:p></p></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm'><p class=MsoNormal style='margin-bottom:12.0pt'>Can you give me an example of a dummy check?<o:p></o:p></p></blockquote><div><p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-family:"Courier New"'>#!/bin/bash<br>echo "dummy OK" <br>return 0 ;</span>  <br><br><br><span style='font-family:"Courier New"'><br><br><br><br><br clear=all></span>--<br>Ritchie<o:p></o:p></p></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm'><p class=MsoNormal>Thanks<o:p></o:p></p><div><div><p class=MsoNormal><br>-----Original Message-----<br>From: <a href="mailto:mail@catsnest.co.uk">mail@catsnest.co.uk</a><br>Reply-To: <a href="mailto:mail@catsnest.co.uk">mail@catsnest.co.uk</a>, Nagios Users List<br><<a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a>><br>To: Nagios Users List <<a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a>><br>Subject: Re: [Nagios-users] monitor hosts behind firewalls<br>Date: Mon, 6 Feb 2012 10:39:26 +0000<br><br><br><br>On Mon, Feb 6, 2012 at 2:57 AM, doug <<a href="mailto:goldcup@ix.netcom.com">goldcup@ix.netcom.com</a>> wrote:<br>       Hi Everyone,<br><br>       I currently monitor various hosts behind firewalls, windows<br>       servers,<br>       linux, and some workstations. I have them all setup as active<br>       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<br>       the<br>       firewall. I'm a little confused about using passive checks and<br>       not sure<br>       if this is the right way to go about doing what I want. I<br>       monitor the<br>       firewall and know that is up, and for all those hosts behind I'm<br>       just<br>       pinging the fw, no need to do that. I use nrpe or nsclient to<br>       monitor<br>       the services and really that's all I need. Can someone point me<br>       in the<br>       right direction so I can stop the active host status pings for<br>       all hosts<br>       behind the firewalls.<br><br><br><br>If you dont want to open up ping on the firewalls you could ether have a<br>dummy hosts check (a check that just returns 0) or have nrpe as the<br>hosts check (eg a check that just checks if nrpe is responding, again an<br>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" target="_blank">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<br>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 behind_firewall<br><br>Ritchie<br>--<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><br><br>       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<br>       developers<br>       is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5,<br>       CSS3, MVC3,<br>       Metro Style Apps, more. Free future releases when you subscribe<br>       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<br>       when reporting any issue.<br>       ::: Messages without supporting info will risk being sent<br>       to /dev/null<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>_______________________________________________ Nagios-users mailing list <a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a> <a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null<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<o:p></o:p></p></div></div></blockquote></div><p class=MsoNormal><o:p> </o:p></p></div></body></html>