can't turn alert off for specific instances with Ansible
Hi Everyone,
The LogicMonitor module for Ansible has that specific parameter 'alertenable' while using 'datasource as target to turn off alerts for specific instance in datasource group. However it's not working for me. Did anyone ever tried to use that parameter?
https://docs.ansible.com/ansible/2.4/logicmonitor_module.html
<span style="color:#555555;">---</span>
<span>-</span> hosts: localhost
vars:
company: mycompany
user: myusername
password: mypassword
tasks:
- name: Create a host group
logicmonitor:
target: datasource
action: update
displaname: server.com
alertenable: no
id: 123
company: '{{ company }}'
user: '{{ user }}'
password: '{{ password }}'ssplat
Posted 6 years ago·Last reply 6 years ago
2 comments
ssplat
OP6 years agoAdding an action that isn't 'sdt' errored out with following message {"msg": "Error: Unexpected action \"add\" was specified."} or this if i don't pass any action parameter {"msg": "missing required arguments: action"}. SDT is not what i'm trying to do.
ssplat
OP6 years agoI'm trying to turn off the alerting for 'Memory usage' instance for a specific device, not all monitored instances on that device.