matteocorti / nagios_plugins

18 stars 7 forks source link

Specify different thresholds for security and non-security updates #124

Closed matteocorti closed 8 years ago

matteocorti commented 8 years ago

Original reporter: alexander.bias@uni-ulm.de

Hi,

I would like to use the check_updates plugin to monitor updates of my CentOS boxes.

It would be great if you could specify different thresholds for security and non-security updates to monitor security-related and non-security-related updates independently.

For example: /usr/lib64/nagios/plugins/check_updates --warning=0 --critical=10 --security-warning=0 --security-critical=0

Using this separation, the plugin would return only WARNING for quite a large number of non-security-related updates, but would return CRITICAL as soon as the first security-related update would be available.

Thanks.

matteocorti commented 8 years ago

Original reporter: rramos

+1

matteocorti commented 8 years ago

Original reporter: anonymous

Hi,

Added a patch that adds security-threshold option -s and consider only critical updates if security updates > $options->security-threshold.

Can you please validate ?

Cheers, Rui

matteocorti commented 8 years ago

Original reporter: matteo@corti.li

Security updates always trigger a CRITICAL state (even a single one) independently of the thresholds.