smtp transaction time/response time

Anything that you think should be in Cacti.

Moderators: Developers, Moderators

Post Reply
entr0py
Posts: 10
Joined: Wed Oct 19, 2005 3:33 am
Location: Sydney
Contact:

smtp transaction time/response time

Post by entr0py »

Hi,

just wondering if anyone knows of a tool, php script which allows me to do the following: (before I get onto writing my own)

I am wanting to graph smtp response times. I don't nec. want to perf. a complete transaction test. (send/receive)

Only upto the point where a 220 from the other end is being received.

I.e.:

telnet host 25
Trying host...
Connected to host.
Escape character is '^]'.
220-host ESMTP Wed, 19 Oct 2005 18:58:32 +1000
220-blah blah
220 blah blah
quit

rgs,

Dan
User avatar
bulek
Cacti Pro User
Posts: 854
Joined: Mon May 20, 2002 2:07 am
Location: Poland
Contact:

Post by bulek »

I made a short example (no error/security checking) of such script. It opens SMTP connection, waits for prompt and exits with QUIT. Then it displays time needed for this. You may consider to use microtime() instead to increase measurement resolution.

- Piotr
Attachments
smtp_response.zip
SMTP response time measurement example
(725 Bytes) Downloaded 201 times
entr0py
Posts: 10
Joined: Wed Oct 19, 2005 3:33 am
Location: Sydney
Contact:

Post by entr0py »

Great!

Thanks for the script. ;)

I'll give it a go tomorrow. I've tried it and it seems to be working ok. (no graphs to post yet)

Give me another 48 hours and I should have something decent to show.

Thanks again.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests