Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Monitoring http - port 80

5 views
Skip to first unread message

ApogeuSistemas

unread,
Nov 6, 2009, 5:45:53 PM11/6/09
to
I´m looking for any way to monitoring http - port 80 using shell
script.
Thanks
Message has been deleted
Message has been deleted

ApogeuSistemas

unread,
Nov 6, 2009, 6:30:51 PM11/6/09
to
On 6 nov, 20:09, Michael Vilain <vil...@NOspamcop.net> wrote:
> In article
> <38d0e92d-4b58-4bda-91b0-054e12159...@d10g2000yqh.googlegroups.com>,
> Define "monitoring".  What are you trying to measure?  You can check to
> see that the socket is "plugged in" to the port, but what about traffic?  
> If users say "the web site is slow", are you expected to be able to
> measure that or collect info that will help you diagnose why it's slow?
>
> Start with a more specific set of requirements.
>
> --
> DeeDee, don't press that button!  DeeDee!  NO!  Dee...
> [I filter all Goggle Groups posts, so any reply may be automatically by ignored]

I only need know if http - port 80 is available in a server.

mop2

unread,
Nov 6, 2009, 8:11:55 PM11/6/09
to

Using just bash:
A=;exec 3<>/dev/tcp/$SERVER/$PORT && A=:\) &&exec 3>&-;echo $A

Message has been deleted

Maxwell Lol

unread,
Nov 7, 2009, 4:04:14 PM11/7/09
to
ApogeuSistemas <apogeus...@gmail.com> writes:

> I only need know if http - port 80 is available in a server.

Here's another solution
telnet hostname 80 </dev/null 2>&1 | grep refused && echo closed || echo open

ApogeuSistemas

unread,
Nov 7, 2009, 5:30:29 PM11/7/09
to
On 7 nov, 18:04, Maxwell Lol <nos...@com.invalid> wrote:

> ApogeuSistemas <apogeusiste...@gmail.com> writes:
> > I only need know if http - port 80 is available in a server.
>
> Here's another solution
> telnet hostname 80 </dev/null 2>&1 | grep refused && echo closed || echo open

Thanks a lot for the suggestions !

Javi Barroso

unread,
Nov 8, 2009, 5:12:52 AM11/8/09
to
On Nov 7, 11:30 pm, ApogeuSistemas <apogeusiste...@gmail.com> wrote:
> On 7 nov, 18:04, Maxwell Lol <nos...@com.invalid> wrote:
>
> > ApogeuSistemas <apogeusiste...@gmail.com> writes:
> > > I only need know if http - port 80 is available in a server.
One more:
if nc -w 2 -z server 80
then
echo ok
else
echo failed!
fi
0 new messages