naparuba / check-linux-by-ssh

Shinken checks designed to be run without installing something on the distant linux (aside ssh keys of course!)
MIT License
43 stars 48 forks source link

Add check_package_update_by_ssh #57

Closed lermit closed 7 years ago

lermit commented 7 years ago

Hi,

This PR add a new check for package update.

This check work with all Debian based distro and Red Hat, CentOS and Fedora.

The threshold values can be set to -1 to disable alerting (in case you want use this script only for performance data).

  -w WARNING, --warning=WARNING
                        Warning value for upgradable package, as 2 values.
                        First one for security upgrade, second one for
                        standard. If you set one of this value to -1 this will
                        disable the check. Default : 0,-1
  -c CRITICAL, --critical=CRITICAL
                        Critical value for upgradable package, as 2 values.
                        First one for security upgrade, second one for
                        standard. If you set one of this value to -1 this will
                        disable the check. Default : 1,-1

Fill free to comment.

Regards

naparuba commented 7 years ago

Looks great, thanks :)