Sorry, still not having got the Github syntax for commit messages right. But I think next one will hopefully be merged to the issue since I read up on how to put the reference in there.
@einhirn Thanks for this PR, is the reason to make the sensors unique and be discovered?
Not sure I understand the question. I added this bit because I can read power values from my rfc1628 compliant UPS and wanted them to appear in librenms. "Power" seemed to be the right sensor type.
Sorry to be more clear, lines like $index = 100+$i; is this to make the index value unique?
I just copied that from other discovery scripts 😀
But yes - since there are up to three lists of Lines (Input, Bypass, Output) each of them usually counting Lines 1,2,3 there's an offset added so the index is unique.
Added power metric discovery for rfc1628 UPS (fixes #1257)
Auto-Deploy finished, Test PR at http://1258.librenms.ci.devilcode.org or https://1258.librenms.ci.devilcode.org