<html><DIV><FONT face=Verdana color=#0000ff size=2>YUP - that's just what I needed - thanks, Guy!</FONT></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px"><FONT face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> Guy Waugh [mailto:guidosh@gmail.com]<BR><B>Sent:</B> Tuesday, July 14, 2009 01:45 PM<BR><B>To:</B> 'Natalie Aloi'<BR><B>Cc:</B> 'Nagios Users Mail-list'<BR><B>Subject:</B> Re: [Nagios-users] Host Checks & Service Checks<BR><BR></FONT>
<DIV>Hi Natalie,</DIV>
<DIV> </DIV>
<DIV>You might need a 'check_command' for each of your hosts... like this:</DIV>
<DIV> </DIV>
<DIV>   check_command  check-host-alive</DIV>
<DIV> </DIV>
<DIV>The 'check-host-alive' check command would have to be defined, probably in your commands.cfg file. The default nagios configuration defines this command (I think).</DIV>
<DIV> </DIV>
<DIV>This is where it's handy to use templates -- in this case, a host template. You would define stuff common to every host in your host template (which you might call 'generic-host'), and have a 'use generic-host' line in each of your host definitions. That way, you wouldn't have to redefine the same stuff over and over again for each of your hosts.</DIV>
<DIV> </DIV>
<DIV>It might be worth spending an hour or two reading the official nagios documentation at this point -- it could save you lots of time. The official doc table of contents is at:</DIV>
<DIV> </DIV>
<DIV><A href="http://nagios.sourceforge.net/docs/3_0/toc.html" target=_blank mce_href="http://nagios.sourceforge.net/docs/3_0/toc.html">http://nagios.sourceforge.net/docs/3_0/toc.html</A></DIV>
<DIV> </DIV>
<DIV>Cheers,<BR>Guy.<BR><BR></DIV>
<DIV class=gmail_quote>On Tue, Jul 14, 2009 at 6:34 PM, Natalie Aloi <SPAN dir=ltr><<A href="mailto:naloi@experisdatacenters.com" target=_blank mce_href="mailto:naloi@experisdatacenters.com">naloi@experisdatacenters.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<DIV bgcolor="#ffffff">
<DIV><FONT face=Verdana size=2>Im not sure where I am missing ...but HOST CHECKS are not being performed but service checks are...any idea of what configuration file I need to look in? I have a total of 18 hosts, when I view hosts detail page in gui I only see pending (except for local host)...below are stats capture & my hosts.cfg file</FONT></DIV>
<DIV>
<TABLE class="" cellPadding=10 border=0>
<TBODY>
<TR>
<TD class="" vAlign=center>
<DIV>Statistics[root@dns objects]# more hosts.cfg<BR>define host{<BR>        host_name          localhost<BR>        alias              Local_host<BR>        address            127.0.0.1<BR>        max_check_attempts 5<BR>        check_period       24x7<BR>        contact_groups     admins<BR>        notification_interval   30<BR>        notification_period     24x7<BR>        notification_options    d,r<BR>        }<BR>define host{<BR>        host_name          MT-Core-Switch-1<BR>        alias              Cisco-6509-CR3<BR>        address            10.1.100.253<BR>        max_check_attempts 5<BR>        check_period       24x7<BR>        contact_groups     admins<BR>        notification_interval   30<BR>        notification_period     24x7<BR>        notification_options    d,u,r<BR>        }</DIV>
<DIV>define host{<BR>        host_name               MT-Core-Switch-2<BR>        alias                   Cisco-6509-CR3<BR>        address                 10.1.100.252<BR>        max_check_attempts      5<BR>        check_period            24x7<BR>        contact_groups          admins<BR>        notification_interval   30<BR>        notification_period     24x7<BR>        notification_options    d,u,r<BR>        }<BR>define host{<BR>        host_name               Ext3560-1<BR>        alias                   Cisco-3560-POP<BR>        address                 10.1.100.5<BR>        max_check_attempts      5<BR>        check_period            24x7<BR>        contact_groups          admins<BR>        notification_interval   30<BR>        notification_period     24x7<BR>        notification_options    d,u,r<BR>        }<BR>define host{<BR>        host_name               Ext3560-2<BR>        alias                   Cisco-3560-POP<BR>        address                 10.1.100.7<BR>        max_check_attempts      5<BR>        check_period            24x7<BR>        contact_groups          admins<BR>        notification_interval   30<BR>        notification_period     24x7<BR>        notification_options    d,u,r<BR>        }<BR>define host{<BR>        host_name               Core-RTR2-MiddleT<BR>        alias                   Cisco-3560-POP<BR>        address                 208.214.xxx.xxx<BR>        max_check_attempts      5<BR>        check_period            24x7<BR>        contact_groups          admins<BR>        notification_interval   30<BR>        notification_period     24x7<BR>        notification_options    d,u,r<BR>        }</DIV>
<DIV>define host{<BR>        host_name               Core-RTR1-MiddleT<BR>        alias                   Cisco-3560-POP<BR>        address                 157.130.xxx.xxx<BR>        max_check_attempts      5<BR>        check_period            24x7<BR>        contact_groups          admins<BR>        notification_interval   30<BR>        notification_period     24x7<BR>        notification_options    d,u,r<BR>        }</DIV>
<DIV>define host{<BR>        host_name               ASA-2<BR>        alias                   Cisco-ASA-POP<BR>        address                 10.1.100.3<BR>        max_check_attempts      5<BR>        check_period            24x7<BR>        contact_groups          admins<BR>        notification_interval   30<BR>        notification_period     24x7<BR>        notification_options    d,u,r<BR>        }<BR>define host{<BR>        host_name               ASA-1<BR>        alias                   Cisco-ASA-POP<BR>        address                 10.1.100.2<BR>        max_check_attempts      5<BR>        check_period            24x7<BR>        contact_groups          admins<BR>        notification_interval   30<BR>        notification_period     24x7<BR>        notification_options    d,u,r<BR>        }<BR>define host{<BR>        host_name          win2k3<BR>        alias              Windows Server<BR>        address            10.1.102.22<BR>        max_check_attempts 5<BR>        check_period       24x7<BR>        contact_groups     admins<BR>        notification_interval   30<BR>        notification_period     24x7<BR>        notification_options    d,u,r<BR>        }<BR>define host{<BR>        host_name          security_server_214<BR>        alias              security Panel 1<BR>        address            65.205.xxx.xxx<BR>        max_check_attempts 5<BR>        check_period       24x7<BR>        contact_groups     mep-admins<BR>        notification_interval   30<BR>        notification_period     24x7<BR>        notification_options    d,u,r<BR>        }<BR>define host{<BR>        host_name               security_server_215<BR>        alias                   security Panel 2<BR>        address                 65.205.xxx.xxx<BR>        max_check_attempts      5<BR>        check_period            24x7<BR>        contact_groups          mep-admins<BR>        notification_interval   30<BR>        notification_period     24x7<BR>        notification_options    d,u,r<BR>        }<BR>define host{<BR>        host_name               security_server_216<BR>        alias                   security Panel 3<BR>        address                 65.205.xxx.xxx<BR>        max_check_attempts      5<BR>        check_period            24x7<BR>        contact_groups          mep-admins<BR>        notification_interval   30<BR>        notification_period     24x7<BR>        notification_options    d,u,r<BR>        }<BR>define host{<BR>        host_name               security_server<BR>        alias                   security server<BR>        address                 65.205.xxx.xxx<BR>        max_check_attempts      5<BR>        check_period            24x7<BR>        contact_groups          mep-admins<BR>        notification_interval   30<BR>        notification_period     24x7<BR>        notification_options    d,u,r<BR>        }<BR>define host{<BR>        host_name          carrier_208<BR>        alias                   carrier control box rm15<BR>        address                 65.205.xxx.xxx<BR>        max_check_attempts      5<BR>        check_period            24x7<BR>        contact_groups          mep-admins<BR>        notification_interval   30<BR>        notification_period     24x7<BR>        notification_options    d,u,r<BR>        }<BR>define host{<BR>        host_name          carrier_209<BR>        alias                   carrier control box 2 rm15<BR>        address                 65.205.xxx.xxx<BR>        max_check_attempts      5<BR>        check_period            24x7<BR>        contact_groups          mep-admins<BR>        notification_interval   30<BR>        notification_period     24x7<BR>        notification_options    d,u,r<BR>        }<BR>define host{<BR>        host_name          carrier_210<BR>        alias                   carrier server<BR>        address                 65.205.xxx.xxx<BR>        max_check_attempts      5<BR>        check_period            24x7<BR>        contact_groups          mep-admins<BR>        notification_interval   30<BR>        notification_period     24x7<BR>        notification_options    d,u,r<BR>        }<BR>define host{<BR>        host_name          lieberts<BR>        alias              lieberts NIC<BR>        address            10.1.102.40<BR>        max_check_attempts 5<BR>        check_period       24x7<BR>        contact_groups     mep-admins<BR>        notification_interval   30<BR>        notification_period     24x7<BR>        notification_options    d,u,r<BR>        }<BR>define host{<BR>        host_name          cr3sensor<BR>        alias              CR3 Sensor<BR>        address            10.1.103.100<BR>        max_check_attempts 5<BR>        check_period       24x7<BR>        contact_groups     sensor-admins<BR>        notification_interval   30<BR>        notification_period     24x7<BR>        notification_options    d,u,r<BR>        }<BR>[root@dns objects]#<BR>:</DIV></TD>
<TD class="" vAlign=top colSpan=2>
<TABLE class="" cellSpacing=0 cellPadding=0 border=1>
<TBODY>
<TR>
<TD class="">
<TABLE class="" border=0>
<TBODY>
<TR>
<TH class="">Type</TH>
<TH class="">Last 1 Min</TH>
<TH class="">Last 5 Min</TH>
<TH class="">Last 15 Min</TH></TR>
<TR>
<TD class="">Active Scheduled Host Checks</TD>
<TD class="">0</TD>
<TD class="">0</TD>
<TD class="">0</TD></TR>
<TR>
<TD class="">Active On-Demand Host Checks</TD>
<TD class="">1</TD>
<TD class="">6</TD>
<TD class="">27</TD></TR>
<TR>
<TD class="">Parallel Host Checks</TD>
<TD class="">0</TD>
<TD class="">0</TD>
<TD class="">0</TD></TR>
<TR>
<TD class="">Serial Host Checks</TD>
<TD class="">0</TD>
<TD class="">0</TD>
<TD class="">0</TD></TR>
<TR>
<TD class="">Cached Host Checks</TD>
<TD class="">1</TD>
<TD class="">6</TD>
<TD class="">27</TD></TR>
<TR>
<TD class="">Passive Host Checks</TD>
<TD class="">0</TD>
<TD class="">0</TD>
<TD class="">1</TD></TR>
<TR>
<TD class="">Active Scheduled Service Checks</TD>
<TD class="">4</TD>
<TD class="">49</TD>
<TD class="">193</TD></TR>
<TR>
<TD class="">Active On-Demand Service Checks</TD>
<TD class="">0</TD>
<TD class="">0</TD>
<TD class="">0</TD></TR>
<TR>
<TD class="">Cached Service Checks</TD>
<TD class="">0</TD>
<TD class="">0</TD>
<TD class="">0</TD></TR>
<TR>
<TD class="">Passive Service Checks</TD>
<TD class="">0</TD>
<TD class="">0</TD>
<TD class="">0</TD></TR>
<TR>
<TD class="">External Commands</TD>
<TD class="">0</TD>
<TD class="">0</TD>
<TD class="">0</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV>
<DIV> </DIV>Network Operations Center Manager <BR>Experis Data Center LLC <BR>8209 Valley Pike <BR>PO Box 535 <BR>Middletown,VA 22645 <BR>phone:540-869-8702 <BR>cell:240-988-3267 <BR>fax:540-869-8710 <BR><A href="mailto:e-mail%3Analoi@experisdatacenters.com" target=_blank mce_href="mailto:e-mail%3Analoi@experisdatacenters.com">mailto:e-mail%3Analoi@experisdatacenters.com</A></DIV><BR>------------------------------------------------------------------------------<BR>Enter the BlackBerry Developer Challenge<BR>This is your chance to win up to $100,000 in prizes! For a limited time,<BR>vendors submitting new applications to BlackBerry App World(TM) will have<BR>the opportunity to enter the BlackBerry Developer Challenge. See full prize<BR>details at: <A href="http://p.sf.net/sfu/Challenge" target=_blank mce_href="http://p.sf.net/sfu/Challenge">http://p.sf.net/sfu/Challenge</A><BR>_______________________________________________<BR>Nagios-users mailing list<BR><A href="mailto:Nagios-users@lists.sourceforge.net" target=_blank mce_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 mce_href="https://lists.sourceforge.net/lists/listinfo/nagios-users">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></BLOCKQUOTE></html>