aboutsummaryrefslogtreecommitdiff
path: root/sysutils/bacula11-server/files/patch-examples_nagios_check__bacula_check__bacula.c
blob: 835d73110d88d135a32c9d6098d16c7455c56da5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- examples/nagios/check_bacula/check_bacula.c.orig	2021-04-01 12:38:35 UTC
+++ examples/nagios/check_bacula/check_bacula.c
@@ -324,7 +324,7 @@ int docmd(monitoritem* item, const char* command, char
             continue;
          }
 
-        if (strncmp(item->D_sock, "Events:", strlen("Events:")) == 0) {
+        if (strncmp(item->D_sock->msg, "Events:", strlen("Events:")) == 0) {
            /* Daemons can send events to the director, ignore them here */
            continue;
         }