{"id":4669,"date":"2022-11-21T17:44:00","date_gmt":"2022-11-21T23:44:00","guid":{"rendered":"https:\/\/www.incredigeek.com\/home\/?p=4669"},"modified":"2022-11-21T17:01:51","modified_gmt":"2022-11-21T23:01:51","slug":"add-custom-oid-to-device-in-librenms","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/add-custom-oid-to-device-in-librenms\/","title":{"rendered":"Add Custom OID to device in LibreNMS"},"content":{"rendered":"\n<p>In the post, we&#8217;ll be adding a custom OID for a Ubiquiti Solar Charge Controller.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Find the device OID <\/li>\n\n\n\n<li>Add the Custom OID in LibreNMS<\/li>\n\n\n\n<li>Check the graph<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Find the custom OID<\/h2>\n\n\n\n<p>Check out the following post if you are trying to add a Ubiquiti Solar Charge controller graph to LibreNMS.  Otherwise you may need to do some googling around looking for the OID.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-incredigeek wp-block-embed-incredigeek\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"vgsoLjPZVg\"><a href=\"https:\/\/www.incredigeek.com\/home\/oids-for-ui-ubiquiti-solar-charge-controller\/\">OIDs for UI \/ Ubiquiti Solar Charge Controller<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;OIDs for UI \/ Ubiquiti Solar Charge Controller&#8221; &#8212; Incredigeek\" src=\"https:\/\/www.incredigeek.com\/home\/oids-for-ui-ubiquiti-solar-charge-controller\/embed\/#?secret=vmKL3l4wTp#?secret=vgsoLjPZVg\" data-secret=\"vgsoLjPZVg\" width=\"584\" height=\"329\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Add Custom OID in LibreNMS<\/h2>\n\n\n\n<p>Go to your device -> Settings(Little Gear) -> Custom OID -> +Add New OID<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2022\/11\/image-3.png\"><img loading=\"lazy\" decoding=\"async\" width=\"791\" height=\"525\" src=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2022\/11\/image-3.png\" alt=\"\" class=\"wp-image-4671\" srcset=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2022\/11\/image-3.png 791w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2022\/11\/image-3-300x199.png 300w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2022\/11\/image-3-768x510.png 768w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2022\/11\/image-3-452x300.png 452w\" sizes=\"auto, (max-width: 791px) 100vw, 791px\" \/><\/a><figcaption class=\"wp-element-caption\">Adding Custom OID in LibreNMS for Ubiquiti UI Charge Controller<\/figcaption><\/figure>\n\n\n\n<p>Couple notes about the information.  <br> &#8211; There needs to be a 0 after the end of the OID.  <br> &#8211; Data Type needs to be Gauge, Not Counter.  A gauge can go up and down. A counter just counts up.<\/p>\n\n\n\n<p>Hit &#8220;Test OID&#8221; and you should get a little notification saying it got a value for the OID.  In this case 25572.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2022\/11\/image-4.png\"><img loading=\"lazy\" decoding=\"async\" width=\"275\" height=\"46\" src=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2022\/11\/image-4.png\" alt=\"\" class=\"wp-image-4672\"\/><\/a><figcaption class=\"wp-element-caption\">Test Custom OID in LibreNMS for Ubiquiti UI Charge Controller<\/figcaption><\/figure>\n\n\n\n<p>Now Hit &#8220;Save OID&#8221;<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Check the Graph<\/h2>\n\n\n\n<p>Now LibreNMS should start graphing our Custom OID.  You may need to give it a minute to start showing data.  <\/p>\n\n\n\n<p>The graphs show up under Graphs -> Custom OID<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2022\/11\/image-6.png\"><img loading=\"lazy\" decoding=\"async\" width=\"497\" height=\"103\" src=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2022\/11\/image-6.png\" alt=\"\" class=\"wp-image-4674\" srcset=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2022\/11\/image-6.png 497w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2022\/11\/image-6-300x62.png 300w\" sizes=\"auto, (max-width: 497px) 100vw, 497px\" \/><\/a><figcaption class=\"wp-element-caption\">Where are Custom OID Graphs?<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2022\/11\/image-5.png\"><img loading=\"lazy\" decoding=\"async\" width=\"935\" height=\"709\" src=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2022\/11\/image-5.png\" alt=\"\" class=\"wp-image-4673\" srcset=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2022\/11\/image-5.png 935w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2022\/11\/image-5-300x227.png 300w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2022\/11\/image-5-768x582.png 768w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2022\/11\/image-5-396x300.png 396w\" sizes=\"auto, (max-width: 935px) 100vw, 935px\" \/><\/a><figcaption class=\"wp-element-caption\">LibreNMS Custom OID Graph<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>In the post, we&#8217;ll be adding a custom OID for a Ubiquiti Solar Charge Controller. Find the custom OID Check out the following post if you are trying to add a Ubiquiti Solar Charge controller graph to LibreNMS. Otherwise you &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/add-custom-oid-to-device-in-librenms\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[352],"tags":[353,1361,389,170],"class_list":["post-4669","post","type-post","status-publish","format-standard","hentry","category-librenms","tag-librenms","tag-mib","tag-nms","tag-oid"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/4669","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=4669"}],"version-history":[{"count":2,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/4669\/revisions"}],"predecessor-version":[{"id":4677,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/4669\/revisions\/4677"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=4669"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=4669"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=4669"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}