Re: Nagios ssh proxy apt check not working correctly
Posted: Fri Jul 06, 2018 1:50 pm
I think I see the problem, you are assuming that check_apt is going to give you what you get when you login.
It is not designed to do that, you specific which items you want to match as critical, per the help:
These are what are going to me barked critical, not the security updates listed when you login, that is something different entirely.
You could create a plugin that does something like that, and use that instead if you like
Here some instructions on the Nagios Plugins Development Guidelines
https://nagios-plugins.org/doc/guidelines.html
It is not designed to do that, you specific which items you want to match as critical, per the help:
Code: Select all
-c, --critical=REGEXP
If the full package information of any of the upgradable packages match
this REGEXP, the plugin will return CRITICAL status. Can be specified
multiple times like above. Default is a regexp matching security
upgrades for Debian and Ubuntu:
^[^\(]*\(.* (Debian-Security:|Ubuntu:[^/]*/[^-]*-security)
Note that the package must first match the include list before its
information is compared against the critical list.You could create a plugin that does something like that, and use that instead if you like
Here some instructions on the Nagios Plugins Development Guidelines
https://nagios-plugins.org/doc/guidelines.html