<div class="gmail_quote">On Tue, Jun 30, 2009 at 9:04 PM, Dei Bertine <span dir="ltr"><<a href="mailto:deibertine@yahoo.com">deibertine@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div> I have setup check_smtp in my Nagios to possibly check smtp flow. <br>
<br>
I have manually tested initiated this command and seems to be ok:<br>nagios@servedhcp1~/libexec# ./check_smtp -H <a href="http://serveip1.csaa.com" target="_blank">serveip1.csaa.com</a> -w 3 -c 5 -t 100<br>
SMTP OK - 0.003 sec. response time|time=0.002578s;3.000000;5.000000;0.000000<br>
<br>
Configured my cfgs in command.cfg:<br>
define command{<br>
command_name check_smtp<br>
command_line $USER1$/check_smtp -H $HOSTADDRESS$ -p 25 -w $ARG1$ -c $ARG2$ -t $ARG3$<br>
}<br>
<br>
Configured on host nrpe:<br>
command[check_smtp]=/usr/local/nagios/libexec/check_smtp -p 25 -w 5 -c 8 -t 100<br></div></div></div></blockquote></div><font class="Apple-style-span" face="'times new roman'" size="4"><span class="Apple-style-span" style="font-size: 16px;"><div>
<br></div><div><br></div><div>Based on the above info, you should have a service description similar to this in your hosts.cfg for that host:</div><div><br></div><div><div>define service{</div><div> use generic-service</div>
<div> host_name <a href="http://serveip1.csaa.com">serveip1.csaa.com</a></div><div> service_description SMTP</div><div> check_command check_smtp!<a href="http://serveip1.csaa.com">serveip1.csaa.com</a>!3!5!100</div>
<div> }</div><div><br></div></div><br></span></font>--- <br>Mike Saldivar <br>Advocate Credit Repair<br>Information Systems Manager <br>Desk: 435-774-8252 <br>Cell: 435-881-3778<br>