check_smtp returning critical error wheneverything is working fine.

Craig Marchant craigm at ace.com.au
Mon May 19 08:46:21 CEST 2003


Hi Karl,

Sorry should have been a little more detailed. It's been a long day.

I'm currently using Redhat Linux Version 8.0, with Postfix 2.0.9.
The server im actually querying is: mail.acenet.com.au

Nagios: 1.0 Release Date: 11/24/2002 <-- Downloaded from the website,
so i'm guessing it's the release version
Nagios Plugins: 1.3.0 <-- Downloaded from the sourceforge web site,
once again I guess release version. 

Service definition:
-------------------------------

# Service definition
define service{
        use                             generic-service         ; Name
of service template to use

        host_name                       mail1
        service_description          SMTP Service
        is_volatile                         0
        check_period                    24x7
        max_check_attempts       3
        normal_check_interval      5
        retry_check_interval         1
        contact_groups                  linux-admins
        notification_interval           60
        notification_period             24x7
        notification_options            w,u,c,r
        check_command                   check_smtp
        }

Command Definition:
-------------------------

# 'check_smtp' command definition
define command{
        command_name    check_smtp
        command_line    $USER1$/check_smtp -H $HOSTADDRESS$
        }

Here is the output from check_smtp:
-------------------------------------------
[root at osiris libexec]# ./check_smtp --version
check_smtp (nagios-plugins 1.3.0) 1.9

[root at osiris libexec]# ./check_smtp -H mail.acenet.com.au -w 3 -c 5;
echo $?
SMTP OK - 1 second response time
Socket timeout after 10 seconds
2
[root at osiris libexec]#
----------------------------------------------

Thanks Karl.

Regards,

Craig Marchant

>>> Karl DeBisschop <karl at debisschop.net> 19/05/03 4:24:58 pm >>>
On Mon, 2003-05-19 at 00:02, Craig Marchant wrote:
> Hi,
> 
> Just installed Version 1 of nagios. Everything went fine, great
doc's.
> 
> I'm having a small problem with the check_smtp plugin at the moment.
> 
> When I view the website it is reporting that the SMTP service is
> critical. But it returns "SMTP OK - 0 second response".
> 
> I'm using the latest versions of all the software, including the
> plugins.

I will grant that you are using the 'latest version' (I must confess
that others have posted to the list using those exact words, and been
wrong, but surely I need not worry about that)

But what does that mean? The latest relesed version from the CVS? The
latest modifications to CVS on the release brach? Or perhaps the CVS
HEAD?

If you type 'check_smtp --version' and report the result, I will know
the answer to these vexing questions. Then I cam ponder the answer to
your question directly, without the need to consider the intermediate
qusetions above.

If you were to provide the OS you are running, and the OS and MTA you
are checking, and I bet people on the list could really set down to
solving the problem. (If you are using a package, rather than your own
build, please mention that as well). If the MTA you are checking is
publiclic available, maybe you'd consider providing thhe addess for
investigation purposes.

Beyond that basic info, if we knew what your service and command
definitions looked like, we could even set out to reproduce the
problem.
> Has anbody seen / know what might be causing it to play up with this
> one service.

This was a known problem in some of the beta releases of the plugins.
It
is not known to me in 1.3.0 or CVS HEAD. But I'll galdly look, once I
know which version to check.

Have you tried running the test soley on the command line?

	check_smtp -H your.server.here -w 3 -c 5; echo $?

(Of course use your command/service settings, not mine)

--
Karl



-------------------------------------------------------
This SF.net email is sponsored by: If flattening out C++ or Java
code to make your application fit in a relational database is painful, 
don't do it! Check out ObjectStore. Now part of Progress Software.
http://www.objectstore.net/sourceforge
_______________________________________________
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