LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-28-2015, 12:29 PM   #1
pashupati
LQ Newbie
 
Registered: Jan 2015
Posts: 2

Rep: Reputation: Disabled
Querring port 80 for the alert purpose


Hello,
How to write a small script which queries 80 port and gives alert by scheduling it in cron job. Thank you..
 
Old 01-28-2015, 12:34 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,801

Rep: Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002Reputation: 8002
Quote:
Originally Posted by pashupati View Post
Hello,
How to write a small script which queries 80 port and gives alert by scheduling it in cron job. Thank you..
There are MANY ways to do this. Please read the "Question Guidelines' link in my posting signature...you don't tell us version/distro of Linux, what script language you want to use, what kind of query, and what kind of alert you're talking about.

There are THOUSANDS of scripts you can find with a Google search that can help get you going, and may already do what you're after. There are also many bash scripting tutorials you can find (with examples), to also help. But, we are *NOT* going to write your script for you...if you'd like help, post what YOU have written/tried, and tell us where you're stuck.
 
Old 01-28-2015, 12:44 PM   #3
pashupati
LQ Newbie
 
Registered: Jan 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thank you

TB0one,
Thanks a lot. it helps.
 
  


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
psad (port scan attack detector) email alert configuration kikilinux Linux - Security 1 09-23-2013 06:22 PM
opennms -not receiving mail alert when he port get down saravanakumar Linux - Server 1 07-11-2011 09:08 AM
snort not logging port scans? Should I use log or alert? lucastic Linux - Security 3 08-30-2004 04:34 AM
opening port, newb alert :) ratty007 Linux - Networking 2 03-24-2003 10:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:25 AM.

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
Open Source Consulting | Domain Registration