YUP - that's just what I needed - thanks, Guy!
-----Original Message-----
From: Guy Waugh [mailto:guid...@gmail.com]
Sent: Tuesday, July 14, 2009 01:45 PM
To: 'Natalie Aloi'
Cc: 'Nagios Users Mail-list'
Subject: Re: [Nagios-users] Host Checks & Service Checks

Hi Natalie,

You might need a 'check_command' for each of your hosts... like this:

 check_command check-host-alive

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).

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.

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:

http://nagios.sourceforge.net/docs/3_0/toc.html

Cheers,
Guy.


On Tue, Jul 14, 2009 at 6:34 PM, Natalie Aloi <na...@experisdatacenters.com> 
wrote:
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
statistics[r...@dns objects]# more hosts.cfg
define host{
 host_name localhost
 alias Local_host
 address 127.0.0.1
 max_check_attempts 5
 check_period 24x7
 contact_groups admins
 notification_interval 30
 notification_period 24x7
 notification_options d,r
 }
define host{
 host_name MT-Core-Switch-1
 alias Cisco-6509-CR3
 address 10.1.100.253
 max_check_attempts 5
 check_period 24x7
 contact_groups admins
 notification_interval 30
 notification_period 24x7
 notification_options d,u,r
 }
define host{
 host_name MT-Core-Switch-2
 alias Cisco-6509-CR3
 address 10.1.100.252
 max_check_attempts 5
 check_period 24x7
 contact_groups admins
 notification_interval 30
 notification_period 24x7
 notification_options d,u,r
 }
define host{
 host_name Ext3560-1
 alias Cisco-3560-POP
 address 10.1.100.5
 max_check_attempts 5
 check_period 24x7
 contact_groups admins
 notification_interval 30
 notification_period 24x7
 notification_options d,u,r
 }
define host{
 host_name Ext3560-2
 alias Cisco-3560-POP
 address 10.1.100.7
 max_check_attempts 5
 check_period 24x7
 contact_groups admins
 notification_interval 30
 notification_period 24x7
 notification_options d,u,r
 }
define host{
 host_name Core-RTR2-MiddleT
 alias Cisco-3560-POP
 address 208.214.xxx.xxx
 max_check_attempts 5
 check_period 24x7
 contact_groups admins
 notification_interval 30
 notification_period 24x7
 notification_options d,u,r
 }
define host{
 host_name Core-RTR1-MiddleT
 alias Cisco-3560-POP
 address 157.130.xxx.xxx
 max_check_attempts 5
 check_period 24x7
 contact_groups admins
 notification_interval 30
 notification_period 24x7
 notification_options d,u,r
 }
define host{
 host_name ASA-2
 alias Cisco-ASA-POP
 address 10.1.100.3
 max_check_attempts 5
 check_period 24x7
 contact_groups admins
 notification_interval 30
 notification_period 24x7
 notification_options d,u,r
 }
define host{
 host_name ASA-1
 alias Cisco-ASA-POP
 address 10.1.100.2
 max_check_attempts 5
 check_period 24x7
 contact_groups admins
 notification_interval 30
 notification_period 24x7
 notification_options d,u,r
 }
define host{
 host_name win2k3
 alias Windows Server
 address 10.1.102.22
 max_check_attempts 5
 check_period 24x7
 contact_groups admins
 notification_interval 30
 notification_period 24x7
 notification_options d,u,r
 }
define host{
 host_name security_server_214
 alias security Panel 1
 address 65.205.xxx.xxx
 max_check_attempts 5
 check_period 24x7
 contact_groups mep-admins
 notification_interval 30
 notification_period 24x7
 notification_options d,u,r
 }
define host{
 host_name security_server_215
 alias security Panel 2
 address 65.205.xxx.xxx
 max_check_attempts 5
 check_period 24x7
 contact_groups mep-admins
 notification_interval 30
 notification_period 24x7
 notification_options d,u,r
 }
define host{
 host_name security_server_216
 alias security Panel 3
 address 65.205.xxx.xxx
 max_check_attempts 5
 check_period 24x7
 contact_groups mep-admins
 notification_interval 30
 notification_period 24x7
 notification_options d,u,r
 }
define host{
 host_name security_server
 alias security server
 address 65.205.xxx.xxx
 max_check_attempts 5
 check_period 24x7
 contact_groups mep-admins
 notification_interval 30
 notification_period 24x7
 notification_options d,u,r
 }
define host{
 host_name carrier_208
 alias carrier control box rm15
 address 65.205.xxx.xxx
 max_check_attempts 5
 check_period 24x7
 contact_groups mep-admins
 notification_interval 30
 notification_period 24x7
 notification_options d,u,r
 }
define host{
 host_name carrier_209
 alias carrier control box 2 rm15
 address 65.205.xxx.xxx
 max_check_attempts 5
 check_period 24x7
 contact_groups mep-admins
 notification_interval 30
 notification_period 24x7
 notification_options d,u,r
 }
define host{
 host_name carrier_210
 alias carrier server
 address 65.205.xxx.xxx
 max_check_attempts 5
 check_period 24x7
 contact_groups mep-admins
 notification_interval 30
 notification_period 24x7
 notification_options d,u,r
 }
define host{
 host_name lieberts
 alias lieberts NIC
 address 10.1.102.40
 max_check_attempts 5
 check_period 24x7
 contact_groups mep-admins
 notification_interval 30
 notification_period 24x7
 notification_options d,u,r
 }
define host{
 host_name cr3sensor
 alias CR3 Sensor
 address 10.1.103.100
 max_check_attempts 5
 check_period 24x7
 contact_groups sensor-admins
 notification_interval 30
 notification_period 24x7
 notification_options d,u,r
 }
[r...@dns objects]#
:
TypeLast 1 MinLast 5 MinLast 15 MinActive Scheduled Host Checks000Active 
On-Demand Host Checks1627Parallel Host Checks000Serial Host Checks000Cached 
Host Checks1627Passive Host Checks001Active Scheduled Service 
Checks449193Active On-Demand Service Checks000Cached Service Checks000Passive 
Service Checks000External Commands000

Network Operations Center Manager
Experis Data Center LLC
8209 Valley Pike
PO Box 535
Middletown,VA 22645
phone:540-869-8702
cell:240-988-3267
fax:540-869-8710
mailto:e-mail%3ana...@experisdatacenters.com

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue.
::: Messages without supporting info will risk being sent to /dev/null



------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Reply via email to