[Pkg-nagios-devel] Bug#709297: Bug#709297: nagios-plugins-basic/mail.cfg/check_smtp: starttls

Jan Wagner waja at cyconet.org
Tue Jul 9 20:03:48 UTC 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Elrond,

Am 22.05.2013 13:55, schrieb Elrond:
> could you add the following to 
> /etc/nagios-plugins/config/mail.cfg?
> 
> I think, it's a reasonable setting: - People running an smtp server
> with login want starttls - I think the 30 days for warning are a
> good compromise. If it takes a few weeks to buy a new cert, that
> seems okay. Feel free to lower to 21,5.
> 
> 
> define command { command_name	check_smtp_starttls command_line
> /usr/lib/nagios/plugins/check_smtp -H '$HOSTADDRESS$' --starttls -D
> 30,10 }
> 
> 
> I leave it to you, if you want to add an additional version for
> doing the same thing on port 587 (submission).

I would opt against adding more and more special versions of general
checks. Instead I'm thinking about changing the check_smtp command
definition into:

# 'check_smtp' command definition
define command {
        command_name    check_smtp
        command_line    /usr/lib/nagios/plugins/check_smtp -H
'$HOSTADDRESS$' '$ARG1$'
}

With this you have the possibility to do:

check_smtp!'--starttls -D 30,10'

and:

check_smtp!'--starttls -D 30,10 -p 587'

even much more ... but the best thing is, it is backward compatible to
the actual command definition.

Cheers, Jan.
- -- 
Never write mail to <waja at spamfalle.info>, you have been warned!
- -----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GIT d-- s+: a C+++ UL++++ P+ L+++ E--- W+++ N+++ o++ K++ w--- O M V-
PS PE Y++
PGP++ t-- 5 X R tv- b+ DI D+ G++ e++ h---- r+++ y++++
- ------END GEEK CODE BLOCK------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iD8DBQFR3Gyg9u6Dud+QFyQRAkV7AKCZGkBsQYSP46q1h29AqITWnUr6mgCdE6Qx
PTadzKFl2bUGQUrngMW8IZo=
=aHbu
-----END PGP SIGNATURE-----



More information about the Pkg-nagios-devel mailing list