From: Eric Bollengier Date: Thu, 4 Nov 2010 11:39:30 +0000 (+0100) Subject: Fix check_nagios compilation X-Git-Tag: Release-7.0.0~1395 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1ffa365d9d6fa5b21691d40d658b206e20afcc90;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) {