From 1ffa365d9d6fa5b21691d40d658b206e20afcc90 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