LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-08-2008, 11:29 AM   #1
investmentbnker75
Member
 
Registered: Oct 2007
Location: Eastern Seaboard
Distribution: CentOS
Posts: 162

Rep: Reputation: 15
Nagios setup


Hi im having trouble setting up a service check in services.cfg that i need to run every min in OK and critical states, retry only once and notify after every min when critical. Heres what i have:

define service {
name generic-service-diff ; The 'name' of this service template, referenced in other service defin
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 to major
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 0 ; Flap detection 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

is_volatile 0
check_period 24x7
max_check_attempts 1
contact_groups admins
notification_period 24x7
notification_options w,u,c,r,f

register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
}


define service {
use generic-service-diff
name generic-service-minimum
normal_check_interval 1 ; 1 min ; How often Nagios runs a check of the service
retry_check_interval 1 ; 1 min ; How often Nagios rechecks the alerting service
notification_interval 1 ; 1 min ; How often Nagios re-alerts
register 0
}
 
Old 08-10-2008, 04:22 AM   #2
immortaltechnique
Member
 
Registered: Oct 2006
Location: Kenya
Distribution: Ubuntu, RHEL, OpenBSD
Posts: 287

Rep: Reputation: 32
Ahem i have to ask, where is the problem exactly?
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Nagios E-mail notification setup Hiroyatamoto Linux - Newbie 3 07-01-2008 04:30 PM
How to setup /configure Nagios monitoring tool randybards Linux - Newbie 1 04-16-2008 10:36 AM
Issue during Nagios Setup????? ajeetraina Linux - Software 1 12-07-2007 02:52 PM
Host is down in nagios; first time setup Mangenius Linux - Software 7 01-08-2007 04:44 PM
How to setup Nagios katmai90210 Linux - Networking 2 06-19-2005 11:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration