SMTP and FTP Services Red
list Geoff Hallford
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
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
list Geoff Hallford
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.
▸
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
▸
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
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 Tom Georgoulias
▸
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
how about badsmtp= badftp= ?
▸
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 beforefailing). 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
▸
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
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.
▸
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
▸
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