Pinging every host at a specific interval?
Ryan Whalen
lists.rwhalen at gmail.com
Fri Jan 27 19:38:56 CET 2006
Here is an example of a Host. I have ~40-50 of these one after another in
the minimal.cfg file.
define host{
use nn-ping ; Name of host template
to use
host_name Ryan Whalen
alias Ryan Whalen
address 192.168.1.15
check_command check-host-alive
max_check_attempts 10
notification_interval 120
notification_period 24x7
notification_options d,r
contact_groups admins
}
Here is the service template:
define service{
name nn-service ; The 'name' of this
service template
active_checks_enabled 1 ; Active service checks are
enabled
passive_checks_enabled 1 ; Passive service checks are
enabled/accepted
parallelize_check 1 ; Active service checks
should be parallelized (disabling this can lead t
obsess_over_service 1 ; We should obsess over this
service (if necessary)
check_freshness 0 ; Default is to NOT check
service 'freshness'
notifications_enabled 1 ; Service notifications are
enabled
event_handler_enabled 1 ; Service event handler is
enabled
flap_detection_enabled 1 ; Flap detection is enabled
failure_prediction_enabled 1 ; Failure prediction is
enabled
process_perf_data 1 ; Process performance data
retain_status_information 1 ; Retain status information
across program restarts
retain_nonstatus_information 1 ; Retain non-status
information across program restarts
register 0 ; DONT REGISTER THIS
DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE
}
Here is the actual service:
define service{
use nn-service ; Name of service
template to use
host_name Ryan Whalen,(other hosts go here)
service_description PING
is_volatile 0
check_period 24x7
max_check_attempts 4
normal_check_interval 5
retry_check_interval 1
contact_groups admins
notification_interval 960
notification_period 24x7
check_command check_ping!100.0,20%!500.0,60%
}
On 1/27/06, Marc Powell <marc at ena.com> wrote:
>
>
>
> > -----Original Message-----
> > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> > admin at lists.sourceforge.net] On Behalf Of Ryan Whalen
> > Sent: Friday, January 27, 2006 12:09 PM
> > To: nagios-users at lists.sourceforge.net
> > Subject: [Nagios-users] Pinging every host at a specific interval?
> >
> > Hey everyone-
> >
> > I am new to Nagios, and this morning set everything up...everything
> seems
> > to be working, and I have nagios pinging a small number of hosts
> (~50).
> > What I would like to happen is for Nagios to ping them all every 5
> > minutes, and display their status. However, some hosts have not been
> > polled for over 2 hours.
> >
> > It appears that since one device is down, Nagios is putting the
> priority
> > on polling that device rather than polling the other devices in the
> list.
> > I would like to avaid that, because the devices that are being polled
> are
> > at customer locations, so there will be times when either the device
> is
> > unplugged or simply locked up.
>
> I wouldn't consider this normal behavior and may indicate a
> configuration issue. Can you post your host and service definitions for
> one of these 'priority' hosts? You'll probably want to specifically look
> at normal_check_interval, retry_check_interval and max_check_attempts.
> Those specify how long nagios will 'dwell' on a particular host or
> service. For service checks nagios will continue to process other checks
> while performing retry checks of downed services. For host checks,
> nagios will stop all other processing while performing a host check (up
> to max_check_attempts for that host) but will then move back to normal
> scheduling after reaching max_check_attempts.
>
> --
> Marc
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060127/afad7829/attachment.html>
More information about the Users
mailing list