Nagios ssh proxy apt check not working correctly

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios ssh proxy apt check not working correctly

Post by scottwilkerson »

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:

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.
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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked