Add support for syslog alerts on optical module temperature changes #610
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Provide support for syslog alert to notify user on change of temperature of ZR Optics
Why is this change required
No alert shown for temperature of Optics when crosses the threshold
How to verify it
syslog updated with alert message with current temperature value which crossed the threshold for optics
2025 Apr 23 09:56:10.997889 qual-7060DX5-64S NOTICE pmon#xcvrd: 80: temperature INFO 75.0 to -5.0
2025 Apr 23 09:56:10.997889 qual-7060DX5-64S NOTICE pmon#xcvrd: Ethernet112: temperature high alarm
2025 Apr 23 09:56:12.044945 qual-7060DX5-64S NOTICE pmon#xcvrd: 80: temperature INFO 15.0 to 0.0
2025 Apr 23 09:56:12.044945 qual-7060DX5-64S NOTICE pmon#xcvrd: Ethernet240: temperature high alarm
2025 Apr 23 09:56:12.405351 qual-7060DX5-64S NOTICE pmon#xcvrd: 80: temperature INFO 75.0 to 0.0
2025 Apr 23 09:56:12.405351 qual-7060DX5-64S NOTICE pmon#xcvrd: Ethernet184: temperature high alarm
2025 Apr 23 09:56:12.865747 qual-7060DX5-64S NOTICE pmon#xcvrd: 80: temperature INFO 75.0 to 0.0
2025 Apr 23 09:56:12.865747 qual-7060DX5-64S NOTICE pmon#xcvrd: Ethernet248: temperature high alarm
2025 Apr 23 09:56:13.223961 qual-7060DX5-64S NOTICE pmon#xcvrd: 80: temperature INFO 75.0 to 0.0
2025 Apr 23 09:56:13.223961 qual-7060DX5-64S NOTICE pmon#xcvrd: Ethernet224: temperature high alarm
2025 Apr 23 09:56:13.543594 qual-7060DX5-64S NOTICE pmon#xcvrd: 80: temperature INFO 80.0 to -10.0
2025 Apr 23 09:56:13.543594 qual-7060DX5-64S NOTICE pmon#xcvrd: Ethernet232: temperature high warning
2025 Apr 23 09:56:13.861593 qual-7060DX5-64S NOTICE pmon#xcvrd: 80: temperature INFO 75.0 to -5.0
2025 Apr 23 09:56:13.861593 qual-7060DX5-64S NOTICE pmon#xcvrd: Ethernet168: temperature high alarm
2025 Apr 23 09:56:14.172986 qual-7060DX5-64S NOTICE pmon#xcvrd: 80: temperature INFO 75.0 to -5.0