Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] Remote SSH with expect script problem
#1
Hello all,

I have a problem with a expect script. This script connects to another machine with remote ssh and runs sql queries.
It´s works fine out of pandora but when I add the code to the pandora_agent.conf the others monitors do not respond.
This the code:
module_begin
module_name prueba_sql
module_type generic_data
module_exec /etc/pandora/sqlgeneral.exp [email protected] bd sql promt && echo 1
module_description prueba 1
module_end

Thanks in advance!
 Reply
#2
it's possible to fail because there was a time out or for the && in the exec line, try to fit the line between " or '
 Reply
#3
The problem is solved!
The script ,now, returns a number, so I don't need this "&& echo 1"

Thanks!
 Reply


Users browsing this thread: 1 Guest(s)


(c) 2006-2018 Artica Soluciones Tecnológicas. Contents of this wiki are under Create Common Attribution v3 licence. | pandorafms.com | pandorafms.org

Theme © MyBB Themes