From: Kern Sibbald Date: Sun, 30 Mar 2014 14:33:15 +0000 (+0200) Subject: Fix typo in check_bacula.c + add makeit to build X-Git-Tag: Release-7.0.1~13 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=adc4d7dcfd05ac4e8344a69396bda9d24e579ca7;p=bacula%2Fbacula Fix typo in check_bacula.c + add makeit to build --- diff --git a/bacula/examples/nagios/check_bacula/check_bacula.c b/bacula/examples/nagios/check_bacula/check_bacula.c index 0aedfcd5f6..1546da7938 100644 --- a/bacula/examples/nagios/check_bacula/check_bacula.c +++ b/bacula/examples/nagios/check_bacula/check_bacula.c @@ -286,7 +286,7 @@ int docmd(monitoritem* item, const char* command, char *answer) { case R_CLIENT: filed = (CLIENT*)item->resource; item->D_sock = new_bsock(); - item->D_sock = connect(NULL, 0, 0, 0, "File daemon", filed->address, NULL, filed->FDport, 0); + item->D_sock->connect(NULL, 0, 0, 0, "File daemon", filed->address, NULL, filed->FDport, 0); dname = "FileDaemon"; break; case R_STORAGE: diff --git a/bacula/examples/nagios/check_bacula/makeit b/bacula/examples/nagios/check_bacula/makeit new file mode 100755 index 0000000000..1cf3b1d001 --- /dev/null +++ b/bacula/examples/nagios/check_bacula/makeit @@ -0,0 +1,3 @@ +#!/bin/sh + +make LIBS="-lpthread -ldl -lssl -lcrypto -lz"