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?
Add comment