From: Eric Bollengier Date: Thu, 4 Nov 2010 11:39:30 +0000 (+0100) Subject: Fix check_nagios compilation X-Git-Tag: Release-5.2.1~930 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c106b5fdcf369f6b0b1f81a270e2a4773ef68c1e;p=bacula%2Fbacula Fix check_nagios compilation --- diff --git a/bacula/examples/nagios/check_bacula/check_bacula.c b/bacula/examples/nagios/check_bacula/check_bacula.c index 5aef1620eb..83433787ed 100644 --- a/bacula/examples/nagios/check_bacula/check_bacula.c +++ b/bacula/examples/nagios/check_bacula/check_bacula.c @@ -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) {