On Thu, Nov 18, 2010 at 3:37 PM, Jeff Sundquist <[email protected]> wrote: > Hopefully I’m doing something wrong. > > > > I set up agentless to work and all is happy when I have a single command in > <arguments> but when I set my config to this: > > > > <agentless> > > <type>ssh_generic_diff</type> > > <frequency>300</frequency> > > <host>[email protected]</host> > > <state>periodic_diff</state> > > <arguments>cat /tmp/test2.txt; cat /tmp/test3.txt</arguments> > > </agentless> > > > > It appears to run the “cat /tmp/test3.txt” part on my local box, not on the > box I’m monitoring. ( at first I was getting file not found, when I added > /tmp/test3.txt to my local box I started to get the output from that file, > not the one on the box I’m monitoring ). > > > > I looked at the code and the expect script and I believe the issue is that > the arguments are not being quoted in agentlessd.c and then once we are > using quotes we have to tweak the main.exp to use lindex instead of lrange > to get the arguments. > > > > Hopefully I’m way off base but I did tweak the code and test and it appears > to work for me now with multiple commands but before submitting or whatever > I wanted to make sure I’m not doing something stupid. > > > > Any help is appreciated. > > > > Thanks, > > Jeff >
I have the same behavior on my systems. Noticed this a while ago, forgot to follow up on it.
