<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>I got it! :-)<br><br>I got confused with the check_nrpe plugin. <br><br>So what I did was enabled nrpe on the host side, then configured my services in nagios to check_nrpe!check_smtp<br><br>Now Nagios is happy.<br>SMTP OK - 0.004 sec. response time <br><br><br>Thanks guys.<br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Dei Bertine <deibertine@yahoo.com><br><b><span style="font-weight: bold;">To:</span></b> Mathew Walker <lmw94002@hotmail.com>; nagios-users@lists.sourceforge.net<br><b><span style="font-weight: bold;">Sent:</span></b> Wednesday, July 1, 2009
10:54:36 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [Nagios-users] check_smtp issue<br></font><br>
<div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div>Ok, I remove the nrpe side and configured instead my service for the host. <br><br>I changed it to this: <br>define service{<br> use local-service<br> host_name <a rel="nofollow" target="_blank" href="http://serveip1.csaa.com/">serveip1.csaa.com</a><br> service_description SMTP<br> check_command check_smtp!/check_smtp -p 25 -w 5 -c 8 -t
100<br> }<br><br>Am I missing something?<br><br>Thanks. <br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Mathew Walker <lmw94002@hotmail.com><br><b><span style="font-weight: bold;">To:</span></b> deibertine@yahoo.com; nagios-users@lists.sourceforge.net<br><b><span style="font-weight: bold;">Sent:</span></b> Wednesday, July 1, 2009 9:58:22 AM<br><b><span style="font-weight: bold;">Subject:</span></b> RE: [Nagios-users] check_smtp issue<br></font><br>
<style>
.hmmessage P
{
margin:0px;padding:0px;}
body.hmmessage
{
font-size:10pt;font-family:Verdana;}
</style>
What is your service configuration? If you're checking SMTP remotely, there is no need for NRPE here. I would guess your service configuration is not passing the correct variables.<br><br>-- <br><span><span>Mat W. - <a target="_blank" href="http://www.techadre.com/">http://www.techadre.com/</a></span></span><br><br><br> <br>
<hr id="stopSpelling">
Date: Tue, 30 Jun 2009 20:04:49 -0700<br>From: deibertine@yahoo.com<br>To: nagios-users@lists.sourceforge.net<br>Subject: [Nagios-users] check_smtp issue<br><br>
<style>
.ExternalClass DIV
{}
</style>
<div style="font-size: 12pt; font-family: times new roman,new york,times,serif;">
<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 rel="nofollow" target="_blank" href="http://serveip1.csaa.com">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><br>However when I check nagios page, I'm getting this error:<br><span style="font-weight: bold; font-style: italic;">check_smtp: Warning time must be a positive integer</span><br><br>Any ideas on why this is happening?<br><br>Please
advise.<br><br>Thanks!<br>DB<br></div></div><br><br><hr>Lauren found her
dream laptop. <a rel="nofollow" target="_blank" href="http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290">Find the PC that’s right for you.</a></div></div></div><br>
</div></div></div><br>
</body></html>