{"id":731,"date":"2017-12-14T09:34:13","date_gmt":"2017-12-14T09:34:13","guid":{"rendered":"https:\/\/pandorafms.com\/library\/?p=731"},"modified":"2017-12-14T09:36:31","modified_gmt":"2017-12-14T09:36:31","slug":"cupsd-local-monitoring","status":"publish","type":"post","link":"https:\/\/pandorafms.com\/library\/cupsd-local-monitoring\/","title":{"rendered":"CUPSD Local Monitoring"},"content":{"rendered":"<p class=\"description_pui\">Several modules for monitoring APCUPS Daemon (Unix).<\/p>\n<h2>Module data<\/h2>\n<pre># UPS monitoring\u00a0\r\nmodule_begin\u00a0\r\nmodule_name UPS_Power\u00a0\r\nmodule_type generic_proc\u00a0\r\nmodule_exec apcaccess | grep STATUS | grep ONLINE | wc -l\u00a0\r\nmodule_end\u00a0<\/pre>\n<pre>module_begin\u00a0\r\nmodule_name UPS_Charge\u00a0\r\nmodule_type generic_data\u00a0\r\nmodule_exec apcaccess | grep BCHARGE | awk '{ print $3 }'\u00a0\r\nmodule_end\u00a0<\/pre>\n<pre>module_begin\u00a0\r\nmodule_name UPS_TimeLeft\u00a0\r\nmodule_type generic_data\u00a0\r\nmodule_exec apcaccess | grep TIMELEFT | awk '{ print $3 }'\u00a0\r\nmodule_end <\/pre>\n<p>\u00a0<\/p>\n<pre>module_begin\u00a0\r\nmodule_name UPS_Temp\u00a0\r\nmodule_type generic_data\u00a0\r\nmodule_exec apcaccess | grep ITEMP | awk '{ print $3 }'\u00a0\r\nmodule_end<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Several modules for monitoring APCUPS Daemon (Unix). Module data # UPS monitoring\u00a0 module_begin\u00a0 module_name UPS_Power\u00a0 module_type generic_proc\u00a0 module_exec apcaccess | grep STATUS | grep ONLINE | wc -l\u00a0 module_end\u00a0 module_begin\u00a0 module_name UPS_Charge\u00a0 module_type generic_data\u00a0 module_exec apcaccess | grep BCHARGE | awk &#8216;{ print $3 }&#8217;\u00a0 module_end\u00a0 module_begin\u00a0 module_name UPS_TimeLeft\u00a0 module_type generic_data\u00a0 module_exec apcaccess | grep [&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":[7,36],"tags":[168,75],"_links":{"self":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/731"}],"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=731"}],"version-history":[{"count":0,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/731\/revisions"}],"wp:attachment":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/media?parent=731"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/categories?post=731"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/tags?post=731"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}