help with executing remote command

Leonardo Murúa Jiménez leonardox at aullox.com
Fri Apr 29 02:02:36 CEST 2005


thanks alot, I forgot that I need to run with the user nagios.



On Thu, 28 Apr 2005 17:26:57 -0500
Leonardo Murúa Jiménez <leonardox at aullox.com> wrote:

> 
> 
> Ok thanks, now I've this warning: "Host key verification failed", I use ssh-keys.
> 
> On Thu, 28 Apr 2005 16:01:57 -0500
> "Marc Powell" <marc at ena.com> wrote:
> 
> > 
> > 
> > > -----Original Message-----
> > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> > > admin at lists.sourceforge.net] On Behalf Of Leonardo Murúa Jiménez
> > > Sent: Thursday, April 28, 2005 3:43 PM
> > > To: nagios-users at lists.sourceforge.net
> > > Subject: Re: [Nagios-users] help with executing remote command
> > > 
> > > Hi list
> > > 
> > > I'm did this in my services:
> > > 
> > > define service{
> > >         host_name               nfsserver
> > >         service_description     DISK Remote
> > >         check_command           check_remote_disk!/
> > > 
> > > checkcommands
> > > 
> > > # 'check_remote_disk' command definition
> > > define command{
> > >         command_name    check_remote_disk
> > >         command_line    $USER1$check_by_ssh -H $HOSTADDRESS$ -C
> > > '/usr/local/nagios/check_disk -w 10% -c 5% -p /'
> > >         }
> > > 
> > > 
> > > but now I've this  warning:
> > > 
> > > Return code of 127 for check of service 'DISK Remote' on host 'nfsserver'
> > > was out of bounds. Make sure the plugin you're trying to run actually
> > > exists.
> > 
> > You're missing the '/' between $USER1$ and check_by_ssh. It needs to be '$USER1$/check_by_ssh'. I think you're also intending to change '-w 10% -c 5% -p /' to '-w 10% -c 5% -p $ARG1$'
> > 
> > --
> > Marc
> > 
> > 
> > -------------------------------------------------------
> > SF.Net email is sponsored by: Tell us your software development plans!
> > Take this survey and enter to win a one-year sub to SourceForge.net
> > Plus IDC's 2005 look-ahead and a copy of this survey
> > Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id5hix
> > _______________________________________________
> > 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
> 
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by: Tell us your software development plans!
> Take this survey and enter to win a one-year sub to SourceForge.net
> Plus IDC's 2005 look-ahead and a copy of this survey
> Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id5hix
> _______________________________________________
> 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



-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id5hix
_______________________________________________
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