check_by_ssh

Jamie Bohr Jamie_Bohr at Agilent.com
Tue Jan 20 23:27:01 CET 2004


When you ran the command were you the user Nagios runs as?

- Jamie

On Tue, 2004-01-20 at 14:41, Brian Hendrix wrote:
> No, not yet.
>  
> I am able to do the following from the command line:
> ssh -1 <hostname> <command>
> (without a passphrase)
>  
> I tried the check_by_ssh command with the "-1" (minus one) option from
> the command line:
> check_by_ssh -1 -H <hostname> -C <command>
> (without a passphrase)
>  
> Amazingly, it worked. I believe the "-1" says to use ssh protocol 1.
>  
> However, when I edit my services.cfg and checkcommands.cfg to include
> the new option, I get:
> ssh: connect to address 100.1.30.31 port 22: Connection refused 
>  
> define service{
> use generic-service
> host_name casbtest
> service_description check_total_procs
> contact_groups dtroncall
> check_command check_by_ssh!check_procs 500 800
> }
>  
> # 'check_by_ssh' command definition
> define command{
> command_name check_by_ssh
> command_line $USER1$/check_by_ssh -H $HOSTADDRESS$ -C $ARG1$ -t 30 -1
> }
>  
>  
>  
>  
>  
>  
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ><> ~~~
> Brian Hendrix
> Team Leader
> DTR Services
> Saint Thomas Health Services
> 2000 Church Street
> Nashville, TN  37236
>  
> bhendrix at stthomas.org
> (615) 284-5297 (work)
> (615) 222-1704 (fax)
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Whatever you do, do your work heartily,
> as for the Lord rather than for men
>     - Colossians 3:23
> ~~~ ><> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >>> "David Olbersen" <DOlbersen at stbernard.com> 1/20/2004 3:05:25 PM
> >>>
> Brian,
> 
> I know we went a little off-problem on the list: have you resolved
> your SSH issue?
> 
> -- 
> David Olbersen 
> iGuard Engineer
> St. Bernard Software
> 15015 Avenue of Sciences
> San Diego, CA 92127 
> x2152
> 
> 
> Confidentiality Notice: This email message, including any attachments, contains 
> information that is confidential and/or legally privileged. The information is intended 
> only for the individual(s) named above. If you are not the intended recipient or the 
> person responsible for delivering the email to the intended recipient, be advised that 
> you have received this email in error and that any use, dissemination, distribution, 
> forwarding, printing, or copying of this email is strictly prohibited. If you have received 
> this email in error, please purge it immediately and notify the sender.
-- 
Jamie Bohr
Agilent Technologies, Inc.
IT | Technical Computing
719-590-2396
Jamie_Bohr at Agilent.com



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
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