Commit 361e0e7f authored by Jonathan Michalon's avatar Jonathan Michalon

Fix from addr SMTP option and default

parent a9a6613c
......@@ -208,7 +208,8 @@ class CheckSMTP(Check):
def build_command(self):
command = ['/usr/lib/nagios/plugins/check_smtp',
'-H', self.addr,
'-f', self._options.get('from', 'nonexisting@localhost'),
'-f', self._options.get('from_addr',
'-t', '2']
if 'command' in self._options:
command += ['-C', str(self._options['command'])]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment