hi. i'm new in this forum and need some help with shellscripting. I have to check if there is a conection from a machine to a dterminated port and from a determinated program. I use the netstat -pn command with some greps piped. the problem is you need to be root. If don't, you can't see the program creating the conection. Somebody knows how to check this without being root? Another command, another options? Whatever
I have another problem. I'm checking for the number of process of some aplications. I use the ps -e and it works in all the machines but two, old debian distributions. In these machines the ps -e gives me the clidren of the process too, so it always rise an alarm (more than 1 process running)
What can i do?
Thank you very much
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
shell scripting
i can't. Nmap is not a program a client would like us to use against them....that's why i need to use the commands not being a root. Furthermore sometimes the connections are from a machine to itself (the database is installed in the same machine than the snort).
The scrips are for Nagios, a program that check for remote services. I program the scripts to check what i want and gives me the response i need and in the format nagios need
The scrips are for Nagios, a program that check for remote services. I program the scripts to check what i want and gives me the response i need and in the format nagios need
thank you very much. But nobody kows how to use the ps command in order to get only the number of process running for a program without the children and that works for every debian? (or at least from sarge version).
About the form to check for a connection for snort with the port 3306 ESTABLISHED without being root I suposse is more complex or even imposible.
About the form to check for a connection for snort with the port 3306 ESTABLISHED without being root I suposse is more complex or even imposible.