nagios: Fix the check_supybot_pugin

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2020-10-06 17:03:43 +02:00
parent 373d9385e1
commit 65c85dd5ec

View file

@ -72,16 +72,16 @@ try:
while 1:
readbuffer = readbuffer+s.recv(1024).decode()
temp = str.split(readbuffer, "\n")
temp = readbuffer.split("\n")
readbuffer = temp.pop()
for line in temp:
line = str.rstrip(line)
line = line.rstrip()
if args.debug:
print(" * ", line)
line = str.split(line)
line = line.split()
if line[1] == 'MODE':
msg = "privmsg zodbot :list\r\n".encode()