Xymon Mailing List Archive search

SMTP and FTP Services Red

10 messages in this thread

list Geoff Hallford · Wed, 29 Nov 2006 15:46:28 -0500 ·
Hello,

On a few of our servers the SMTP and FTP services are RED but when I telnet
to them, they do show the proper 220 status good. They are quite slow to
respond though, taking sometimes 10-15 seconds. Is there anyway to get
Hobbit to pause and wait for this? If not, how long does it wait before it
shows a red status?

Thank you very much for your help.

Geoff Hallford
list Pnixon · Wed, 29 Nov 2006 15:51:41 -0500 ·
Did you try putting an entry for Hobbit server into their hosts files?  I
think the delay is from the Server trying to do a reverse lookup on the IP
Address.
 
 
You may also have to change the order in which they resolve DNS....
 
in /etc/nsswitch.conf (or whatever is appropriate for your distribution)
 
change from 
hosts:     db files nisplus nis dns
to 
hosts:      files nisplus nis dns db
quoted from Geoff Hallford

 
From: Geoff Hallford [mailto:user-dc9e7f30b1e2@xymon.invalid] 
Sent: Wednesday, November 29, 2006 3:46 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] SMTP and FTP Services Red


Hello,
 
On a few of our servers the SMTP and FTP services are RED but when I telnet
to them, they do show the proper 220 status good. They are quite slow to
respond though, taking sometimes 10-15 seconds. Is there anyway to get
Hobbit to pause and wait for this? If not, how long does it wait before it
shows a red status? 
 
Thank you very much for your help.
 
Geoff Hallford
list Geoff Hallford · Thu, 30 Nov 2006 18:17:15 -0500 ·
I tried putting all IP's and hostname's into their respective hosts files
and changing the resolution order but it didn't help. It appears the server
on the far side is just plain slow to respond with a 220. The only thing
that would help is if I can set the time delay (wait 15 seconds before
failing). I think this would be a good feature to have if it doesn't exist
already.

Thanks anyways.
quoted from Pnixon

On 11/29/06, user-c102b8958c7a@xymon.invalid <user-c102b8958c7a@xymon.invalid> wrote:
 Did you try putting an entry for Hobbit server into their hosts files?  I
think the delay is from the Server trying to do a reverse lookup on the IP
Address.


You may also have to change the order in which they resolve DNS....

in /etc/nsswitch.conf (or whatever is appropriate for your distribution)

change from
hosts:     db files nisplus nis dns
to
hosts:      files nisplus nis dns db


*From:* Geoff Hallford [mailto:user-dc9e7f30b1e2@xymon.invalid]
*Sent:* Wednesday, November 29, 2006 3:46 PM
*To:* user-ae9b8668bcde@xymon.invalid
*Subject:* [hobbit] SMTP and FTP Services Red

 Hello,

On a few of our servers the SMTP and FTP services are RED but when I
telnet to them, they do show the proper 220 status good. They are quite slow
to respond though, taking sometimes 10-15 seconds. Is there anyway to get
Hobbit to pause and wait for this? If not, how long does it wait before it
shows a red status?

Thank you very much for your help.

Geoff Hallford

-- 

'If my answers frighten you then you should cease asking scary questions.'
--Sam Jackson from Pulp Fiction
list Stef Coene · Fri, 1 Dec 2006 07:17:03 +0100 ·
quoted from Geoff Hallford
On Friday 01 December 2006 00:17, Geoff Hallford wrote:
I tried putting all IP's and hostname's into their respective hosts files
and changing the resolution order but it didn't help. It appears the server
on the far side is just plain slow to respond with a 220. The only thing
that would help is if I can set the time delay (wait 15 seconds before
failing). I think this would be a good feature to have if it doesn't exist
already.
you can add a --timeout flag in server/etc/hobbitlaunch.cfg
[bbnet]
        ENVFILE /home/users/hobbit/server/etc/hobbitserver.cfg
        NEEDS hobbitd
        CMD bbtest-net --report --ping --checkresponse --timeout=30
        LOGFILE $BBSERVERLOGS/bb-network.log
        INTERVAL 5m


Stef
list Geoff Hallford · Fri, 1 Dec 2006 11:07:10 -0500 ·
Hi Stef,

That appears to be a global setting for all checks, is there a way to do it
for only 1 specific test (such as smtp)?

Thanks.
quoted from Stef Coene


