LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-21-2010, 05:24 AM   #1
LayTech
Member
 
Registered: Jul 2010
Posts: 30

Rep: Reputation: 15
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?
 
Old 07-21-2010, 06:00 AM   #2
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 535

Rep: Reputation: 79
What does nagios say when you type /usr/local/nagios/libexec/check_smtp -H SMTP_server?
 
Old 07-21-2010, 06:14 AM   #3
LayTech
Member
 
Registered: Jul 2010
Posts: 30

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by angel115 View Post
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
 
Old 07-21-2010, 06:31 AM   #4
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 535

Rep: Reputation: 79
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
 
Old 07-21-2010, 07:35 AM   #5
LayTech
Member
 
Registered: Jul 2010
Posts: 30

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by angel115 View Post
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 View Post
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 View Post
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..
 
Old 07-21-2010, 08:16 AM   #6
angel115
Member
 
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 535

Rep: Reputation: 79
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)

Last edited by angel115; 07-21-2010 at 08:18 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/etc/services Paris Heng Solaris / OpenSolaris 13 05-11-2009 08:27 AM
services-admin/Services deardron Ubuntu 7 09-22-2006 09:32 PM
Media Services on Linux platform similar to Windows Media Services happyok Linux - Software 3 05-27-2006 05:36 PM
Services nc3b Slackware 2 09-17-2005 02:41 AM
TightVNC Ver terminal Services.. also looking for terminal Services for linux 2782d4 Linux - Security 3 05-20-2004 03:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration