mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-14 19:24:10 +03:00
StopMonitor action for IM dummy drivers
This commit is contained in:
parent
4988ddd0ec
commit
b1d2785707
@ -45,6 +45,7 @@ class DummyInformationManager < OpenNebulaDriver
|
|||||||
|
|
||||||
# register actions
|
# register actions
|
||||||
register_action(:MONITOR, method("action_monitor"))
|
register_action(:MONITOR, method("action_monitor"))
|
||||||
|
register_action(:STOPMONITOR, method("stop_monitor"))
|
||||||
end
|
end
|
||||||
|
|
||||||
# Execute the sensor array in the remote host
|
# Execute the sensor array in the remote host
|
||||||
@ -72,6 +73,10 @@ class DummyInformationManager < OpenNebulaDriver
|
|||||||
|
|
||||||
send_message("MONITOR", RESULT[:success], number, results)
|
send_message("MONITOR", RESULT[:success], number, results)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def stop_monitor(number, host)
|
||||||
|
send_message("STOPMONITOR", RESULT[:success], number, nil)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user