<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">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">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 cellpadding="10" border="0">
<tbody>
<tr>
<td 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 valign="top" colspan="2">
<table cellspacing="0" cellpadding="0" border="1">
<tbody>
<tr>
<td>
<table border="0">
<tbody>
<tr>
<th>Type</th>
<th>Last 1 Min</th>
<th>Last 5 Min</th>
<th>Last 15 Min</th></tr>
<tr>
<td>Active Scheduled Host Checks</td>
<td>0</td>
<td>0</td>
<td>0</td></tr>
<tr>
<td>Active On-Demand Host Checks</td>
<td>1</td>
<td>6</td>
<td>27</td></tr>
<tr>
<td>Parallel Host Checks</td>
<td>0</td>
<td>0</td>
<td>0</td></tr>
<tr>
<td>Serial Host Checks</td>
<td>0</td>
<td>0</td>
<td>0</td></tr>
<tr>
<td>Cached Host Checks</td>
<td>1</td>
<td>6</td>
<td>27</td></tr>
<tr>
<td>Passive Host Checks</td>
<td>0</td>
<td>0</td>
<td>1</td></tr>
<tr>
<td>Active Scheduled Service Checks</td>
<td>4</td>
<td>49</td>
<td>193</td></tr>
<tr>
<td>Active On-Demand Service Checks</td>
<td>0</td>
<td>0</td>
<td>0</td></tr>
<tr>
<td>Cached Service Checks</td>
<td>0</td>
<td>0</td>
<td>0</td></tr>
<tr>
<td>Passive Service Checks</td>
<td>0</td>
<td>0</td>
<td>0</td></tr>
<tr>
<td>External Commands</td>
<td>0</td>
<td>0</td>
<td>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">e-mail:naloi@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">http://p.sf.net/sfu/Challenge</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>