github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/oneandone/r/monitoring_policy.html.markdown (about) 1 --- 2 layout: "oneandone" 3 page_title: "1&1: oneandone_monitoring_policy" 4 sidebar_current: "docs-oneandone-resource-monitoring-policy" 5 description: |- 6 Creates and manages 1&1 Monitoring Policy. 7 --- 8 9 # oneandone\_server 10 11 Manages a Monitoring Policy on 1&1 12 13 ## Example Usage 14 15 ```hcl 16 resource "oneandone_monitoring_policy" "mp" { 17 name = "test_mp" 18 agent = true 19 email = "jasmin@stackpointcloud.com" 20 21 thresholds = { 22 cpu = { 23 warning = { 24 value = 50, 25 alert = false 26 } 27 critical = { 28 value = 66, 29 alert = false 30 } 31 32 } 33 ram = { 34 warning = { 35 value = 70, 36 alert = true 37 } 38 critical = { 39 value = 80, 40 alert = true 41 } 42 }, 43 ram = { 44 warning = { 45 value = 85, 46 alert = true 47 } 48 critical = { 49 value = 95, 50 alert = true 51 } 52 }, 53 disk = { 54 warning = { 55 value = 84, 56 alert = true 57 } 58 critical = { 59 value = 94, 60 alert = true 61 } 62 }, 63 transfer = { 64 warning = { 65 value = 1000, 66 alert = true 67 } 68 critical = { 69 value = 2000, 70 alert = true 71 } 72 }, 73 internal_ping = { 74 warning = { 75 value = 3000, 76 alert = true 77 } 78 critical = { 79 value = 4000, 80 alert = true 81 } 82 } 83 } 84 ports = [ 85 { 86 email_notification = true 87 port = 443 88 protocol = "TCP" 89 alert_if = "NOT_RESPONDING" 90 }, 91 { 92 email_notification = false 93 port = 80 94 protocol = "TCP" 95 alert_if = "NOT_RESPONDING" 96 }, 97 { 98 email_notification = true 99 port = 21 100 protocol = "TCP" 101 alert_if = "NOT_RESPONDING" 102 } 103 ] 104 105 processes = [ 106 { 107 email_notification = false 108 process = "httpdeamon" 109 alert_if = "RUNNING" 110 }, 111 { 112 process = "iexplorer", 113 alert_if = "NOT_RUNNING" 114 email_notification = true 115 }] 116 } 117 ``` 118 119 ## Argument Reference 120 121 The following arguments are supported: 122 123 * `name` - (Required) The name of the VPN. 124 * `description` - (Optional) Description for the VPN 125 * `email` - (Optional) Email address to which notifications monitoring system will send 126 * `agent- (Required) Indicates which monitoring type will be used. True: To use this monitoring type, you must install an agent on the server. False: Monitor a server without installing an agent. Note: If you do not install an agent, you cannot retrieve information such as free hard disk space or ongoing processes. 127 128 Monitoring Policy Thresholds (`thresholds`) support the following: 129 130 * `cpu - (Required) CPU thresholds 131 * `warning - (Required)Warning alert 132 * `value - (Required) Warning to be issued when the threshold is reached. from 1 to 100 133 * `alert - (Required) If set true warning will be issued. 134 * `critical - (Required) Critical alert 135 * `value - (Required) Warning to be issued when the threshold is reached. from 1 to 100 136 * `alert - (Required) If set true warning will be issued. 137 * `ram - (Required) RAM threshold 138 * `warning - (Required) Warning alert 139 * `value - (Required) Warning to be issued when the threshold is reached. from 1 to 100 140 * `alert - (Required) If set true warning will be issued. 141 * `critical - (Required) Critical alert 142 * `value - (Required) Warning to be issued when the threshold is reached. from 1 to 100 143 * `alert - (Required) If set true warning will be issued. 144 * `disk - (Required) Hard Disk threshold 145 * `warning - (Required) Warning alert 146 * `value - (Required) Warning to be issued when the threshold is reached. from 1 to 100 147 * `alert - (Required) If set true warning will be issued. 148 * `critical - (Required) Critical alert 149 * `value - (Required) Warning to be issued when the threshold is reached. from 1 to 100 150 * `alert - (Required) If set true warning will be issued. 151 * `transfer - (Required) Data transfer threshold 152 * `warning - (Required) Warning alert 153 * `value - (Required) Warning to be issued when the threshold is reached. from 1 to 100 154 * `alert - (Required) If set true warning will be issued. 155 * `critical - (Required) Critical alert 156 * `value - (Required) Warning to be issued when the threshold is reached. from 1 to 100 157 * `alert - (Required) If set true warning will be issued. 158 * `internal_ping - (Required) Ping threshold 159 * `warning - (Required) Warning alert 160 * `value - (Required) Warning to be issued when the threshold is reached. from 1 to 100 161 * `alert - (Required) If set true warning will be issued. 162 * `critical - (Required) Critical alert 163 * `value - (Required) Warning to be issued when the threshold is reached. from 1 to 100 164 * `alert - (Required) If set true warning will be issued. 165 166 Monitoring Policy Ports (`ports`) support the following: 167 168 * `email_notification - (Required) If set true email will be sent. 169 * `port - (Required) Port number. 170 * `protocol` - (Required) The protocol of the port. Allowed values are `TCP`, `UDP`, `TCP/UDP`, `ICMP` and `IPSEC`. 171 * `alert_if - (Required) Condition for the alert to be issued. 172 173 Monitoring Policy Ports (`processes`) support the following: 174 175 * `email_notification - (Required) If set true email will be sent. 176 * `process - (Required) Process name. 177 * `alert_if - (Required) Condition for the alert to be issued.