Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remediation checks -auto resolve. #81

Open
Hanmanth-Reddy opened this issue Feb 26, 2019 · 0 comments
Open

remediation checks -auto resolve. #81

Hanmanth-Reddy opened this issue Feb 26, 2019 · 0 comments

Comments

@Hanmanth-Reddy
Copy link

We have ldap_sync_remediation remediation check for ldap_sync check.

ldap_sync_remediation check will execute only once on 3 successful failures of ldap_sync.

In some cases, there might be a chance of ldap_sync_remediation check failure. In that case, "ldap_sync_remediation" checks are stuck on Uchiwa dashboard. Is there a way to auto-resolve(should be automatically removed from Uchiwa dashboard event section) when
ldap_sync_remediation fails.

I mentioned "force_resolve": true for this. But seems it is now working.

{
"checks": {
"ldap_sync": {
"command": "export PYTHON_EGG_CACHE=/etc/sensu/plugins/tmp;/etc/sensu/plugins/check_ldap_sync.py -q -n ldap://localhost:1389 ldap://localhost:389 -t 1800",
"interval": 600,
"timeout": 120,
"ttl": 2000,
"contacts": [ "team-houston" ],
"subscribers": [
"csa-local"
],
"low_flap_threshold": 20,
"high_flap_threshold": 40,
"remediation": {
"ldap_sync_remediation": {
"occurrences": ["3"],
"severities": [1, 2]
}
}
},

"ldap_sync_remediation": {
"command": "sudo -u root /usr/local/bin/python /etc/sensu/plugins/run_ldap_stf1.py -s 'wnccsmmgmt1'",
"publish": false,
"interval": 180,
"timeout": 300,
"force_resolve": true,
"contacts": [ "team-houston" ],
"occurrences": 1,
"handler": "email",
"subscribers": []
}

}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant