[icinga-users] Beginners question smtpauth check

Andreas Grabner andreas.grabner at fenz-software.at
Thu Nov 26 13:49:05 CET 2015


> >
> > /usr/lib/nagios/plugins/check_smtp -A 'LOGIN' '-H' 'xxxxxxxxxx '-P'
> 'xxxxxxx'  '-U' 'xxxxxxxxxxxxxxx' '-f' 'xxxxxxxxxxxxxxx' '-S' 'true'
> > Is working, but don`t know how to put it there.
> >
> > I think it is an misconfiguration or ab bug. I think the mistake is in
> > command-plugins.conf
> >
> > object CheckCommand "smtp" {
> >        import "plugin-check-command"
> >        import "ipv4-or-ipv6"
> >
> >        command = [ PluginDir + "/check_smtp" ]
> >
> >        arguments = {
> >                "-H" = "$smtp_address$"
> >                "-p" = "$smtp_port$"
> >                "-f" = "$smtp_mail_from$"
> >                "-e" = "$smtp_expect$"
> >                "-C" = "$smtp_command$"
> >                "-R" = "$smtp_response$"
> >                "-F" = "$smtp_helo_fqdn$"
> >                "-D" = "$smtp_certificate_age$"
> >                "-A" = "$smtp_authtype$"
> >                "-U" = "$smtp_authuser$"
> >                "-P" = "$smtp_authpass$"
> >                "-q" = "$smtp_ignore_quit$"
> >                "-w" = "$smtp_warning$"
> >                "-c" = "$smtp_critical$"
> >                "-t" = "$smtp_timeout$"
> >                "-S" = "$smtp_starttls$"
> >        }
> >
> >        vars.smtp_address = "$check_address$"
> > }
> >
> > Whats your opinion?
> 
> Bug. smtp_starttls should use set_if.
> 
> “-S” = {
>   set_if = “$smtp_starttls$"
> }
> 
> Could you please test that patch, open an issue on dev.icinga.org and add a
> git patch (against current git master) in format of ‘git format-patch’.
> https://wiki.icinga.org/display/Dev/Developer+Guidelines#DeveloperGuideli
> nes-SendingaPatch

I confirm the patch is working. I will open an issue and send a patch, but tomorrow or on weekend.

Thanks a lot!
Andreas




More information about the icinga-users mailing list