]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix typo in check_bacula.c + add makeit to build
authorKern Sibbald <kern@sibbald.com>
Sun, 30 Mar 2014 14:33:15 +0000 (16:33 +0200)
committerKern Sibbald <kern@sibbald.com>
Sun, 30 Mar 2014 14:33:15 +0000 (16:33 +0200)
bacula/examples/nagios/check_bacula/check_bacula.c
bacula/examples/nagios/check_bacula/makeit [new file with mode: 0755]

index 0aedfcd5f6beea5b0fe179d83311eecc77e9998e..1546da79387f3b7da77f05e2b770646ab49799dd 100644 (file)
@@ -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 (executable)
index 0000000..1cf3b1d
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+make LIBS="-lpthread -ldl -lssl -lcrypto -lz"