{"id":468,"date":"2017-12-13T15:09:54","date_gmt":"2017-12-13T15:09:54","guid":{"rendered":"https:\/\/pandorafms.com\/library\/?p=468"},"modified":"2017-12-13T15:11:09","modified_gmt":"2017-12-13T15:11:09","slug":"nut-ups-monitoring-2","status":"publish","type":"post","link":"https:\/\/pandorafms.com\/library\/nut-ups-monitoring-2\/","title":{"rendered":"NUT UPS monitoring"},"content":{"rendered":"<p class=\"description_pui\">Use these modules to create modules for each value. Explore output (it depends on each model of UPS) with:<\/p>\n<p>upsc myups@localhost<\/p>\n<p>And rewrite modules as your own criteria.<\/p>\n<h2>Module data<\/h2>\n<pre>module_begin\u00a0\r\nmodule_name UPS Online\u00a0\r\nmodule_type generic_proc\u00a0\r\nmodule_exec upsc myups@localhost | grep \"ups.status\" | grep \"OL\" | wc -l\u00a0\r\nmodule_end<\/pre>\n<pre>module_begin\u00a0\r\nmodule_name UPS Load\u00a0\r\nmodule_type generic_data\u00a0\r\nmodule_exec upsc myups@localhost | grep \"ups.load\" | awk '{ print $2 }'\u00a0\r\nmodule_end<\/pre>\n<pre>module_begin\u00a0\r\nmodule_name UPS Input_Voltage\u00a0\r\nmodule_type generic_data\u00a0\r\nmodule_exec upsc myups@localhost | grep \"input.voltage.nominal\" | awk '{ print $2 }'\u00a0\r\nmodule_end<\/pre>\n<pre>module_begin\u00a0\r\nmodule_name UPS Output_Voltage\u00a0\r\nmodule_type generic_data\u00a0\r\nmodule_exec upsc myups@localhost | grep \"output.voltage\" | awk '{ print $2 }'\u00a0\r\nmodule_end<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Use these modules to create modules for each value. Explore output (it depends on each model of UPS) with: upsc myups@localhost And rewrite modules as your own criteria. Module data module_begin\u00a0 module_name UPS Online\u00a0 module_type generic_proc\u00a0 module_exec upsc myups@localhost | grep &#8220;ups.status&#8221; | grep &#8220;OL&#8221; | wc -l\u00a0 module_end module_begin\u00a0 module_name UPS Load\u00a0 module_type generic_data\u00a0 [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[4],"tags":[75],"_links":{"self":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/468"}],"collection":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/comments?post=468"}],"version-history":[{"count":0,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/468\/revisions"}],"wp:attachment":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/media?parent=468"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/categories?post=468"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/tags?post=468"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}