{"id":717,"date":"2013-06-17T19:15:00","date_gmt":"2013-06-17T19:15:00","guid":{"rendered":"https:\/\/www.geekmungus.co.uk\/?p=717"},"modified":"2022-11-05T10:53:19","modified_gmt":"2022-11-05T10:53:19","slug":"monitoring-metrics-of-apc-ups-with-mrtg-via-snmp","status":"publish","type":"post","link":"https:\/\/geekmungus.co.uk\/?p=717","title":{"rendered":"Monitoring Metrics of APC UPS with MRTG via SNMP"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">This assumes you have a APC Smart-UPS UPS with a Network Management Card, that you have already configured to allow SNMP connections and you&#8217;ve configured the community string. This is tested using MRTG running on Ubuntu with an AP9619 network management card in the UPSes.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This took ages to find the correct metrics OIDs from the MIB to monitor using lots of time, swearing and investigation using MIB lookup tools. And some trail and error checking the values on the web interface to what the OID was showing.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">These configurations allow you to pull out and monitor the following metrics from the UPS, note i&#8217;ve given the two types of UPS we use on our campuses, but basically you should find these work for most times of APC UPS, the 15Kva is a 3 phase UPS so we want to monitor the input and output Voltage on each phase. The 10KVa one is just a single phase UPS so we only monitor the one incoming and outgoing on that one.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">APC UPS Smart-UPS VT 15kVA<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Input Frequency &#8211; <strong>1.3.6.1.4.1.318.1.1.1.3.2.4.0<\/strong><\/li><li>Output Frequency &#8211; <strong>1.3.6.1.4.1.318.1.1.1.4.2.2.0<\/strong><\/li><li>Input Voltage Phase 1 &#8211; <strong>1.3.6.1.4.1.318.1.1.1.9.2.3.1.3.1.1.1<\/strong><\/li><li>Output Voltage Phase 1 &#8211; <strong>1.3.6.1.4.1.318.1.1.1.9.3.3.1.3.1.1.1<\/strong><\/li><li>Input Voltage Phase 2 &#8211; <strong>1.3.6.1.4.1.318.1.1.1.9.2.3.1.3.1.1.2<\/strong><\/li><li>Output Voltage Phase 2 &#8211;<strong> 1.3.6.1.4.1.318.1.1.1.9.3.3.1.3.1.1.2<\/strong><\/li><li>Input Voltage Phase 3 &#8211; <strong>1.3.6.1.4.1.318.1.1.1.9.2.3.1.3.1.1.3<\/strong><\/li><li>Output Voltage Phase 3 &#8211; <strong>1.3.6.1.4.1.318.1.1.1.9.3.3.1.3.1.1.3<\/strong><\/li><li>Output Load Percent &#8211; <strong>1.3.6.1.4.1.318.1.1.1.4.2.3.0<\/strong><\/li><li>Internal UPS Temperature &#8211; <strong>1.3.6.1.4.1.318.1.1.1.2.2.2.0<\/strong><\/li><li>External UPS Temperature (Temperature Sensor) &#8211; <strong>1.3.6.1.4.1.318.1.1.10.2.3.2.1.4.1<\/strong><\/li><li>Battery Charge Level &#8211; <strong>1.3.6.1.4.1.318.1.1.1.2.2.1.0<\/strong><\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">APC UPS Smart-UPS RT 10000 RM XL<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Input Frequency &#8211; <strong>1.3.6.1.4.1.318.1.1.1.3.2.4.0<\/strong><\/li><li>Output Frequency &#8211; <strong>1.3.6.1.4.1.318.1.1.1.4.2.2.0<\/strong><\/li><li>Input Voltage &#8211; <strong>1.3.6.1.4.1.318.1.1.1.3.2.1.0<\/strong><\/li><li>Output Voltage &#8211; <strong>1.3.6.1.4.1.318.1.1.1.4.2.1.0<\/strong><\/li><li>Output Load Percent &#8211; <strong>1.3.6.1.4.1.318.1.1.1.4.2.3.0<\/strong><\/li><li>Internal UPS Temperature &#8211; <strong>1.3.6.1.4.1.318.1.1.1.2.2.2.0<\/strong><\/li><li>External UPS Temperature (Temperature Sensor) &#8211; <strong>1.3.6.1.4.1.318.1.1.10.2.3.2.1.4.1<\/strong><\/li><li>Battery Charge Level &#8211; <strong>1.3.6.1.4.1.318.1.1.1.2.2.1.0<\/strong><\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">So now for the configuration in MRTG, you need to configure the MRTG file to use the files to build up the logs and you&#8217;d need to have this set to run a CRON job to take the MRTG script and scoop the current statistics every 5 minutes or so. I&#8217;m not explaining that as you can find instructions for it every where. Below are the MRTG configuration files that will produce the graphs for these metrics.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You may notice that for some of the single metric OIDs like &#8220;Battery Charge Level&#8221; have the same OID repeated twice in the input, this is because MRTG must have 2 inputs, if it doesn&#8217;t it won&#8217;t work. This is fine for a router interface with incoming and outgoing traffic, but doesn&#8217;t work so well for battery charge level which would be 100% or 10% for example.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">UPSNAME = Substitute this with your UPS&#8217;s hostname on the network for easy identification.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">COMMUNITYSTRING = The SNMP string is what is configured on the UPS.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">IPADDRESS = The IP address of the management IP of the network card in the UPS.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>APC UPS Smart-UPS VT 15kVA<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># APC UPS APC MRTG config\n\nEnableIPv6: no\n\nWorkDir: \/var\/www\/mrtg\/ups\n\nYLegend&#91;UPSNAME_1]: Hertz\n\nShortLegend&#91;UPSNAME_1]: Hz\n\nDirectory&#91;UPSNAME_1]: UPSNAME\n\nXSize&#91;UPSNAME_1]: 400\n\nYSize&#91;UPSNAME_1]: 100\n\nLegend1&#91;UPSNAME_1]: Input Frequency\n\nLegend2&#91;UPSNAME_1]: Output Frequency\n\nLegend3&#91;UPSNAME_1]: Max Input Frequency\n\nLegend4&#91;UPSNAME_1]: Max Output Frequency\n\nLegendI&#91;UPSNAME_1]: Input Hz\n\nLegendO&#91;UPSNAME_1]: Output Hz\n\nWithPeak&#91;UPSNAME_1]: ywm\n\nMaxBytes&#91;UPSNAME_1]: 100\n\nUnscaled&#91;UPSNAME_1]: dwmy\n\nOptions&#91;UPSNAME_1]: growright, gauge, nopercent\n\nTitle&#91;UPSNAME_1]: Input &amp; Output Frequency\n\nTarget&#91;UPSNAME_1]: 1.3.6.1.4.1.318.1.1.1.3.2.4.0&amp;1.3.6.1.4.1.318.1.1.1.4.2.2.0:COMMUNITYSTRING@IPADDRESS\n\nPageTop&#91;UPSNAME_1]: &lt;H1>Input &amp; Output Frequency&lt;\/H1>\n\nYLegend&#91;UPSNAME_2]: Voltage\n\nShortLegend&#91;UPSNAME_2]: v\n\nDirectory&#91;UPSNAME_2]: UPSNAME\n\nXSize&#91;UPSNAME_2]: 400\n\nYSize&#91;UPSNAME_2]: 100\n\nLegend1&#91;UPSNAME_2]: Input Voltage Phase 1\n\nLegend2&#91;UPSNAME_2]: Output Voltage Phase 1\n\nLegendI&#91;UPSNAME_2]: Input Voltage\n\nLegendO&#91;UPSNAME_2]: Output Voltage\n\nWithPeak&#91;UPSNAME_2]: ywm\n\nMaxBytes&#91;UPSNAME_2]: 320\n\nUnscaled&#91;UPSNAME_2]: dwmy\n\nOptions&#91;UPSNAME_2]: growright, gauge, nopercent\n\nTitle&#91;UPSNAME_2]: Input and Output Voltage Phase 1\n\nTarget&#91;UPSNAME_2]: 1.3.6.1.4.1.318.1.1.1.9.2.3.1.3.1.1.1&amp;1.3.6.1.4.1.318.1.1.1.9.3.3.1.3.1.1.1:COMMUNITYSTRING@IPADDRESS\n\nPageTop&#91;UPSNAME_2]: &lt;H1>Input and Output Voltage Phase 1&lt;\/H1>\n\nYLegend&#91;UPSNAME_3]: Voltage\n\nShortLegend&#91;UPSNAME_3]: v\n\nDirectory&#91;UPSNAME_3]: UPSNAME\n\nXSize&#91;UPSNAME_3]: 400\n\nYSize&#91;UPSNAME_3]: 100\n\nLegend1&#91;UPSNAME_3]: Input Voltage Phase 2\n\nLegend2&#91;UPSNAME_3]: Output Voltage Phase 2\n\nLegendI&#91;UPSNAME_3]: Input Voltage\n\nLegendO&#91;UPSNAME_3]: Output Voltage\n\nWithPeak&#91;UPSNAME_3]: ywm\n\nMaxBytes&#91;UPSNAME_3]: 320\n\nUnscaled&#91;UPSNAME_3]: dwmy\n\nOptions&#91;UPSNAME_3]: growright, gauge, nopercent\n\nTitle&#91;UPSNAME_3]: Input and Output Voltage Phase 2\n\nTarget&#91;UPSNAME_3]: 1.3.6.1.4.1.318.1.1.1.9.2.3.1.3.1.1.2&amp;1.3.6.1.4.1.318.1.1.1.9.3.3.1.3.1.1.2:COMMUNITYSTRING@IPADDRESS\n\nPageTop&#91;UPSNAME_3]: &lt;H1>Input and Output Voltage Phase 2&lt;\/H1>\n\nYLegend&#91;UPSNAME_4]: Voltage\n\nShortLegend&#91;UPSNAME_4]: v\n\nDirectory&#91;UPSNAME_4]: UPSNAME\n\nXSize&#91;UPSNAME_4]: 400\n\nYSize&#91;UPSNAME_4]: 100\n\nLegend1&#91;UPSNAME_4]: Input Voltage Phase 3\n\nLegend2&#91;UPSNAME_4]: Output Voltage Phase 3\n\nLegendI&#91;UPSNAME_4]: Input Voltage\n\nLegendO&#91;UPSNAME_4]: Output Voltage\n\nWithPeak&#91;UPSNAME_4]: ywm\n\nMaxBytes&#91;UPSNAME_4]: 320\n\nUnscaled&#91;UPSNAME_4]: dwmy\n\nOptions&#91;UPSNAME_4]: growright, gauge, nopercent\n\nTitle&#91;UPSNAME_4]: Input and Output Voltage Phase 3\n\nTarget&#91;UPSNAME_4]: 1.3.6.1.4.1.318.1.1.1.9.2.3.1.3.1.1.3&amp;1.3.6.1.4.1.318.1.1.1.9.3.3.1.3.1.1.3:COMMUNITYSTRING@IPADDRESS\n\nPageTop&#91;UPSNAME_4]: &lt;H1>Input and Output Voltage Phase 3&lt;\/H1>\n\nYLegend&#91;UPSNAME_5]: Percent\n\nShortLegend&#91;UPSNAME_5]: %\n\nDirectory&#91;UPSNAME_5]: UPSNAME\n\nXSize&#91;UPSNAME_5]: 400\n\nYSize&#91;UPSNAME_5]: 100\n\nLegend1&#91;UPSNAME_5]: Output Load Percent\n\nLegend2&#91;UPSNAME_5]: Output Load Percent\n\nLegendI&#91;UPSNAME_5]: Percent\n\nLegendO&#91;UPSNAME_5]: Percent\n\nWithPeak&#91;UPSNAME_5]: ywm\n\nMaxBytes&#91;UPSNAME_5]: 100\n\nUnscaled&#91;UPSNAME_5]: dwmy\n\nOptions&#91;UPSNAME_5]: growright, gauge, nopercent\n\nTitle&#91;UPSNAME_5]: Output Load Percent\n\nTarget&#91;UPSNAME_5]: 1.3.6.1.4.1.318.1.1.1.4.2.3.0&amp;1.3.6.1.4.1.318.1.1.1.4.2.3.0:COMMUNITYSTRING@IPADDRESS\n\nPageTop&#91;UPSNAME_5]: &lt;H1>Output Load Percent&lt;\/H1>\n\nYLegend&#91;UPSNAME_6]: Temperature\n\nShortLegend&#91;UPSNAME_6]: C\n\nDirectory&#91;UPSNAME_6]: UPSNAME\n\nXSize&#91;UPSNAME_6]: 400\n\nYSize&#91;UPSNAME_6]: 100\n\nLegend1&#91;UPSNAME_6]: Internal UPS Temperature\n\nLegend2&#91;UPSNAME_6]: Internal UPS Temperature\n\nLegendI&#91;UPSNAME_6]: Celsius\n\nLegendO&#91;UPSNAME_6]: Celsius\n\nWithPeak&#91;UPSNAME_6]: ywm\n\nMaxBytes&#91;UPSNAME_6]: 40\n\nUnscaled&#91;UPSNAME_6]: dwmy\n\nOptions&#91;UPSNAME_6]: growright, gauge, nopercent\n\nTitle&#91;UPSNAME_6]: Internal UPS Temperature\n\nTarget&#91;UPSNAME_6]: 1.3.6.1.4.1.318.1.1.1.2.2.2.0&amp;1.3.6.1.4.1.318.1.1.1.2.2.2.0:COMMUNITYSTRING@IPADDRESS\n\nPageTop&#91;UPSNAME_6]: &lt;H1>Internal UPS Temperature&lt;\/H1>\n\nYLegend&#91;UPSNAME_7]: Temperature\n\nShortLegend&#91;UPSNAME_7]: C\n\nDirectory&#91;UPSNAME_7]: UPSNAME\n\nXSize&#91;UPSNAME_7]: 400\n\nYSize&#91;UPSNAME_7]: 100\n\nLegend1&#91;UPSNAME_7]: External UPS Temperature\n\nLegend2&#91;UPSNAME_7]: External UPS Temperature\n\nLegendI&#91;UPSNAME_7]: Celsius\n\nLegendO&#91;UPSNAME_7]: Celsius\n\nWithPeak&#91;UPSNAME_7]: ywm\n\nMaxBytes&#91;UPSNAME_7]: 40\n\nUnscaled&#91;UPSNAME_7]: dwmy\n\nOptions&#91;UPSNAME_7]: growright, gauge, nopercent\n\nTitle&#91;UPSNAME_7]: External UPS Temperature\n\nTarget&#91;UPSNAME_7]: 1.3.6.1.4.1.318.1.1.10.2.3.2.1.4.1&amp;1.3.6.1.4.1.318.1.1.10.2.3.2.1.4.1:COMMUNITYSTRING@IPADDRESS\n\nPageTop&#91;UPSNAME_7]: &lt;H1>External UPS Temperature&lt;\/H1>\n\nYLegend&#91;UPSNAME_8]: Percent\n\nShortLegend&#91;UPSNAME_8]: %\n\nDirectory&#91;UPSNAME_8]: UPSNAME\n\nXSize&#91;UPSNAME_8]: 400\n\nYSize&#91;UPSNAME_8]: 100\n\nLegend1&#91;UPSNAME_8]: Battery Charge Level\n\nLegend2&#91;UPSNAME_8]: Battery Charge Level\n\nLegendI&#91;UPSNAME_8]: %\n\nLegendO&#91;UPSNAME_8]: %\n\nWithPeak&#91;UPSNAME_8]: ywm\n\nMaxBytes&#91;UPSNAME_8]: 100\n\nUnscaled&#91;UPSNAME_8]: dwmy\n\nOptions&#91;UPSNAME_8]: growright, gauge, nopercent\n\nTitle&#91;UPSNAME_8]: Battery Charge Level\n\nTarget&#91;UPSNAME_8]: .1.3.6.1.4.1.318.1.1.1.2.2.1.0&amp;.1.3.6.1.4.1.318.1.1.1.2.2.1.0:COMMUNITYSTRING@IPADDRESS\n\nPageTop&#91;UPSNAME_8]: &lt;H1>Battery Charge Level&lt;\/H1><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>APC UPS Smart-UPS RT 10000 RM XL<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># APC UPS APC MRTG config\n\nEnableIPv6: no\n\nWorkDir: \/var\/www\/mrtg\/ups\n\nYLegend&#91;UPSNAME_1]: Hertz\n\nShortLegend&#91;UPSNAME_1]: Hz\n\nDirectory&#91;UPSNAME_1]: UPSNAME\n\nXSize&#91;UPSNAME_1]: 400\n\nYSize&#91;UPSNAME_1]: 100\n\nLegend1&#91;UPSNAME_1]: Input Frequency\n\nLegend2&#91;UPSNAME_1]: Output Frequency\n\nLegend3&#91;UPSNAME_1]: Max Input Frequency\n\nLegend4&#91;UPSNAME_1]: Max Output Frequency\n\nLegendI&#91;UPSNAME_1]: Input Hz\n\nLegendO&#91;UPSNAME_1]: Output Hz\n\nWithPeak&#91;UPSNAME_1]: ywm\n\nMaxBytes&#91;UPSNAME_1]: 100\n\nUnscaled&#91;UPSNAME_1]: dwmy\n\nOptions&#91;UPSNAME_1]: growright, gauge, nopercent\n\nTitle&#91;UPSNAME_1]: Input &amp; Output Frequency\n\nTarget&#91;UPSNAME_1]: 1.3.6.1.4.1.318.1.1.1.3.2.4.0&amp;1.3.6.1.4.1.318.1.1.1.4.2.2.0:COMMUNITYSTRING@IPADDRESS\n\nPageTop&#91;UPSNAME_1]: &lt;H1>Input &amp; Output Frequency&lt;\/H1>\n\nYLegend&#91;UPSNAME_2]: Voltage\n\nShortLegend&#91;UPSNAME_2]: v\n\nDirectory&#91;UPSNAME_2]: UPSNAME\n\nXSize&#91;UPSNAME_2]: 400\n\nYSize&#91;UPSNAME_2]: 100\n\nLegend1&#91;UPSNAME_2]: Input Voltage\n\nLegend2&#91;UPSNAME_2]: Output Voltage\n\nLegendI&#91;UPSNAME_2]: Input Voltage\n\nLegendO&#91;UPSNAME_2]: Output Voltage\n\nWithPeak&#91;UPSNAME_2]: ywm\n\nMaxBytes&#91;UPSNAME_2]: 320\n\nUnscaled&#91;UPSNAME_2]: dwmy\n\nOptions&#91;UPSNAME_2]: growright, gauge, nopercent\n\nTitle&#91;UPSNAME_2]: Input and Output Voltage\n\nTarget&#91;UPSNAME_2]: 1.3.6.1.4.1.318.1.1.1.3.2.1.0&amp;1.3.6.1.4.1.318.1.1.1.4.2.1.0:COMMUNITYSTRING@IPADDRESS\n\nPageTop&#91;UPSNAME_2]: &lt;H1>Input and Output Voltage&lt;\/H1>\n\nYLegend&#91;UPSNAME_3]: Percent\n\nShortLegend&#91;UPSNAME_3]: %\n\nDirectory&#91;UPSNAME_3]: UPSNAME\n\nXSize&#91;UPSNAME_3]: 400\n\nYSize&#91;UPSNAME_3]: 100\n\nLegend1&#91;UPSNAME_3]: Output Load Percent\n\nLegend2&#91;UPSNAME_3]: Output Load Percent\n\nLegendI&#91;UPSNAME_3]: Percent\n\nLegendO&#91;UPSNAME_3]: Percent\n\nWithPeak&#91;UPSNAME_3]: ywm\n\nMaxBytes&#91;UPSNAME_3]: 100\n\nUnscaled&#91;UPSNAME_3]: dwmy\n\nOptions&#91;UPSNAME_3]: growright, gauge, nopercent\n\nTitle&#91;UPSNAME_3]: Output Load Percent\n\nTarget&#91;UPSNAME_3]: 1.3.6.1.4.1.318.1.1.1.4.2.3.0&amp;1.3.6.1.4.1.318.1.1.1.4.2.3.0:COMMUNITYSTRING@IPADDRESS\n\nPageTop&#91;UPSNAME_3]: &lt;H1>Output Load Percent&lt;\/H1>\n\nYLegend&#91;UPSNAME_4]: Temperature\n\nShortLegend&#91;UPSNAME_4]: C\n\nDirectory&#91;UPSNAME_4]: UPSNAME\n\nXSize&#91;UPSNAME_4]: 400\n\nYSize&#91;UPSNAME_4]: 100\n\nLegend1&#91;UPSNAME_4]: Internal UPS Temperature\n\nLegend2&#91;UPSNAME_4]: Internal UPS Temperature\n\nLegendI&#91;UPSNAME_4]: Celsius\n\nLegendO&#91;UPSNAME_4]: Celsius\n\nWithPeak&#91;UPSNAME_4]: ywm\n\nMaxBytes&#91;UPSNAME_4]: 40\n\nUnscaled&#91;UPSNAME_4]: dwmy\n\nOptions&#91;UPSNAME_4]: growright, gauge, nopercent\n\nTitle&#91;UPSNAME_4]: Internal UPS Temperature\n\nTarget&#91;UPSNAME_4]: 1.3.6.1.4.1.318.1.1.1.2.2.2.0&amp;1.3.6.1.4.1.318.1.1.1.2.2.2.0:COMMUNITYSTRING@IPADDRESS\n\nPageTop&#91;UPSNAME_4]: &lt;H1>Internal UPS Temperature&lt;\/H1>\n\nYLegend&#91;UPSNAME_5]: Temperature\n\nShortLegend&#91;UPSNAME_5]: C\n\nDirectory&#91;UPSNAME_5]: UPSNAME\n\nXSize&#91;UPSNAME_5]: 400\n\nYSize&#91;UPSNAME_5]: 100\n\nLegend1&#91;UPSNAME_5]: External UPS Temperature\n\nLegend2&#91;UPSNAME_5]: External UPS Temperature\n\nLegendI&#91;UPSNAME_5]: Celsius\n\nLegendO&#91;UPSNAME_5]: Celsius\n\nWithPeak&#91;UPSNAME_5]: ywm\n\nMaxBytes&#91;UPSNAME_5]: 40\n\nUnscaled&#91;UPSNAME_5]: dwmy\n\nOptions&#91;UPSNAME_5]: growright, gauge, nopercent\n\nTitle&#91;UPSNAME_5]: External UPS Temperature\n\nTarget&#91;UPSNAME_5]: 1.3.6.1.4.1.318.1.1.10.2.3.2.1.4.1&amp;1.3.6.1.4.1.318.1.1.10.2.3.2.1.4.1:COMMUNITYSTRING@IPADDRESS\n\nPageTop&#91;UPSNAME_5]: &lt;H1>External UPS Temperature&lt;\/H1>\n\nYLegend&#91;UPSNAME_6]: Percent\n\nShortLegend&#91;UPSNAME_6]: %\n\nDirectory&#91;UPSNAME_6]: UPSNAME\n\nXSize&#91;UPSNAME_6]: 400\n\nYSize&#91;UPSNAME_6]: 100\n\nLegend1&#91;UPSNAME_6]: Battery Charge Level\n\nLegend2&#91;UPSNAME_6]: Battery Charge Level\n\nLegendI&#91;UPSNAME_6]: %\n\nLegendO&#91;UPSNAME_6]: %\n\nWithPeak&#91;UPSNAME_6]: ywm\n\nMaxBytes&#91;UPSNAME_6]: 100\n\nUnscaled&#91;UPSNAME_6]: dwmy\n\nOptions&#91;UPSNAME_6]: growright, gauge, nopercent\n\nTitle&#91;UPSNAME_6]: Battery Charge Level\n\nTarget&#91;UPSNAME_6]: .1.3.6.1.4.1.318.1.1.1.2.2.1.0&amp;.1.3.6.1.4.1.318.1.1.1.2.2.1.0:COMMUNITYSTRING@IPADDRESS\n\nPageTop&#91;UPSNAME_6]: &lt;H1>Battery Charge Level&lt;\/H1><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Once configured you can setup the MRTG scripts to run periodically to pickup the statistics and then you need to use &#8220;indexmaker&#8221; to create the nice graph html file so you can see the pretty graphs.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This assumes you have a APC Smart-UPS UPS with a Network Management Card, that you have already configured to allow SNMP connections and you&#8217;ve configured the community string. This is tested using MRTG running on Ubuntu with an AP9619 network management card in the UPSes. This took ages to find the correct metrics OIDs from &#8230; <a title=\"Monitoring Metrics of APC UPS with MRTG via SNMP\" class=\"read-more\" href=\"https:\/\/geekmungus.co.uk\/?p=717\" aria-label=\"Read more about Monitoring Metrics of APC UPS with MRTG via SNMP\">Read more<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-717","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/717","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=717"}],"version-history":[{"count":1,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/717\/revisions"}],"predecessor-version":[{"id":1478,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/717\/revisions\/1478"}],"wp:attachment":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=717"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=717"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=717"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}