Hi, On 12/18/2006 12:05 PM, Jeronimo Zucco wrote: > 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.
Basically, this question might better fit to the nagios-users mailing list. In fact, I'm quite sure there are many working examples of service dependecies to be found there. As a note: I monitor my backups with Nagios, too, but I do it by using a "Run After Job Script" that submits a passive service check result to Nagios, and the corresponding Nagios service checks are configured as passive, with a check_interval longer than any expected between-backup-period, and an active service check that only returns 'Backup not run' and a result code of CRITICAL. Arno > 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 > name TEMPLATE-REMOTE-BACULA-BACKUP > service_description Backup > is_volatile 0 > check_period 24x7 > max_check_attempts 4 > normal_check_interval 5 > retry_check_interval 1 > notification_options w,u,c,r > notification_interval 0 > notification_period 24x7 > register 0 > } > > define service{ > use TEMPLATE-REMOTE-BACULA-BACKUP > host_name server1 > contact_groups admins > register 1 > 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. > -- IT-Service Lehmann [EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de ------------------------------------------------------------------------- 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 _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users