I'm busy attaching our Linux servers to our hostmonitor (5.12) setup. So I've downloaded rma_lin.tgz (1.00), installed it and have it up and running. Performing tests works like a charm, even with self-written test scripts. However, one of the alert actions here is "reboot when something fails", and I need to implement this for the linux systems.
So I've created a simple test (cpu usage) and 1 single action, which tries to run an external script on the RMA. However, when I actually trigger the test and try to run the action I get the following error in the verbose RMA output:
Code: Select all
[rma][15:54:06] 1.2.3.4 TCP connection accepted
[rma][15:54:06] 1.2.3.4 <-- Correct HM request received
[rma][15:54:06] 1.2.3.4 Unknown command "ACT-ExternalCmd"
[rma][15:54:06] 1.2.3.4 --> request rejected or operation failed (500)
[rma][15:54:06] rma Session closed, wait for next ..
Am I missing something here or am I doing something wrong? Does somebody know how to run external action scripts on Linux RMA's? Do I need to file a feature-request? How hard is it to write this command if one has the source code for RMA?
If all else fails I can always write my own thing based on running an external script on the hostmonitor system itself, which in turn runs commands on the linux systems using ssh, but this is something I'd rather not do (from the my-colleagues-need-to-work-with-this pov, not from the I-like-to-code pov )