Re: Checking remote processes

2006-10-03 Thread Ow Mun Heng
On Tue, 2006-10-03 at 15:12 +1000, Norberto Meijome wrote:
 ssh some.hosts.address ps aux | grep httpd | grep -v grep

ps aux | grep [h]ttpd


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Checking remote processes

2006-10-03 Thread David King

On Tue, 2006-10-03 at 15:12 +1000, Norberto Meijome wrote:

ssh some.hosts.address ps aux | grep httpd | grep -v grep

ps aux | grep [h]ttpd


ssh [EMAIL PROTECTED] pgrep httpd

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Checking remote processes

2006-10-02 Thread Norberto Meijome
On Sun, 01 Oct 2006 18:24:41 -0700
Garrett Cooper [EMAIL PROTECTED] wrote:

 ssh some.hosts.address ps aux | grep httpd

ssh some.hosts.address ps aux | grep httpd | grep -v grep

to make sure you don't catch the 'grep httpd' in the output ;)
_
{Beto|Norberto|Numard} Meijome

Humans die and turn to dust, but writing makes us remembered
  4000-year-old words of an Egyptian scribe

I speak for myself, not my employer. Contents may be hot. Slippery when wet.
Reading disclaimers makes you go blind. Writing them is worse. You have been
Warned.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Checking remote processes

2006-10-02 Thread Norberto Meijome
On Mon, 2 Oct 2006 01:52:19 - (GMT)
[EMAIL PROTECTED] wrote:

  In the last episode (Oct 02), [EMAIL PROTECTED] said:  
  Is there a way to test a remote server to determine if certain
  processes are running?
 
  For example, can server 1 check server 2, which is at a remote
  location, to ensure squid is running?
 
  I have not been able to figure out how to do this, or if it is even
  possible.  
 
  Easiest way would be to try connecting to squid's listening port.  This
  only works with daemons that listen on internet sockets, but quite a
  few do.
 
  --
  Dan Nelson
  [EMAIL PROTECTED]
   
 I hadn't thought of that.  I'll give it a try.

you may want to look into a proper management system to handle this, like
nagios and similar. No point reinventing the wheel.

_
{Beto|Norberto|Numard} Meijome

Time exists so everything doesn't happen at once
   Albert Einstein

I speak for myself, not my employer. Contents may be hot. Slippery when wet.
Reading disclaimers makes you go blind. Writing them is worse. You have been
Warned.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Checking remote processes

2006-10-01 Thread jhall
Is there a way to test a remote server to determine if certain processes
are running?

For example, can server 1 check server 2, which is at a remote location,
to ensure squid is running?

I have not been able to figure out how to do this, or if it is even possible.

Thanks,


Jay

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Checking remote processes

2006-10-01 Thread Garrett Cooper

[EMAIL PROTECTED] wrote:

Is there a way to test a remote server to determine if certain processes
are running?

For example, can server 1 check server 2, which is at a remote location,
to ensure squid is running?

I have not been able to figure out how to do this, or if it is even possible.

Thanks,


Jay
  

This is easily done with ssh:

ssh remote_host_addr ps aux | grep server_proc_name, i.e.

ssh some.hosts.address ps aux | grep httpd

-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Checking remote processes

2006-10-01 Thread Dan Nelson
In the last episode (Oct 02), [EMAIL PROTECTED] said:
 Is there a way to test a remote server to determine if certain
 processes are running?
 
 For example, can server 1 check server 2, which is at a remote
 location, to ensure squid is running?
 
 I have not been able to figure out how to do this, or if it is even
 possible.

Easiest way would be to try connecting to squid's listening port.  This
only works with daemons that listen on internet sockets, but quite a
few do.

-- 
Dan Nelson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Checking remote processes

2006-10-01 Thread jhall
 In the last episode (Oct 02), [EMAIL PROTECTED] said:
 Is there a way to test a remote server to determine if certain
 processes are running?

 For example, can server 1 check server 2, which is at a remote
 location, to ensure squid is running?

 I have not been able to figure out how to do this, or if it is even
 possible.

 Easiest way would be to try connecting to squid's listening port.  This
 only works with daemons that listen on internet sockets, but quite a
 few do.

 --
   Dan Nelson
   [EMAIL PROTECTED]

I hadn't thought of that.  I'll give it a try.

Thanks,


Jay

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]