The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Nagios 2.12 (2.x branch) iBot Software Releases - RSS News 0 05-21-2008 09:40 PM
Nagios 2.11 (2.x branch) iBot Software Releases - RSS News 0 03-12-2008 07:00 PM
S-190: Nagios Vulnerabilities iBot Security Advisories (RSS) 0 02-15-2008 10:30 AM
MRTG vs Nagios unknown2205 Security 1 04-29-2006 01:02 AM
Nagios - How to install ! ArabOracle.com SUN Solaris 2 03-11-2006 01:25 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-20-2007
bache_gowda bache_gowda is offline
Registered User
  
 

Join Date: Sep 2001
Posts: 67
timeperiod_name workhours in nagios

Hi All,

Any of you explain in brief on "timeperiod_name workhours" in nagios

for example: define timeperiod{
timeperiod_name workhours
alias "Normal" Working Hours
monday 08:00-18:00
tuesday 08:00-18:00 ....

this means, is it check the respective service at 08:00 & 18:00 or it will checks every hr/sec ... please clarify

Thanks in advance for your valuable feedback

Regards,
Bachegowda
  #2 (permalink)  
Old 04-20-2007
Yogesh Sawant's Avatar
Yogesh Sawant Yogesh Sawant is offline Forum Staff  
Part Time Moderator and Full Time Dad
  
 

Join Date: Sep 2006
Location: Rossem, Tazenda
Posts: 1,086
read about timeperiods in the online documentation of Nagios: here
  #3 (permalink)  
Old 04-22-2007
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
  
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
The timeperiods only cover alerting coverage for that particular service, as referenced by the notification_period directive in services.cfg.

To specify how often services are checked, normal_check_interval is what you need (here, we check every 2 minutes), then we retry on failure every 1 minute, and notify every 20 minutes until the service comes good or is acknowledged. We also check the service 3 times before alerting (i.e. the failure, then two retries).

Code:
define service {
        ...
        max_check_attempts              3
        normal_check_interval           2
        retry_check_interval            1
        notification_interval           20
        notification_period             mytimeperiod
        ...
}

Cheers
ZB
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:34 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0