Jeronimo Zucco wrote:
> NOBODY KNOWS ???
>
Lots of people know. The answer is ofcourse that you should read and
understand the manual before asking questions here. The Nagios config
documentation really is quite extensive.
Perhaps you missed this particular snippet when configuring?
---%<---%<---%<---
One important thing to note is that by default, Nagios will use the most
current hard state of the service(s) that is/are being depended upon
when it does the dependeny checks. If you want Nagios to use the most
current state of the services (regardless of whether its a soft or hard
state), enable the soft_service_dependencies option.
---%<---%<---%<---
There are lots of other goodies in the docs.
> Jeronimo Zucco escreveu:
>> Hi, all.
>>
>> I have problem using service dependencies. I have a backup server
>> (bacula), and I check status of backup through a mysql query (
>> http://darcs.complete.org/debian/bacula.upstream/examples/nagios.txt )
>> on server bacula using nrpe in server bacula.
>>
>> I have many others servers with I do backups in bacula (like server1
>> below), then I check status of backup of this server, with this definition:
>>
>> define service{
>> use generic-service ; Name
>> of service template to use
>> nameTEMPLATE-REMOTE-BACULA-BACKUP
>> service_description Backup
>> is_volatile 0
>> check_period24x7
>> max_check_attempts 4
>> normal_check_interval 5
>> retry_check_interval1
>> notification_optionsw,u,c,r
>> notification_interval 0
>> notification_period 24x7
>> register0
>> }
>>
>> define service{
>> use TEMPLATE-REMOTE-BACULA-BACKUP
>> host_nameserver1
>> contact_groupsadmins
>> register1
>> check_command check_remote_bacula_server1Job
>> }
>>
>> define servicedependency{
>> host_name server1
>> service_description Backup
>> dependent_host_name bacula
>> dependent_service_description PING
>> execution_failure_criteria u,c
>> notification_failure_criteria w,u,c
>> }
>>
>> I configure service dependency because when I shutdown bacula/mysql
>> server, I got many notifications about backups. What is wrong in my
>> definition of service dependency ? I want no notifications when bacula
>> server is down.
>>
>> Thank you.
>>
>>
>
>
--
Andreas Ericsson [EMAIL PROTECTED]
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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