diff --git a/BSD/scripts/temp-cpu-bsd.py b/BSD/scripts/temp-cpu-bsd.py index 3cb7451..a25e451 100755 --- a/BSD/scripts/temp-cpu-bsd.py +++ b/BSD/scripts/temp-cpu-bsd.py @@ -68,7 +68,7 @@ trapperStdoutNStr = '\n'.join(trapperStdout) -senderProc = subprocess.Popen([senderPath, isDebug, '-c', agentConf, '-i', '-'], stdin=subprocess.PIPE, stdout=subprocess.DEVNULL, universal_newlines=True) +senderProc = subprocess.Popen([senderPath, '-c', agentConf, '-i', '-'], stdin=subprocess.PIPE, stdout=subprocess.DEVNULL, universal_newlines=True) senderProc.communicate(input=trapperStdoutNStr) if cpuTempRe: diff --git a/Linux/scripts/zabbix-lmsensors-wrapper.py b/Linux/scripts/zabbix-lmsensors-wrapper.py index 4f172d3..ec2d3f4 100755 --- a/Linux/scripts/zabbix-lmsensors-wrapper.py +++ b/Linux/scripts/zabbix-lmsensors-wrapper.py @@ -103,7 +103,7 @@ trapperStdoutNStr = '\n'.join(trapperStdout) -senderProc = subprocess.Popen([senderPath, isDebug, '-c', agentConf, '-i', '-'], stdin=subprocess.PIPE, stdout=subprocess.DEVNULL, universal_newlines=True) +senderProc = subprocess.Popen([senderPath, '-c', agentConf, '-i', '-'], stdin=subprocess.PIPE, stdout=subprocess.DEVNULL, universal_newlines=True) senderProc.communicate(input=trapperStdoutNStr) if cpuTempRe: diff --git a/Win/scripts/zabbix-ohmr-wrapper.py b/Win/scripts/zabbix-ohmr-wrapper.py index 3f5fa80..a660101 100755 --- a/Win/scripts/zabbix-ohmr-wrapper.py +++ b/Win/scripts/zabbix-ohmr-wrapper.py @@ -113,7 +113,7 @@ trapperStdoutNStr = '\n'.join(trapperStdout) # join all list values into one string separated by newlines -senderProc = subprocess.Popen([senderPath, isDebug, '-c', agentConf, '-i', '-'], stdin=subprocess.PIPE, stdout=subprocess.DEVNULL, universal_newlines=True) # execute command with data from stdin, dump stdout and provide string instead of bytes +senderProc = subprocess.Popen([senderPath, '-c', agentConf, '-i', '-'], stdin=subprocess.PIPE, stdout=subprocess.DEVNULL, universal_newlines=True) # execute command with data from stdin, dump stdout and provide string instead of bytes senderProc.communicate(input=trapperStdoutNStr) # provide stdin and send data from 'trapperStdoutNStr' to zabbix server if cpuTempRe: