Search found 4 matches

by lhsch
Tue Apr 17, 2012 8:28 am
Forum: Nagios XI
Topic: check_by_ssh -C problem
Replies: 5
Views: 1233

Re: check_by_ssh -C problem

Hi.
Ijust resolved my problem.
defining $USERX$=; in resource.cfg file . . . .
then . . . .
./check_by_ssh -t XX -H localhost -l <user> -p <port> -C "cd $ARGS1$ $USERX$ ./check_cpu_stats.sh -w <WARN> -c <CRIT>"

Tks.
by lhsch
Tue Apr 17, 2012 6:11 am
Forum: Nagios XI
Topic: check_by_ssh -C problem
Replies: 5
Views: 1233

Re: check_by_ssh -C problem

And I tried with multiple -C too, but only executes the first command:

check_by_ssh -t 90 -H localhost -l <user> -p 3331 -s c1:c2:c3 -C "date" -C "uptime" -C "whoami"
Tue Apr 17 08:14:36 CUT 2012

Is there anything wrong?

Thanks.
by lhsch
Tue Apr 17, 2012 5:53 am
Forum: Nagios XI
Topic: check_by_ssh -C problem
Replies: 5
Views: 1233

Re: check_by_ssh -C problem

I just tired to escape with "\" but it doesn't work.
Tanks Scott.
Regards.
by lhsch
Mon Apr 16, 2012 1:25 pm
Forum: Nagios XI
Topic: check_by_ssh -C problem
Replies: 5
Views: 1233

check_by_ssh -C problem

Hi all. I have a little question . . . . Can I do the following? ./check_by_ssh -t XX -H localhost -l <user> -p <port> -C "cd $ARGS1$ ; ./check_cpu_stats.sh -w <WARN> -c <CRIT>" If i do this from a command line it works fine but If I do frm commands.cfg Nagios only use -C 'cd $ARGS1$ becau...