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