how to use check_by_ssh

Marc Powell marc at ena.com
Fri May 21 14:14:03 CEST 2004


Swati Srivastava <mailto:swati220781 at hotmail.com> wrote:
> Hi!
> I have installed the plugins at the remote host and i'm trying to
> monitor a process by check_by_ssh..but i;m not really clear with how
> to use check_by_ssh properly.  
> 
> here's a copy of what i've written :
> in checkcommands:
> 
> command_name   check_by_ssh
> command_line      /usr/local/nagios/libexec/check_by_ssh -H 10.0.0.7
> -f -C='check_procs'
> 
> and i defined check_by_ssh in services.cfg as well.
> 
> I'm not able to understand that how would check_by_ssh run
> check_procs on 
> 10.0.0.7 for a particular process id?? How do i specify that??

Here's an example --

bash-2.05a$ ./check_by_ssh -H dc1 -C
'/usr/local/nagios/libexec/check_procs -w 12: -c :20 -C httpd'
WARNING - 10 processes running with command name httpd

> ALso, i'm getting this warning right now, "host key verification
> failed". 

It's probably because you have an incorrect host key in
~nagios/ssh/known_hosts. Have you tried just ssh'ing over to 10.0.0.7
from your nagios machine as the nagios user? You'll probably get more
descriptive output.

--
Marc 


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149&alloc_id66&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list