<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.8.1">
</HEAD>
<BODY>
Hi,<BR>
Actually you have to add the equipment to the service.cfg file. In fact you have to add a service for your equipment, if not, nagios will mark the host with pending status because is waiting for some service to monitor.<BR>
For example you have a router defined in hosts.cfg:<BR>
# 'router1' host definition<BR>
define host{<BR>
use generic-host ; Name of host template to use<BR>
<BR>
host_name router1<BR>
alias Router #1<BR>
address 192.168.1.254<BR>
check_command check-host-alive<BR>
max_check_attempts 20<BR>
notification_interval 60<BR>
notification_period 24x7<BR>
notification_options d,u,r<BR>
}<BR>
Then you have to add the following into services.cfg to monitor the host:<BR>
# Service definition<BR>
define service{<BR>
use generic-service ; Name of service template to use<BR>
<BR>
host_name router1<BR>
service_description PING<BR>
is_volatile 0<BR>
check_period 24x7<BR>
max_check_attempts 3<BR>
normal_check_interval 5<BR>
retry_check_interval 1<BR>
contact_groups router-admins<BR>
notification_interval 240<BR>
notification_period 24x7<BR>
notification_options c,r<BR>
check_command check_ping!100.0,20%!500.0,60%<BR>
}<BR>
<BR>
The last configuration is the most simple monitor.<BR>
Hope it help.<BR>
<BR>
Best Regards.<BR>
<BR>
On Thu, 2006-02-02 at 20:12 -0500, Patrick M. Rutkowski wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">I have several hosts with no associated services, and their status</FONT>
<FONT COLOR="#000000">bars are stuck on "PENDING" in the Host Detail cgi. check_command on</FONT>
<FONT COLOR="#000000">them is set to check-host-alive, and checks_enabled is set to 1. What</FONT>
<FONT COLOR="#000000">am I doing wrong, why aren't the hosts being checked?</FONT>
<FONT COLOR="#000000">-------------------------------------------------------</FONT>
<FONT COLOR="#000000">This SF.net email is sponsored by: Splunk Inc. Do you grep through log files</FONT>
<FONT COLOR="#000000">for problems? Stop! Download the new AJAX search engine that makes</FONT>
<FONT COLOR="#000000">searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!</FONT>
<FONT COLOR="#000000"><A HREF="http://sel.as-us.falkag.net/sel?cmd=lnk&kid">http://sel.as-us.falkag.net/sel?cmd=lnk&kid</A>3432&bid#0486&dat1642</FONT>
<FONT COLOR="#000000">_______________________________________________</FONT>
<FONT COLOR="#000000">Nagios-users mailing list</FONT>
<FONT COLOR="#000000"><A HREF="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</A></FONT>
<FONT COLOR="#000000"><A HREF="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</A></FONT>
<FONT COLOR="#000000">::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. </FONT>
<FONT COLOR="#000000">::: Messages without supporting info will risk being sent to /dev/null</FONT>
</PRE>
</BLOCKQUOTE>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<BR>
Diego.
</TD>
</TR>
</TABLE>
</BODY>
</HTML>