Check processes running on remote server


Login or Register for Dates, Times and to Reply

 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Check processes running on remote server
# 1  
Check processes running on remote server

Hello Guys,

I need some help to find out if processes are running on remote server or not. I could do 'ssh' to do that but due to some security reasons, I need to avoid the ssh & get result from remote server.

Could you please suggest some that can be done without ssh or similar sort of utility ?
# 2  
Greetings and welcome,

I don't understand why ssh ( which is what all admins want users to use for security...) is not allowed for security reason, how will you connect to remote server??
my understanding is you want to have a job running local on your remote host (using cron?) I suggest your cron job send an alert to syslog, there is on solaris and I think on other OS too a way of collecting the content of syslogs from remote servers ...
# 3  
Bit vague requirement, processes must be running on servers Smilie

Using, for instance, local5.info facility and logger command inside a shell script.
You configure that servers syslog to send logs to your central syslog server for that facility on IP using UDP or TCP.

Central syslog server will receive / parse etc. the logs messages.
Great choice for server side is any OS that can run rsyslog, which is good software, highly customizable.
Benefits arise when using ZFS filesystems on BSD/Solaris and Linux, when using compressed file systems to store logs.

Be sure to read about maximum message length limits and stuff, so you do not get into surprises.

Hope that helps
Regards
Peasant.
# 4  
Quote:
Originally Posted by UnknownGuy
I need to avoid the ssh & get result from remote server.

1) use remote procedure calls: you will have to write a program, it will be insecure and, frankly, i wouldn't want it in my data center, but it avoids ssh.


2) use telnet (or is this too similar to ssh?). Otherwise, see above but without the neet to write a program.


3) use SNMP. There is a reason why "SNMP" is thought to mean "security? Not my problem!", but it avoids the dubious ssh either.


4) create your own network protocol, then write a client/server-application which uses it to transmit the information. Report back in a few years to show us.


Bottom line: if you don't want to use secure means to connect to a sever you have to employ insecure means. Furthermore, if you want to avoid the obvious you will be restricted to the absurd.
This User Gave Thanks to foad For This Post:
# 5  
Some more suggestions:
  • Can the server ssh or mail out for example?
  • Does it have software configuration management, like puppet, chef, ansible, you could use that...
  • Splunk maybe?
  • monit, or some other monitoring tool
# 6  
to Scrutinizer's reply i will add nagios could be a good option
# 7  
Quote:
If you want to avoid the obvious you will be restricted to the absurd.
Framed, and hanging in my office.
This User Gave Thanks to MadeInGermany For This Post:
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #986
Difficulty: Medium
The X Window System is installed by default in FreeBSD.
True or False?

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to check the processes running longer than 2 hours.?

HI can someone help me to check the process running more than 2 hours. I have the below command which shows the time and process id, however, I only need the processes running more than 2 hours. (8 Replies)
Discussion started by: Vinod
8 Replies

2. Shell Programming and Scripting

Check if remote destination is available before running scp command

I have a script on a Linux box which scp the files to windows server without any issues. but there are time frames where the windows server will not be available due to maintenance. hence I need to check if the remote location is available before running the scp command. scp... (3 Replies)
Discussion started by: gpk_newbie
3 Replies

3. Shell Programming and Scripting

Check Running Processes

I want to check how many processes are running with same names and get their respective counts. ps -ef|grep -Eo 'process1|process2|process3| '|sort -u | awk '{print $2": "$1}' Output would look like : $ ps -ef|grep -Eo 'process1|process2|process3| '|sort | uniq -c | awk '{print $2":... (8 Replies)
Discussion started by: simpltyansh
8 Replies

4. Shell Programming and Scripting

How to Append the output of a script running in remote server to a file in local server?

Hi guys, So i am in server1 and i have to login to server 2, 3,4 and run some script there(logging script) and output its result. What i am doing is running the script in server2 and outputting it to a file in server 2 and then Scp'ing the file to server1. Similarly i am doing this for other... (5 Replies)
Discussion started by: srkmish
5 Replies

5. AIX

Need to check long running processes on the database server and the os is AIX

Hello, Please help me with a script with which I can check long running processes on the database server and the os is AIX. Best regards, Vishal (5 Replies)
Discussion started by: Vishal_dba
5 Replies

6. Shell Programming and Scripting

Running script on remote server

Hi All, I need to run a ksh script on around 200 servers(consisting of AIX,LInux,HP-UX,Solaris). The script is there in the /tmp directory of all the servers. I want want to execute the script in background on the respective servers and then exit from there. I have written something like below:... (8 Replies)
Discussion started by: proactiveaditya
8 Replies

7. Shell Programming and Scripting

check web server running on local and on remote machine

Hi , How to check whether web server is running from remote machine How to check whether web server is running on web server itself Can any one help me soon (1 Reply)
Discussion started by: satheeshkr_cse
1 Replies

8. Shell Programming and Scripting

check processes on remote system?

I have a script that counts the number of oracle processes running on the system: if then and it continues based on whether or not it finds running processes. Now we would like to move oracle to a separate server, but keep the application (and this script) on the old machine. Is there a... (9 Replies)
Discussion started by: Wotan31
9 Replies

9. UNIX for Dummies Questions & Answers

How to check the status of the processes running for the current user?

Hi All, I am new to unix. Can anyone tell me "How to check the status of the processes running for the current user?" Regards, Ravindaran S (1 Reply)
Discussion started by: ravind27
1 Replies

10. Shell Programming and Scripting

Script to check running processes on remote server.

Hi, I am trying to write a script, which queries a db to get the names of processes, stores it in a file and then checks if that process is running on a remote server. However I am not getting it right, could anyone help me out. #!/bin/sh echo "select Address from Device where Cust =... (5 Replies)
Discussion started by: amitsayshii
5 Replies

Featured Tech Videos