Hi,

check_bacula fails on file daemon (version 11.0.1):

$ check_bacula -H localhost -D fd -M vlbackup.obvsg.at-mon -K secretsecret
BACULA CRITICAL - FileDaemon Status: Events: code=FC0002 
daemon=vlbackup.obvsg.at-fd ref=0x7fe29000ee58 type=connection 
source=vlbackup.obvsg.at-mon text=Director connection


it seems the events_send_msg in hello_cmd causes the troubles.


bacula/src/filed/job.c
...
static int hello_cmd(JCR *jcr)
{
   Dmsg0(120, "Calling Authenticate\n");

   FDAuthenticateDIR auth(jcr);
   if (!auth.validate_dir_hello()) {
      return 0;
   }
   if (!auth.authenticate_director()) {
      return 0;
   }
   Dmsg0(120, "OK Authenticate\n");
   jcr->authenticated = true;

   /* Keep track of the important events */
   events_send_msg(jcr, "FC0002", EVENTS_TYPE_CONNECTION,
                   jcr->director->hdr.name, (intptr_t)jcr, "Director 
connection");

   dequeue_messages(jcr);     /* dequeue any daemon messages */
   return 1;
}
...


are there changes needed in check_bacula to ignore such events or are changes 
needed in filed ?


Best regards
Ulrich



--
Ulrich Leodolter <ulrich.leodol...@obvsg.at>
Leitung Abteilung Betrieb und Technische Betreuung

Oesterreichische Bibliothekenverbund und Service GmbH
Raimundgasse 1/3, A-1020 Wien

Fax: +43 1 4035158-30
Tel: +43 1 4035158-21
Web: https://www.obvsg.at


_______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to