On 12/1/06, Stef Coene <user-dbffe946c0f4@xymon.invalid> wrote:
On Friday 01 December 2006 00:17, Geoff Hallford wrote:
I tried putting all IP's and hostname's into their respective hosts
files
and changing the resolution order but it didn't help. It appears the
server
on the far side is just plain slow to respond with a 220. The only thing
that would help is if I can set the time delay (wait 15 seconds before
failing). I think this would be a good feature to have if it doesn't
exist
already.
you can add a --timeout flag in server/etc/hobbitlaunch.cfg
[bbnet]
       ENVFILE /home/users/hobbit/server/etc/hobbitserver.cfg
       NEEDS hobbitd
       CMD bbtest-net --report --ping --checkresponse --timeout=30
       LOGFILE $BBSERVERLOGS/bb-network.log
       INTERVAL 5m


Stef

-- 
'If my answers frighten you then you should cease asking scary questions.'
--Sam Jackson from Pulp Fiction
list Tom Georgoulias · Fri, 01 Dec 2006 12:21:14 -0500 ·
quoted from Geoff Hallford
Geoff Hallford wrote:
That appears to be a global setting for all checks, is there a way to do it
for only 1 specific test (such as smtp)?
Nope.

http://www.hswn.dk/hobbiton/2006/08/msg00814.html

-- 
Tom Georgoulias
Systems Engineer
McClatchy Interactive
list Jerry Yu · Fri, 1 Dec 2006 12:22:02 -0500 ·
how about badsmtp= badftp= ?
quoted from Geoff Hallford

On 12/1/06, Geoff Hallford <user-2767a6d68e4d@xymon.invalid> wrote:
Hi Stef,

That appears to be a global setting for all checks, is there a way to do
it for only 1 specific test (such as smtp)?

Thanks.


On 12/1/06, Stef Coene <user-dbffe946c0f4@xymon.invalid> wrote:
On Friday 01 December 2006 00:17, Geoff Hallford wrote:
I tried putting all IP's and hostname's into their respective hosts
files
and changing the resolution order but it didn't help. It appears the
server
on the far side is just plain slow to respond with a 220. The only
thing
that would help is if I can set the time delay (wait 15 seconds before
failing). I think this would be a good feature to have if it doesn't
exist
already.
you can add a --timeout flag in server/etc/hobbitlaunch.cfg
[bbnet]
       ENVFILE /home/users/hobbit/server/etc/hobbitserver.cfg
       NEEDS hobbitd
       CMD bbtest-net --report --ping --checkresponse --timeout=30
       LOGFILE $BBSERVERLOGS/bb-network.log
       INTERVAL 5m


Stef

--
'If my answers frighten you then you should cease asking scary questions.'
--Sam Jackson from Pulp Fiction
list Stef Coene · Fri, 1 Dec 2006 18:56:45 +0100 ·
quoted from Geoff Hallford
On Friday 01 December 2006 17:07, Geoff Hallford wrote:
Hi Stef,

That appears to be a global setting for all checks, is there a way to do it
for only 1 specific test (such as smtp)?
Not that I know.  But is it problem if this is a global setting ?


Stef
list Geoff Hallford · Fri, 1 Dec 2006 20:54:44 -0500 ·
Yeah, I want the updates to occur as fast as possible. If I allow a 30
timeout for each service, it could potentially slowdown every test.

I have created custom services (smtp-slow) in bb-services that do not expect
a '220' response and this has solved the issue. It gives a green if a
connection is made and not if a '220' is given.

This is good enough for me.

Thanks everyone for you suggestions though.
quoted from Stef Coene

On 12/1/06, Stef Coene <user-dbffe946c0f4@xymon.invalid> wrote:
On Friday 01 December 2006 17:07, Geoff Hallford wrote:
Hi Stef,

That appears to be a global setting for all checks, is there a way to do
it
for only 1 specific test (such as smtp)?
Not that I know.  But is it problem if this is a global setting ?


Stef

-- 
'If my answers frighten you then you should cease asking scary questions.'
--Sam Jackson from Pulp Fiction
list Stef Coene · Sat, 2 Dec 2006 13:32:29 +0100 ·
quoted from Geoff Hallford
On Saturday 02 December 2006 02:54, Geoff Hallford wrote:
Yeah, I want the updates to occur as fast as possible. If I allow a 30
timeout for each service, it could potentially slowdown every test.
All network tests are done in parallel.  I think per default that 254 tests 
are done at the same time.


Stef