LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   services are down? (https://www.linuxquestions.org/questions/linux-newbie-8/services-are-down-821211/)

LayTech 07-21-2010 04:24 AM

services are down?
 
hello.

i have ftp/smtp services installed in windows xp server. when i was monitoring the status of the services (using nagios), it showed me 'DOWN' as the status for the services..how come? what am i missing?

angel115 07-21-2010 05:00 AM

What does nagios say when you type /usr/local/nagios/libexec/check_smtp -H SMTP_server?

LayTech 07-21-2010 05:14 AM

Quote:

Originally Posted by angel115 (Post 4040475)
What does nagios say when you type /usr/local/nagios/libexec/check_smtp -H SMTP_server?

It says :

SMTP OK - 0.001 sec. response time|time=0.001312s;;;0.000000

This is the output i got when the SMTP_server is the ip address in ubuntu (the one running nagios) platform itself.

but when i tried the ip address for my desktop instead, it gave me :

CRITICAL - Socket timeout after 10 seconds

i had smtp server in the desktop as well as in ubuntu

angel115 07-21-2010 05:31 AM

Ok so, just to clarify when you say "my desktop" you mean your mail server right?

On Nagios side:
Try to send an email using telnet from nagios through your mail server? (http://www.wikihow.com/Send-Email-Using-Telnet)
You must at least have the right to connect to it!


Using the check_smtp command, try to specify the port as well as the user name and password if your mail server is using authentication and see what it says:
check_smtp -H host [-p port] [-A authtype -U authuser -P authpass]

On your mail server side:
Make sure that nagios have the right to connect to your mail server via telnet your_mail_server port

LayTech 07-21-2010 06:35 AM

Quote:

Originally Posted by angel115 (Post 4040502)
Ok so, just to clarify when you say "my desktop" you mean your mail server right?

Hmm ya.. i downloaded a stmp service from online onto my desktop.

Quote:

Originally Posted by angel115 (Post 4040502)
On Nagios side:
Try to send an email using telnet from nagios through your mail server? (http://www.wikihow.com/Send-Email-Using-Telnet)
You must at least have the right to connect to it!

For this, steps 3 onwards i could not do it. They said commands are not valid or something like that.

Quote:

Originally Posted by angel115 (Post 4040502)
Using the check_smtp command, try to specify the port as well as the user name and password if your mail server is using authentication and see what it says:
check_smtp -H host [-p port] [-A authtype -U authuser -P authpass]

On your mail server side:
Make sure that nagios have the right to connect to your mail server via telnet your_mail_server port

By the way, when i was trying to monitor the windows xp server in the vmware, i had nagios running on ubuntu 9.10. I wanted to make sure the services of ftp etc for windows xp to be up cause i have already installed ftp services in xp, so by right it should be up..

angel115 07-21-2010 07:16 AM

Quote:

For this, steps 3 onwards i could not do it. They said commands are not valid or something like that.
Did you try HELO domain or EHLO domain
Can you please post me the output


Quote:

By the way, when i was trying to monitor the windows xp server in the vmware, i had nagios running on ubuntu 9.10. I wanted to make sure the services of ftp etc for windows xp to be up cause i have already installed ftp services in xp, so by right it should be up..
Can you please post the config file where you define how you will check your the host and services of your mail server (the .cfg file)


All times are GMT -5. The time now is 11:24 PM.