LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-16-2010, 08:24 AM   #1
rutledgetome
LQ Newbie
 
Registered: Jan 2010
Posts: 5

Rep: Reputation: 0
Question Nagios dependencies.cfg example file


Does anyone have a working example of a dependencies.cfg file for nagios?

I have not been successful in setting one up that works, and need guidance. (none of the books or documents have helped with this)

For instance, if one of my checked systems goes down, and therefore fails a PING check, I do NOT need to be notified that a file system is unavailable, or that SSH is down, too.

Thank you for any assistance you can provide.
 
Old 03-16-2010, 10:31 AM   #2
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by rutledgetome View Post
Does anyone have a working example of a dependencies.cfg file for nagios?

I have not been successful in setting one up that works, and need guidance. (none of the books or documents have helped with this)

For instance, if one of my checked systems goes down, and therefore fails a PING check, I do NOT need to be notified that a file system is unavailable, or that SSH is down, too.

Thank you for any assistance you can provide.

example

Code:
# NRPE
define servicedependency{
        host_name                       server1
        service_description             NRPE
        dependent_host_name             server1
        dependent_service_description   ^.* (NRPE)$
        execution_failure_criteria      c
        notification_failure_criteria   w,u,c
}


server1 has a check to check NRPE is listening on its port.
It also has disk check (NRPE)
CPU (NRPE)
QMAIL (NRPE)


so....if NRPE goes down, any other services that have (NRPE) in the services description will not alert.

Last edited by centosboy; 03-16-2010 at 10:32 AM.
 
1 members found this post helpful.
Old 03-17-2010, 12:08 PM   #3
rutledgetome
LQ Newbie
 
Registered: Jan 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Thumbs up Nagios dependencies.cfg example - follow up

Thank you for your example on setting up dependencies.cfg for Nagios. My test is working perfectly now.

One thing I have found in my testing is that the primary service (service_description item) must have a shorter check period or fewer re-checks than any service dependent upon it (dependent_service_description item). Otherwise, if the dependent service fails first (after all its retries) then it WILL send a notice out.

Again, Thanks for your help!

- Tom Rutledge
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] nagios.cfg errors. worm5252 Linux - Server 3 12-17-2009 09:39 PM
grub.cfg file configuration help niravshah Linux - Newbie 4 09-19-2009 10:53 PM
nagios and contactgroups.cfg d2490n Linux - Software 3 03-20-2008 09:27 AM
CFG File Get_ConnEcTed Linux - Server 1 07-30-2007 10:18 AM
Update my kickstart file .cfg davidfxg Red Hat 1 05-27-2007 07:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:35 AM.

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