summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xplugins/check_remote_host.py2
-rw-r--r--plugins/livestatus.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_remote_host.py b/plugins/check_remote_host.py
index 31ff9dd..6f540df 100755
--- a/plugins/check_remote_host.py
+++ b/plugins/check_remote_host.py
@@ -106,7 +106,7 @@ if __name__ == "__main__":
srvc_status = checkLiveStatus(hostAddr, srvc)
finalStatus = finalStatus | srvc_status
if srvc_status == STATUS_CRITICAL:
- criticalSrvcs.append(srvc)
+ criticalSrvcs.append(str(srvc))
# Return the status
if finalStatus == STATUS_CRITICAL:
diff --git a/plugins/livestatus.py b/plugins/livestatus.py
index f0b3bb8..9fc2ad7 100644
--- a/plugins/livestatus.py
+++ b/plugins/livestatus.py
@@ -30,7 +30,7 @@ def readLiveStatus(cmd):
# Change the default separators to
# Linefeed for row, | for columns,
# comma for lists such as contacts, semicolon for lists such as hosts
- cmd += "\nSeparators: 10 124 44 59"
+ cmd += "\nSeparators: 10 124 44 59\n"
s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
s.connect(_socketPath)