github.com/netdata/go.d.plugin@v0.58.1/modules/upsd/integrations/ups_nut.md (about) 1 <!--startmeta 2 custom_edit_url: "https://github.com/netdata/go.d.plugin/edit/master/modules/upsd/README.md" 3 meta_yaml: "https://github.com/netdata/go.d.plugin/edit/master/modules/upsd/metadata.yaml" 4 sidebar_label: "UPS (NUT)" 5 learn_status: "Published" 6 learn_rel_path: "Data Collection/UPS" 7 most_popular: False 8 message: "DO NOT EDIT THIS FILE DIRECTLY, IT IS GENERATED BY THE COLLECTOR'S metadata.yaml FILE" 9 endmeta--> 10 11 # UPS (NUT) 12 13 14 <img src="https://netdata.cloud/img/plug-circle-bolt.svg" width="150"/> 15 16 17 Plugin: go.d.plugin 18 Module: upsd 19 20 <img src="https://img.shields.io/badge/maintained%20by-Netdata-%2300ab44" /> 21 22 ## Overview 23 24 This collector monitors Uninterruptible Power Supplies by polling the UPS daemon using the NUT network protocol. 25 26 27 28 29 This collector is supported on all platforms. 30 31 This collector supports collecting metrics from multiple instances of this integration, including remote instances. 32 33 34 ### Default Behavior 35 36 #### Auto-Detection 37 38 This integration doesn't support auto-detection. 39 40 #### Limits 41 42 The default configuration for this integration does not impose any limits on data collection. 43 44 #### Performance Impact 45 46 The default configuration for this integration is not expected to impose a significant performance impact on the system. 47 48 49 ## Metrics 50 51 Metrics grouped by *scope*. 52 53 The scope defines the instance that the metric belongs to. An instance is uniquely identified by a set of labels. 54 55 56 57 ### Per ups 58 59 These metrics refer to the UPS unit. 60 61 Labels: 62 63 | Label | Description | 64 |:-----------|:----------------| 65 | ups_name | UPS name. | 66 | battery_type | Battery type (chemistry). "battery.type" variable value. | 67 | device_model | Device model. "device.mode" variable value. | 68 | device_serial | Device serial number. "device.serial" variable value. | 69 | device_manufacturer | Device manufacturer. "device.mfr" variable value. | 70 | device_type | Device type (ups, pdu, scd, psu, ats). "device.type" variable value. | 71 72 Metrics: 73 74 | Metric | Dimensions | Unit | 75 |:------|:----------|:----| 76 | upsd.ups_load | load | percentage | 77 | upsd.ups_load_usage | load_usage | Watts | 78 | upsd.ups_status | on_line, on_battery, low_battery, high_battery, replace_battery, charging, discharging, bypass, calibration, offline, overloaded, trim_input_voltage, boost_input_voltage, forced_shutdown, other | status | 79 | upsd.ups_temperature | temperature | Celsius | 80 | upsd.ups_battery_charge | charge | percentage | 81 | upsd.ups_battery_estimated_runtime | runtime | seconds | 82 | upsd.ups_battery_voltage | voltage | Volts | 83 | upsd.ups_battery_voltage_nominal | nominal_voltage | Volts | 84 | upsd.ups_input_voltage | voltage | Volts | 85 | upsd.ups_input_voltage_nominal | nominal_voltage | Volts | 86 | upsd.ups_input_current | current | Ampere | 87 | upsd.ups_input_current_nominal | nominal_current | Ampere | 88 | upsd.ups_input_frequency | frequency | Hz | 89 | upsd.ups_input_frequency_nominal | nominal_frequency | Hz | 90 | upsd.ups_output_voltage | voltage | Volts | 91 | upsd.ups_output_voltage_nominal | nominal_voltage | Volts | 92 | upsd.ups_output_current | current | Ampere | 93 | upsd.ups_output_current_nominal | nominal_current | Ampere | 94 | upsd.ups_output_frequency | frequency | Hz | 95 | upsd.ups_output_frequency_nominal | nominal_frequency | Hz | 96 97 98 99 ## Alerts 100 101 102 The following alerts are available: 103 104 | Alert name | On metric | Description | 105 |:------------|:----------|:------------| 106 | [ upsd_10min_ups_load ](https://github.com/netdata/netdata/blob/master/health/health.d/upsd.conf) | upsd.ups_load | UPS ${label:ups_name} average load over the last 10 minutes | 107 | [ upsd_ups_battery_charge ](https://github.com/netdata/netdata/blob/master/health/health.d/upsd.conf) | upsd.ups_battery_charge | UPS ${label:ups_name} average battery charge over the last minute | 108 | [ upsd_ups_last_collected_secs ](https://github.com/netdata/netdata/blob/master/health/health.d/upsd.conf) | upsd.ups_load | UPS ${label:ups_name} number of seconds since the last successful data collection | 109 110 111 ## Setup 112 113 ### Prerequisites 114 115 No action required. 116 117 ### Configuration 118 119 #### File 120 121 The configuration file name for this integration is `go.d/upsd.conf`. 122 123 124 You can edit the configuration file using the `edit-config` script from the 125 Netdata [config directory](https://github.com/netdata/netdata/blob/master/docs/configure/nodes.md#the-netdata-config-directory). 126 127 ```bash 128 cd /etc/netdata 2>/dev/null || cd /opt/netdata/etc/netdata 129 sudo ./edit-config go.d/upsd.conf 130 ``` 131 #### Options 132 133 The following options can be defined globally: update_every, autodetection_retry. 134 135 136 <details><summary>Config options</summary> 137 138 | Name | Description | Default | Required | 139 |:----|:-----------|:-------|:--------:| 140 | update_every | Data collection frequency. | 1 | no | 141 | autodetection_retry | Recheck interval in seconds. Zero means no recheck will be scheduled. | 0 | no | 142 | address | UPS daemon address in IP:PORT format. | 127.0.0.1:3493 | yes | 143 | timeout | Connection/read/write timeout in seconds. The timeout includes name resolution, if required. | 2 | no | 144 145 </details> 146 147 #### Examples 148 149 ##### Basic 150 151 A basic example configuration. 152 153 <details><summary>Config</summary> 154 155 ```yaml 156 jobs: 157 - name: local 158 address: 127.0.0.1:3493 159 160 ``` 161 </details> 162 163 ##### Multi-instance 164 165 > **Note**: When you define multiple jobs, their names must be unique. 166 167 Collecting metrics from local and remote instances. 168 169 170 <details><summary>Config</summary> 171 172 ```yaml 173 jobs: 174 - name: local 175 address: 127.0.0.1:3493 176 177 - name: remote 178 address: 203.0.113.0:3493 179 180 ``` 181 </details> 182 183 184 185 ## Troubleshooting 186 187 ### Debug Mode 188 189 To troubleshoot issues with the `upsd` collector, run the `go.d.plugin` with the debug option enabled. The output 190 should give you clues as to why the collector isn't working. 191 192 - Navigate to the `plugins.d` directory, usually at `/usr/libexec/netdata/plugins.d/`. If that's not the case on 193 your system, open `netdata.conf` and look for the `plugins` setting under `[directories]`. 194 195 ```bash 196 cd /usr/libexec/netdata/plugins.d/ 197 ``` 198 199 - Switch to the `netdata` user. 200 201 ```bash 202 sudo -u netdata -s 203 ``` 204 205 - Run the `go.d.plugin` to debug the collector: 206 207 ```bash 208 ./go.d.plugin -d -m upsd 209 ``` 210 211