Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

Add option to use warning instead of critical #24

Open
LorenzBischof opened this issue Jun 18, 2016 · 4 comments
Open

Add option to use warning instead of critical #24

LorenzBischof opened this issue Jun 18, 2016 · 4 comments

Comments

@LorenzBischof
Copy link

I think critical is the wrong severity, even for security updates. We have a nightly cronjob on our servers that runs yumcron. Critical should only be used for problems that directly affect a system and require immediate attention.

@calestyo
Copy link
Owner

I'm not sure whether this is the right approach.
If one just doesn't want to see "Critical" checks or don't consider security updates critical,… then don't run a test or simply disable notifications for it.

All checks typically take their respective "worst" case as critical, e.g. a check_smartstatus would likely give you "Critical" if the overall health status is "FAILING" and not just a "Warning" because some people may have e.g. a RAID in place and one failing disk wouldn't harm them.

The only case that I could at least think of where this would remotely make sense was:
If yum-security isn't in place (i.e. --all-updates is used) that it then gives Warning rather than Critical.
But conceptually even that doesn't make sense IMHO. If the plugin doesn't differentiate between security/non-security updates, than one must assume that there actually are security updates amongst.
That in case should make the status critical then.

@LorenzBischof
Copy link
Author

I understand your view, but we have a dashboard that shows the amount of critical checks. What you say might work for other plugins like load or disk checks. It would be really nice to be able to choose the state. Would you accept a pull request?

@calestyo
Copy link
Owner

Uhm… if you would wait a bit,… I'm actually just in the process of re-implementing check_yum from scratch, to hopefully solve some longer standing issues.
I haven't pushed the new version yet, an it will probably still take some time to be finished, but it already includes code that allows setting the return states for different events.

@LorenzBischof
Copy link
Author

very nice! thank you

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants