Hi,<br><br>When check_smtp first connects to the SMTP server, we expect a 220 (or whatever we specify with -e). On subsequent commands specified with -C, we expect the strings passed in -R. For example ;<br><br>$ /usr/lib/nagios/plugins/check_smtp -v -H ... -C "MAIL FROM: <...>" -R 250<br>
HELOCMD: HELO ...<br>220 ... Microsoft ESMTP MAIL Service ready at Mon, 19 Mar 2012 11:52:18 +1000<br>250 2.1.0 Sender OK<br><br>IMO, anything other than what is expected should be CRITICAL, not WARNING.<br><br>I would expect that in most 24x7 environments where admins receive alerts via SMS, people will configure SMS contact notification options to not include warning levels. You only want to be woken up when a service is critical. ie. service_notification_options c,r. Obviously, you could create a second contact that receives SMS on warning & use that for the SMS service, but this doesn't fit well with other checks. If a service is not behaving as expected, i'd say this is critical.<br>
<br>The attached patch is a quick hack to ensure at least these conditions are critical. YMMV.<br><br>Regards,<br>Grant<br><br>