zuobiao-zhou commented on issue #2740: URL: https://github.com/apache/hertzbeat/issues/2740#issuecomment-2379335731
Hello, in our project, we utilize snmp4j to implement the SNMP protocol. When performing GET operations to query the power status or fan status, snmp4j only provides a numerical representation of the query results. As shown in your command line screenshot, a value of 4 for power status indicates that the power is on, while a value of 3 for fan status indicates that the fan is operating normally. This is reflected in the code snippet `oidsValueMap.put(binding.getOid().toDottedString(), binding.toValueString());` within `snmpCollectImpl.java`. Although this approach is not as intuitive as using "on" or "ok", it does function properly, and we can still set up alerts based on these values. Currently, I haven't come up with an optimal solution to make the outputs more descriptive. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
