DNS integration
This integration allow to automatically update ProdManager monitors based on the status of a DNS record.
Configuration
Environment variables
| Name | description | 
|---|---|
DNS_NAMESERVERS | 
A list (commage separated) of name servers (default : /etc/resolv.conf) | 
DNS_PORT | 
Port of the name servers (default : 53) | 
Monitors
ProdManager monitors should be created with :
integrationfield populated with the valuedns(ordns_<PM_INTEGRATION_SUFFIX>)external_referencefield with the "dns name" of a DNS record
Status convertion table
| DNS record | ProdManager status | 
|---|---|
As on or more valid A record | 
OK | 
NO ANWSER | 
ALERT | 
NXDOMAIN | 
ALERT | 
Any other status will result in ALERT status in ProdManager.
Note : CNAME records are followed until a A record is found or an error is thrown.
Usage
Run the command :