Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve evaluation of trigger state for "update status" mode #22

Merged
merged 4 commits into from Mar 13, 2022

Conversation

amotl
Copy link
Contributor

@amotl amotl commented Mar 12, 2022

Hi Frederic,

I believe this check to evaluate the CRITICAL status for the "status update" sensor might never have worked. This patch fixes it.

after reviewing the corresponding logic, it was considered to implement another proposal:

  • OK: Unavailable
  • WARNING: Available
  • UNKNOWN: Connecting, Disconnected, Others (all other states)

In this way, there will be no CRITICAL state on this mode at all.

With kind regards,
Andreas.

check_synology.py Outdated Show resolved Hide resolved
Copy link
Owner

@wernerfred wernerfred left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please adjust the README.md accordingly. (Regarding -w& -c which is now unnecessary to provide).

Otherwise LGTM, thx!

Comment on lines -50 to 51
| update | Shows the current DSM version and if DSM update is available | set w/c to any int this triggers: <br> warning if available and critical <br> if other than un-/available |
| update | Shows the current DSM version and if DSM update is available | if update is "Unavailable", will trigger OK <br> if update is "Available", will trigger WARNING <br> otherwise: UNKNOWN |
| status | Shows model, s/n, temp and status of system, fan, cpu fan and power supply | if temp higher than w/c in °C |
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

e590114 adjusts the README, as you suggested.

@amotl amotl requested a review from wernerfred March 12, 2022 23:48
@amotl amotl changed the title Fix evaluation of "update status" re. CRITICAL trigger Improve evaluation of trigger state for "update status" mode Mar 12, 2022
@wernerfred wernerfred merged commit 4d527b2 into wernerfred:master Mar 13, 2022
@amotl amotl deleted the fix-update-status branch March 13, 2022 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants