Re: [Nagios-users] check_smtp issue
On Wed, 01 Jul 2009, Dei Bertine wrote: I got it! :-) I got confused with the check_nrpe plugin. So what I did was enabled nrpe on the host side, then configured my services in nagios to check_nrpe!check_smtp Now Nagios is happy. SMTP OK - 0.004 sec. response time Assuming you want to know if other machines can connect to this server and send mail, this is most likely not what you want to do. All it will tell you is that the SMTP server can connect to itself. If that *is* what you want, NRPE is the right way to go. If you need to know if other machines can connect to the SMTP server, though, you probably don't want to use NRPE. -- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge ___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] check_smtp issue
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. -- Mat W. - http://www.techadre.com Date: Tue, 30 Jun 2009 20:04:49 -0700 From: deibert...@yahoo.com To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] check_smtp issue 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: nag...@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.00;5.00;0.00 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 However when I check nagios page, I'm getting this error: check_smtp: Warning time must be a positive integer Any ideas on why this is happening? Please advise. Thanks! DB _ Lauren found her dream laptop. Find the PC that’s right for you. http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290-- ___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] check_smtp issue
Ok, I remove the nrpe side and configured instead my service for the host. I changed it to this: define service{ uselocal-service host_nameserveip1.csaa..com service_description SMTP check_command check_smtp!/check_smtp -p 25 -w 5 -c 8 -t 100 } Am I missing something? Thanks. From: Mathew Walker lmw94...@hotmail.com To: deibert...@yahoo.com; nagios-users@lists.sourceforge.net Sent: Wednesday, July 1, 2009 9:58:22 AM Subject: RE: [Nagios-users] check_smtp issue 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. -- Mat W. - http://www.techadre.com/ Date: Tue, 30 Jun 2009 20:04:49 -0700 From: deibert...@yahoo.com To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] check_smtp issue 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: nag...@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.00;5.00;0.00 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 However when I check nagios page, I'm getting this error: check_smtp: Warning time must be a positive integer Any ideas on why this is happening? Please advise. Thanks! DB Lauren found her dream laptop. Find the PC that’s right for you. -- ___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] check_smtp issue
On Tue, Jun 30, 2009 at 9:04 PM, Dei Bertine deibert...@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: nag...@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.00;5.00;0.00 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 -- ___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] check_smtp issue
I got it! :-) I got confused with the check_nrpe plugin. So what I did was enabled nrpe on the host side, then configured my services in nagios to check_nrpe!check_smtp Now Nagios is happy. SMTP OK - 0.004 sec. response time Thanks guys. From: Dei Bertine deibert...@yahoo.com To: Mathew Walker lmw94...@hotmail.com; nagios-users@lists.sourceforge.net Sent: Wednesday, July 1, 2009 10:54:36 AM Subject: Re: [Nagios-users] check_smtp issue Ok, I remove the nrpe side and configured instead my service for the host. I changed it to this: define service{ uselocal-service host_nameserveip1.csaa.com service_description SMTP check_command check_smtp!/check_smtp -p 25 -w 5 -c 8 -t 100 } Am I missing something? Thanks. From: Mathew Walker lmw94...@hotmail.com To: deibert...@yahoo.com; nagios-users@lists.sourceforge.net Sent: Wednesday, July 1, 2009 9:58:22 AM Subject: RE: [Nagios-users] check_smtp issue 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. -- Mat W. - http://www.techadre.com/ Date: Tue, 30 Jun 2009 20:04:49 -0700 From: deibert...@yahoo.com To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] check_smtp issue 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: nag...@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.00;5.00;0.00 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 However when I check nagios page, I'm getting this error: check_smtp: Warning time must be a positive integer Any ideas on why this is happening? Please advise. Thanks! DB Lauren found her dream laptop. Find the PC that’s right for you. -- ___ Nagios-users mailing list Nagios-users@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
[Nagios-users] check_smtp issue
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: nag...@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.00;5.00;0.00 Configured my cfgs in command.cfg: define command{ command_namecheck_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 However when I check nagios page, I'm getting this error: check_smtp: Warning time must be a positive integer Any ideas on why this is happening? Please advise. Thanks! DB -- ___ Nagios-users mailing list Nagios-users@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