I have read a very good article about decoding the port state on a linux system of a network bond. The informations are encoded as bitfield: https://movingpackets.net/2017/10/17/decoding-lacp-port-state/
Bit | Name |
0 | LACP_Activity |
1 | LACP_Timeout |
2 | Aggregation |
3 | Synchronization |
4 | Collecting |
5 | Distributing |
6 | Defaulted |
7 | Expired |
I want to write a custom lookup for this port states. But i do not know where to start. I read some article that was doing like:
<BitField state="Ok" value="1">No Alarm</BitField> <BitField state="Warning" value="2">Far end LOF</BitField>
But in my lookup it should warn in several conditions of several bits on different positions. For example is bit 7 is set to expired (1) or when bit 5 is set to no (0). How to tell PRTG which bit position is meant?
Hello Dear customer
Thank you for contacting PRTG support,
Regarding your request, this manual will help you with this request Website you can instead of giving the bit position, you have to give the bit value (using 0), so 0 maps to 0, 1 to 2, 2 to 4, 3 to 8, 4 to 16, 5 to 32 and so on
I hope this will help
Jan, 2023 - Permalink