From c106b5fdcf369f6b0b1f81a270e2a4773ef68c1e Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 4 Nov 2010 12:39:30 +0100 Subject: [PATCH] Fix check_nagios compilation --- bacula/examples/nagios/check_bacula/check_bacula.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.39.5