[Nagiosplug-devel] [ nagiosplug-Bugs-3539328 ] check_apt: clarify that it doesn't upgrade per default

SourceForge.net noreply at sourceforge.net
Sun Jul 1 21:46:09 CEST 2012


Bugs item #3539328, was opened at 2012-07-01 12:27
Message generated for change (Comment added) made by calestyo
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=3539328&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Interface (example)
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Cálestyo (calestyo)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_apt: clarify that it doesn't upgrade per default

Initial Comment:
(Roughly) From: http://tracker.nagios.org/view.php?id=302

Hi.

check_apt uses its "--upgrade" option per default:
 -U, --upgrade=OPTS
    [Default] Perform an upgrade. If an optional OPTS argument is provided,
    apt-get will be run with these command line options instead of the
    default (-o 'Debug::NoLocking=true' -s -qq).
    Note that you may be required to have root privileges if you do not use
    the default options.

I was quite confused by this, given the meanings of upgrade (install new packages) and update (get information about new packages) in Debian.

The following seems to be true:
- Using the upgrade mode in APT (and therefore the --upgrade option to the plugin) is really required, even to just get a list of upgradable packages.
So this really needs to be the default.
- No upgrades (in the sense of installing packags) are however executed, given the options  (-o 'Debug::NoLocking=true' -s -qq). This is true for both, normal users (obviously) and root.


In order to clear things up, I'd suggest to add a notes that:
- the --upgrade option of the plugins (with it's default OPTS) doesn't do package upgrades (in the sense of installing new ones), neither as root nor as normal user.

and optionally:
- the --update option (and upgrade mode of APT) is needed even to just get a list of upgradable pacakges.


Cheers,
Chris.

----------------------------------------------------------------------

>Comment By: Cálestyo (calestyo)
Date: 2012-07-01 12:46

Message:
I would write the patches, if the ideas themselves are accepted.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=3539328&group_id=29880




More information about the Devel mailing list