check_smtp issue

Mike Saldivar mike.saldivar at advocatecreditrepair.com
Wed Jul 1 19:51:31 CEST 2009


On Tue, Jun 30, 2009 at 9:04 PM, Dei Bertine <deibertine at yahoo.com> wrote:

> I have setup check_smtp in my Nagios to possibly check smtp flow.
>
> I have manually tested initiated this command and seems to be ok:
> nagios at servedhcp1~/libexec# ./check_smtp -H serveip1.csaa.com -w 3 -c 5 -t
> 100
> SMTP OK - 0.003 sec. response
> time|time=0.002578s;3.000000;5.000000;0.000000
>
> Configured my cfgs in command.cfg:
> define command{
> command_name check_smtp
> command_line $USER1$/check_smtp -H $HOSTADDRESS$ -p 25 -w $ARG1$ -c $ARG2$
> -t $ARG3$
> }
>
> Configured on host nrpe:
> command[check_smtp]=/usr/local/nagios/libexec/check_smtp -p 25 -w 5 -c 8 -t
> 100
>


Based on the above info, you should have a service description similar to
this in your hosts.cfg for that host:

define service{
        use                     generic-service
        host_name               serveip1.csaa.com
        service_description     SMTP
        check_command           check_smtp!serveip1.csaa.com!3!5!100
        }


---
Mike Saldivar
Advocate Credit Repair
Information Systems Manager
Desk: 435-774-8252
Cell: 435-881-3778
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090701/fa0b10cd/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
-------------- next part --------------
_______________________________________________
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