From bbd56fded03d9b0786915227dee49b2ae8d2fbb4 Mon Sep 17 00:00:00 2001
From: Dennis Ahrens <dennis.ahrens@hs-hannover.de>
Date: Mon, 17 Aug 2020 12:46:35 +0200
Subject: [PATCH] Fixed the library id script.

---
 checkmk/custom-files/local/remaining_library_ids | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/checkmk/custom-files/local/remaining_library_ids b/checkmk/custom-files/local/remaining_library_ids
index 0376a00..220a2ad 100644
--- a/checkmk/custom-files/local/remaining_library_ids
+++ b/checkmk/custom-files/local/remaining_library_ids
@@ -1,5 +1,5 @@
 #!/bin/bash
 
-REMAINNG = $(sudo -u postgres -- psql -qtAX -d hshinfo -c "select (maximum_value::bigint - (SELECT last_value FROM hshinfo.seq_raw_library_id)) from information_schema.sequences where sequence_schema = 'hshinfo' and sequence_name = 'seq_raw_library_id';")
+REMAINING=$(sudo -u postgres -- psql -qtAX -d hshinfo -c "select (maximum_value::bigint - (SELECT last_value FROM hshinfo.seq_raw_library_id)) from information_schema.sequences where sequence_schema = 'hshinfo' and sequence_name = 'seq_raw_library_id';")
 
-echo "P remaining_library_ids=$REMAINING;400:;200: That many library IDs are available."
\ No newline at end of file
+echo "P watch_lib_ids remaining_library_ids=$REMAINING;400:;200: That many library IDs are available."
-- 
GitLab