Problem with check_smtp
Marc Powell
marc at ena.com
Fri Oct 28 20:08:05 CEST 2005
> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Mário Sérgio Candian
> Sent: Friday, October 28, 2005 11:23 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Problem with check_smtp
>
> Hi guys,
>
> I have had some problems with check_smtp plugin. When I try to check
> manually, I get this:
>
> (root at firewall)~# /usr/local/libexec/nagios/check_smtp -H 201.x.y.3
> Socket timeout after 10 seconds
> Exit 2
1) You should always test plugins as the nagios user. Root has elevated privileges and you may not see the same results when the plugin is run as the nagios user.
2) It would appear that
a) your SMTP server is taking longer than 10 seconds to respond or
b) you can't connect to it from that host.
>From firewall, can you 'telnet 201.x.y.3 25', see the banner, issue the 'quit' command and be disconnected in under 10 seconds (accounting for the time it takes you to type those commands)? If it's taking longer than 10 seconds and that's normal, you can use the -t parameter to increase the timeout length. Make sure that your master plugin timeout value in nagios.cfg is at least as long as what you use for the plugin though.
> I'm using Nagios v1.2 with a FreeBSD 5.4-STABLE.
What version of the plugins are you using?
--
Marc
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list