<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2658.34">
<TITLE>RE: [Nagios-users] Host checks instead of service checks</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Thanks Richard. I'll give that a try. </FONT>
</P>

<P><FONT SIZE=2>regards,</FONT>
<BR><FONT SIZE=2>deborah </FONT>
</P>
<BR>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Richard Quintin [<A HREF="mailto:rich+nagios@quintinz.com">mailto:rich+nagios@quintinz.com</A>] </FONT>
<BR><FONT SIZE=2>Sent: 16 March 2009 15:26</FONT>
<BR><FONT SIZE=2>To: Deborah Martin</FONT>
<BR><FONT SIZE=2>Cc: nagios-users@lists.sourceforge.net</FONT>
<BR><FONT SIZE=2>Subject: Re: [Nagios-users] Host checks instead of service checks</FONT>
</P>

<P><FONT SIZE=2>You could use check_dummy for the host check and just have it always return OK.</FONT>
<BR><FONT SIZE=2>Or perhaps the opposite you could add a check_dummy service check for all hosts.</FONT>
</P>

<P><FONT SIZE=2>Which you choose will depend upon your personal preference and how you want dependencies to be handled.</FONT>
</P>

<P><FONT SIZE=2>On Mon, Mar 16, 2009 at 11:06 AM, Deborah Martin <Deborah.Martin@kognitio.com> wrote:</FONT>
<BR><FONT SIZE=2>> Hi Folks,</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> Currently, the main nagios box (running old version of SuSE) and </FONT>
<BR><FONT SIZE=2>> Nagios</FONT>
<BR><FONT SIZE=2>> 2.0b4 is running just with service checks, one of which is an ssh </FONT>
<BR><FONT SIZE=2>> check (we don't allow ping)</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> So in the web interface, I see all hosts as up.</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> However, I've built a new box (which hopefully will replace the above) </FONT>
<BR><FONT SIZE=2>> with SLES 10SP1 and Nagios 3.0.6. I've put the same config files </FONT>
<BR><FONT SIZE=2>> (services.cfg and hosts.cfg)</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> on the this new system. But now the hosts all show as "Pending". So I </FONT>
<BR><FONT SIZE=2>> then moved the ssh check from a service check to a host check and can </FONT>
<BR><FONT SIZE=2>> see that the more hosts I move the  less hosts are pending. That's good so far...</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> But, when I run the pre-flight check (/usr/local/nagios/bin/nagios -v </FONT>
<BR><FONT SIZE=2>> nagios.cfg), I now get warnings to say some hosts don't have any </FONT>
<BR><FONT SIZE=2>> service checks associated with it!</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> This is true as some nodes will only have ssh checks against them </FONT>
<BR><FONT SIZE=2>> whilst others will have other checks against them. I'd rather it </FONT>
<BR><FONT SIZE=2>> didn't warn me as I have hundreds</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> of hosts appear in the pre-flight check warnings and it now looks </FONT>
<BR><FONT SIZE=2>> incredibly untidy to see all this.</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> How can I get rid of these warnings ?</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> I'm probably missing something here so any help would be appreciated. </FONT>
<BR><FONT SIZE=2>> I'm wondering for example, if I should force the initial state to be </FONT>
<BR><FONT SIZE=2>> UP for hosts rather than</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> moving the ssh service check to a host check. But then what would </FONT>
<BR><FONT SIZE=2>> happen if the service check found a node was down - would it reflect </FONT>
<BR><FONT SIZE=2>> that in the "host problems" ?</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> regards,</FONT>
<BR><FONT SIZE=2>> deborah</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> **********************************************************************</FONT>
<BR><FONT SIZE=2>> ***** This email and any files transmitted with it are confidential </FONT>
<BR><FONT SIZE=2>> and intended solely for the use of the individual or entity to whom </FONT>
<BR><FONT SIZE=2>> they are addressed.</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> Any unauthorised distribution or copying is strictly prohibited.</FONT>
<BR><FONT SIZE=2>> Whilst Kognitio Limited takes steps to prevent the transmission of </FONT>
<BR><FONT SIZE=2>> viruses via e-mail, we can not guarantee that any email or attachment </FONT>
<BR><FONT SIZE=2>> is free from computer viruses and you are strongly advised to </FONT>
<BR><FONT SIZE=2>> undertake your own anti-virus precautions.</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> Kognitio grants no warranties regarding performance, use or quality of </FONT>
<BR><FONT SIZE=2>> any e-mail or attachment and undertakes no liability for loss or </FONT>
<BR><FONT SIZE=2>> damage, howsoever caused.</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> Kognitio Limited, a company registered in England and Wales. </FONT>
<BR><FONT SIZE=2>> Registered number 0212 7833. Registered Office: 3a Waterside Park, </FONT>
<BR><FONT SIZE=2>> Cookham Road, Bracknell, Berks, RG12 1RB. VAT number 864 4378 92.</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> Kognitio Inc, a company incorporated in Delaware, principal office 180 </FONT>
<BR><FONT SIZE=2>> North Stetson, Suite 3500, Chicago, IL 60601, USA</FONT>
<BR><FONT SIZE=2>> **********************************************************************</FONT>
<BR><FONT SIZE=2>> *****</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> ----------------------------------------------------------------------</FONT>
<BR><FONT SIZE=2>> -------- Apps built with the Adobe(R) Flex(R) framework and Flex </FONT>
<BR><FONT SIZE=2>> Builder(TM) are powering Web 2.0 with engaging, cross-platform </FONT>
<BR><FONT SIZE=2>> capabilities. Quickly and easily build your RIAs with Flex Builder, </FONT>
<BR><FONT SIZE=2>> the Eclipse(TM)based development software that enables intelligent </FONT>
<BR><FONT SIZE=2>> coding and step-through debugging.</FONT>
<BR><FONT SIZE=2>> Download the free 60 day trial. <A HREF="http://p.sf.net/sfu/www-adobe-com" TARGET="_blank">http://p.sf.net/sfu/www-adobe-com</A> </FONT>
<BR><FONT SIZE=2>> _______________________________________________</FONT>
<BR><FONT SIZE=2>> Nagios-users mailing list</FONT>
<BR><FONT SIZE=2>> Nagios-users@lists.sourceforge.net</FONT>
<BR><FONT SIZE=2>> <A HREF="https://lists.sourceforge.net/lists/listinfo/nagios-users" TARGET="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</A></FONT>
<BR><FONT SIZE=2>> ::: Please include Nagios version, plugin version (-v) and OS when </FONT>
<BR><FONT SIZE=2>> reporting any issue.</FONT>
<BR><FONT SIZE=2>> ::: Messages without supporting info will risk being sent to /dev/null</FONT>
<BR><FONT SIZE=2>></FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=2>--</FONT>
<BR><FONT SIZE=2>Richard Quintin, DBA</FONT>
<BR><FONT SIZE=2>Database & Application Administration</FONT>
<BR><FONT SIZE=2>Virginia Tech</FONT>
</P>


<BR>
***************************************************************************<BR>
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. <BR>
<BR>
Any unauthorised distribution or copying is strictly prohibited. <BR>
Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. <BR>
<BR>
Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. <BR>
<BR>
Kognitio Limited, a company registered in England and Wales. Registered number 0212 7833. Registered Office:  3a Waterside Park, Cookham Road, Bracknell, Berks, RG12 1RB. VAT number 864 4378 92.<BR>
<BR>
Kognitio Inc, a company incorporated in Delaware, principal office 180 North Stetson, Suite 3500, Chicago, IL 60601, USA<BR>
***************************************************************************<BR>
</BODY>
</HTML>