Not monitoring host using one_im_sh
|Assignee:||Tino Vázquez||% Done:|
|Target version:||Release 2.0.1|
I had a problem with one_im_sh (located in $ONE_LOCATION/lib/mads) because it was not monitoring the host, after some debugging I found that it was freezing each time oned was trying to execute the monitoring action.
I was able to find that the problem of this error was that in line 68 of the file one_im_sh.rb it is this:
[...] monitor_exe = LocalCommand.run(cmd_string, host, log_method(id)) [...]
so I just modified this line with this:
[...] monitor_exe = LocalCommand.run(cmd_string, log_lambda) [...]
Erasing the host parameter and giving for the log_lambda, because the other was also giving a warning for a deprecated method.