LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Port monitor (https://www.linuxquestions.org/questions/linux-networking-3/port-monitor-4175479040/)

Abid Ayoub 09-30-2013 03:06 AM

Port monitor
 
Hello,

I want to monitor the list of used ports in linux system. I want to make a script that can run an alert when a new port is up or down.
For example , when the port 8080 is up , a get an alert that this port is used by the process xxx. When he is again down , i whant to have another alert.

So have any one any idea how can i do that ?

Regards

pan64 09-30-2013 07:53 AM

have you tried netstat?

druuna 09-30-2013 08:24 AM

You might also want to check out nmap.

- nmap
- Beginners guide
- Scanning network for open ports

Habitual 09-30-2013 10:13 AM

https://www.linuxquestions.org/quest...script-214779/


All times are GMT -5. The time now is 09:21 AM.