mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-20 21:57:10 -04:00
Enhanced check_smtp to actually print invalid response text (#1911239)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1942 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
parent
9188225da4
commit
082c32f972
1 changed files with 3 additions and 3 deletions
|
|
@ -194,10 +194,10 @@ main (int argc, char **argv)
|
|||
/* make sure we find the response we are looking for */
|
||||
if (!strstr (buffer, server_expect)) {
|
||||
if (server_port == SMTP_PORT)
|
||||
printf (_("Invalid SMTP response received from host\n"));
|
||||
printf (_("Invalid SMTP response received from host: %s\n"), buffer);
|
||||
else
|
||||
printf (_("Invalid SMTP response received from host on port %d\n"),
|
||||
server_port);
|
||||
printf (_("Invalid SMTP response received from host on port %d: %s\n"),
|
||||
server_port, buffer);
|
||||
result = STATE_WARNING;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue