]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix check_nagios compilation
authorEric Bollengier <eric@eb.homelinux.org>
Thu, 4 Nov 2010 11:39:30 +0000 (12:39 +0100)
committerEric Bollengier <eric@eb.homelinux.org>
Thu, 18 Nov 2010 17:56:08 +0000 (18:56 +0100)
bacula/examples/nagios/check_bacula/check_bacula.c

index 5aef1620ebc97d01547fb7051f9c9add11b80cee..83433787eda7d2d74b624314a49a80fe98ae46ac 100644 (file)
@@ -336,8 +336,8 @@ int docmd(monitoritem* item, const char* command, char *answer) {
                strcpy(answer, "BACULA WARNING - << EOD >>");
                return STATE_WARNING;
         }
-        else if (item->D_sock->msglen == BNET_PROMPT) {
-           strcpy(answer, "BACULA WARNING - BNET_PROMPT signal received.");
+        else if (item->D_sock->msglen == BNET_SUB_PROMPT) {
+           strcpy(answer, "BACULA WARNING - BNET_SUB_PROMPT signal received.");
            return STATE_WARNING;
         }
         else if (item->D_sock->msglen == BNET_HEARTBEAT) {